Commit fd2418ba authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 916283b3
...@@ -28,6 +28,63 @@ ...@@ -28,6 +28,63 @@
$(function () { $(function () {
/*
* Define functions in charge to visualize venn diagramms
*/
$(".rarefaction-line-view-btn").click(function() {
if ($(":checked[id^=chk_sample_]").size() == 0) {
$("#user_information_dialog").dialog("option", "title", $("#information_error_title").val());
$("#user_information_dialog").html("<div class='tx-nG6-pi1-error'>" + $("#information_dialog_zero_check").val() + "</div>").dialog("open");
var buttons = {};
buttons[$("#ok_btn_label").val()] = function(){ $(this).dialog("close"); }
$("#user_information_dialog").dialog('option', 'buttons', buttons);
} else if ($(":checked[id^=chk_sample_]").size() == 1) {
$("#user_information_dialog").dialog("option", "title", $("#information_error_title").val());
$("#user_information_dialog").html("<div class='tx-nG6-pi1-error'>" + $("#information_dialog_at_least_2_check").val() + "</div>").dialog("open");
var buttons = {};
buttons[$("#ok_btn_label").val()] = function(){ $(this).dialog("close"); }
$("#user_information_dialog").dialog('option', 'buttons', buttons);
} else if ($(":checked[id^=chk_sample_]").size() > 4) {
$("#user_information_dialog").dialog("option", "title", $("#information_error_title").val());
$("#user_information_dialog").html("<div class='tx-nG6-pi1-error'>" + $("#information_dialog_venn_max_check").val() + "</div>").dialog("open");
var buttons = {};
buttons[$("#ok_btn_label").val()] = function(){ $(this).dialog("close"); }
$("#user_information_dialog").dialog('option', 'buttons', buttons);
} else {
$("#img_dialog").dialog("option", "title", "nG6 - " + $("#analyse_name").val());
$("#img_dialog").html('<div id="venn_container"></div>').dialog("open");
$("#img_dialog").dialog("option", "width", 850);
$("#venn_container").venny({
series: [{
name: {A: 'List 1',
B: 'List 2',
C: 'List 3',
D: 'List 4'},
data: {A: 340, B: 562, C: 620, D: 592,
AB: 639, AC: 456, AD: 257, BC: 915,
BD: 354, CD: 143, ABC: 552, ABD: 578,
ACD: 298, BCD: 613, ABCD: 148}
}],
fnClickCallback: function() {
var value = "";
if (this.listnames.length == 1) {
value += "Elements only in ";
} else {
value += "Common elements in ";
}
for (name in this.listnames) {
value += this.listnames[name] + " ";
}
value += ":\n";
for (val in this.list) {
value += this.list[val] + "\n";
}
alert(value);
}
});
}
});
/* /*
* Define functions in charge to visualize phylogenic bar charts * Define functions in charge to visualize phylogenic bar charts
*/ */
......
...@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<input type="hidden" id="ok_btn_label" value="{$llang.ok_btn_label}"/> <input type="hidden" id="ok_btn_label" value="{$llang.ok_btn_label}"/>
<input type="hidden" id="information_dialog_multiple_check" value="{$llang.information_dialog_multiple_check}"/> <input type="hidden" id="information_dialog_multiple_check" value="{$llang.information_dialog_multiple_check}"/>
<input type="hidden" id="information_dialog_zero_check" value="{$llang.information_dialog_zero_check}"/> <input type="hidden" id="information_dialog_zero_check" value="{$llang.information_dialog_zero_check}"/>
<input type="hidden" id="information_dialog_at_least_2_check" value="{$llang.information_dialog_at_least_2_check}"/>
<input type="hidden" id="information_dialog_venn_max_check" value="{$llang.information_dialog_venn_max_check}"/>
<h3> {$llang.MothurOTUAnalyse_alphadiversity_title} </h3> <h3> {$llang.MothurOTUAnalyse_alphadiversity_title} </h3>
<div class="underline"> </div> <div class="underline"> </div>
<br /> <br />
......
...@@ -73,6 +73,7 @@ class tx_nG6_pi1 extends tslib_pibase { ...@@ -73,6 +73,7 @@ class tx_nG6_pi1 extends tslib_pibase {
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.dataTables.min.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.dataTables.plugins.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.dataTables.plugins.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.url.packed.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.url.packed.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.venny.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/tx_nG6_pi1.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/tx_nG6_pi1.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.highcharts.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.highcharts.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.highcharts.exporting.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/jquery.highcharts.exporting.js"></script>
...@@ -81,6 +82,7 @@ class tx_nG6_pi1 extends tslib_pibase { ...@@ -81,6 +82,7 @@ class tx_nG6_pi1 extends tslib_pibase {
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/raphael-min.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/raphael-min.js"></script>
<script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/unitip.js"></script> <script type="text/javascript" src="'.t3lib_extMgm::siteRelPath($this->extKey).'res/js/unitip.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/unitip.css"/> <link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/unitip.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/jquery.venny.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/jquery.dataTables.css"/> <link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/jquery.dataTables.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/tx_nG6.css"/> <link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/tx_nG6.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/jquery.ui.core.css"/> <link type="text/css" rel="stylesheet" media="screen" href="'.t3lib_extMgm::siteRelPath($this->extKey).'res/css/jquery.ui.core.css"/>
......
...@@ -69,7 +69,9 @@ ...@@ -69,7 +69,9 @@
<label index="list_project_size_desc">Raw data and analysis results use ###PROJECT_SIZE### on the hard drive for all projects.</label> <label index="list_project_size_desc">Raw data and analysis results use ###PROJECT_SIZE### on the hard drive for all projects.</label>
<label index="information_dialog_zero_check">No raw selected, please select a raw to access this fonctionality.</label> <label index="information_dialog_zero_check">No raw selected, please select a raw to access this fonctionality.</label>
<label index="information_dialog_multiple_check">Only one raw should be selected to access this fonctionality.</label> <label index="information_dialog_multiple_check">Only one row should be selected to access this fonctionality.</label>
<label index="information_dialog_at_least_2_check">At least two rows should be selected to access this fonctionality.</label>
<label index="information_dialog_venn_max_check">Venn diagram supports only 4 classes display.</label>
<label index="confirmation_dialog_title">Confirmation</label> <label index="confirmation_dialog_title">Confirmation</label>
<label index="information_error_title">Error</label> <label index="information_error_title">Error</label>
<label index="hide_dialog_title">Hide</label> <label index="hide_dialog_title">Hide</label>
...@@ -400,7 +402,9 @@ ...@@ -400,7 +402,9 @@
<label index="DataTables_search">Rechercher :</label> <label index="DataTables_search">Rechercher :</label>
<label index="information_dialog_zero_check">Aucune ligne sélectionnée, veuillez en sélectionner une afin d'accèder à cette fonctionnalité.</label> <label index="information_dialog_zero_check">Aucune ligne sélectionnée, veuillez en sélectionner une afin d'accèder à cette fonctionnalité.</label>
<label index="information_dialog_multiple_check">Une seule ligne doit être sélectionnée afin d'accèder à cette fonctionnalité.</label> <label index="information_dialog_multiple_check">Une seule ligne doit être sélectionnée afin d'accèder à cette fonctionnalité.</label>
<label index="information_dialog_at_least_2_check">Au moins deux lignes doivent être sélectionnée afin d'accèder à cette fonctionnalité.</label>
<label index="information_dialog_venn_max_check">Seulement 4 classes peuvent être visualisées à l'aide du venn diagramme.</label>
<label index="confirmation_dialog_title">Confirmation</label> <label index="confirmation_dialog_title">Confirmation</label>
<label index="information_error_title">Erreur</label> <label index="information_error_title">Erreur</label>
<label index="hide_dialog_title">Cacher</label> <label index="hide_dialog_title">Cacher</label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment