From d60116720adf46cd55a1f57d23ebbda209ee3291 Mon Sep 17 00:00:00 2001 From: Yohan Jarosz <yohanjarosz@yahoo.fr> Date: Tue, 21 Jul 2015 15:28:35 +0200 Subject: [PATCH] try new representation --- lib/imp.html | 21 ++++++++++++++++----- lib/imp.js | 5 ++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/lib/imp.html b/lib/imp.html index c38375a..3d86532 100644 --- a/lib/imp.html +++ b/lib/imp.html @@ -98,20 +98,31 @@ <div role="tabpanel" class="tab-pane fade active" id="preprocess"> <section id="preprocess-section" class="row"> <h2><small>Preprocessed data statistics</small></h2> - <div id="but-preprocess" class="btn-group" data-toggle="buttons" name="raw-data"> + <div id="but-preprocess" class="btn-group" data-toggle="buttons" name="preprocess-data"> <label class="btn btn-primary active"> - <input id="but-preprocess-r1" type="radio" value="Analysis/stats/MG/MG.R1_preprocess_fastqc.html" class="btn btn-default" name="preprocess-data" checked>R1 + <input id="but-preprocess-mgr1" type="radio" value="Analysis/stats/MG/MG.R1_preprocessed_fastqc.html" class="btn btn-default" name="preprocess-data" checked>MG R1 </label> <label class="btn btn-primary"> - <input id="but-preprocess-r2" type="radio" value="Analysis/stats/MG/MG.R2_preprocess_fastqc.html" class="btn btn-default" name="preprocess-data">R2 + <input id="but-preprocess-mgr2" type="radio" value="Analysis/stats/MG/MG.R2_preprocessed_fastqc.html" class="btn btn-default" name="preprocess-data">MG R2 </label> <label class="btn btn-primary"> - <input id="but-preprocess-se" type="radio" value="Analysis/stats/MG/MG.SE_preprocess_fastqc.html" class="btn btn-default" name="preprocess-data">SE + <input id="but-preprocess-mgse" type="radio" value="Analysis/stats/MG/MG.SE_preprocessed_fastqc.html" class="btn btn-default" name="preprocess-data">MG SE + </label> + <label class="btn btn-primary"> + <input id="but-preprocess-mtr1" type="radio" value="Analysis/stats/MT/MT.R1_preprocessed_fastqc.html" class="btn btn-default" name="preprocess-data">MT R1 + </label> + <label class="btn btn-primary"> + <input id="but-preprocess-mtr2" type="radio" value="Analysis/stats/MT/MT.R2_preprocessed_fastqc.html" class="btn btn-default" name="preprocess-data">MT R2 + </label> + <label class="btn btn-primary"> + <input id="but-preprocess-mtse" type="radio" value="Analysis/stats/MT/MT.R2_preprocessed_fastqc.html" class="btn btn-default" name="preprocess-data">MT SE </label> </div> <div class="row"> - <iframe id="ifr-raw-stat" src="Analysis/stats/MG/MG.R1.fq_fastqc.html" style="position: absolute; width: 100%;height: 100%; border: none"></iframe> + <iframe id="ifr-preprocess-stat" src="Analysis/stats/MG/MG.R1_preprocessed_fastqc.html" style="position: absolute; width: 100%;height: 100%; border: none"></iframe> </div> + + "stats/MG/MG.R1_preprocessed_fastqc.zip", </section> <!-- FILTERING --> <section id="filtering-section" class="row"> diff --git a/lib/imp.js b/lib/imp.js index dc327ab..b006710 100644 --- a/lib/imp.js +++ b/lib/imp.js @@ -289,7 +289,10 @@ $('#but-raw').on('change', function(){ var val = $('input[name="raw-data"]:checked').val(); $("#ifr-raw-stat").attr('src', val); }); - +$('#but-preprocess').on('change', function(){ + var val = $('input[name="preprocess-data"]:checked').val(); + $("#ifr-preprocess-stat").attr('src', val); +}); renderSimpleCarousel('carousel-assembly', 'Analysis/results', [ 'IMP-vizbin_length.png', -- GitLab