aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/templates/gsearchact.html
diff options
context:
space:
mode:
authorzsloan2015-07-17 13:33:04 -0500
committerzsloan2015-07-17 13:33:04 -0500
commit5eadc461dbc9f60457d83e4a75f5e0cf043a87ca (patch)
tree20cbc189264751a1335fa013f85f0571816d545f /wqflask/wqflask/templates/gsearchact.html
parent28d88c740c52386ae464b0f03d1db7058b3ddcf9 (diff)
parente00b53485707c6ccc795b776d795dc4bc1fe0e15 (diff)
downloadgenenetwork2-5eadc461dbc9f60457d83e4a75f5e0cf043a87ca.tar.gz
Merge pull request #97 from lyan6/master
Committer: Lei Yan <lei@penguin.uthsc.edu>
Diffstat (limited to 'wqflask/wqflask/templates/gsearchact.html')
-rwxr-xr-xwqflask/wqflask/templates/gsearchact.html137
1 files changed, 0 insertions, 137 deletions
diff --git a/wqflask/wqflask/templates/gsearchact.html b/wqflask/wqflask/templates/gsearchact.html
deleted file mode 100755
index 295ad2fd..00000000
--- a/wqflask/wqflask/templates/gsearchact.html
+++ /dev/null
@@ -1,137 +0,0 @@
-{% extends "base.html" %}
-{% block title %}Search Results{% endblock %}
-{% block css %}
- <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/css/jquery.dataTables.css" />
- <link rel="stylesheet" type="text/css" href="/static/packages/DT_bootstrap/DT_bootstrap.css" />
- <link rel="stylesheet" type="text/css" href="/static/packages/TableTools/media/css/TableTools.css" />
-{% endblock %}
-{% block content %}
-<!-- Start of body -->
-
- <div class="container">
-
- <p>To study a record, click on its ID below.<br />Check records below and click Add button to add to selection.</p>
-
- <div>
- <br />
- <button class="btn btn-default" id="select_all"><span class="glyphicon glyphicon-ok"></span> Select All</button>
- <button class="btn btn-default" id="deselect_all"><span class="glyphicon glyphicon-remove"></span> Deselect All</button>
- <button class="btn btn-default" id="invert"><span class="glyphicon glyphicon-resize-vertical"></span> Invert</button>
- <button class="btn btn-default" id="add"><span class="glyphicon glyphicon-plus-sign"></span> Add</button>
- <button class="btn btn-primary pull-right"><span class="glyphicon glyphicon-download"></span> Download Table</button>
- <br />
- <br />
- <table class="table table-hover table-striped" id="trait_table">
- <thead>
- <tr>
- <th></th>
- <th>Index</th>
- <th>Tissue</th>
- <th>Dataset</th>
- <th>Record</th>
- <th>Symbol</th>
- <th>Description</th>
- <th>Chr</th>
- <th>Mb</th>
- <th>Mean</th>
- <th>Max LRS</th>
- <th>Locus</th>
- <th>Pvalue</th>
- <th>Additive</th>
- </tr>
- </thead>
-
- <tbody>
- {% for this_trait in results %}
- <TR>
- <td><input type="checkbox"></td>
- <td>{{ loop.index }}</td>
- {% for item in this_trait[1:] %}
- <TD>{{ item }}</TD>
- {% endfor %}
- </TR>
- {% endfor %}
- </tbody>
-
- </table>
- </div>
- </div>
-
-<!-- End of body -->
-
-{% endblock %}
-
-{% block js %}
- <script type="text/javascript" src="/static/new/javascript/search_results.js"></script>
-
- <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.min.js"></script>
- <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
- <script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
- <script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
- <script type="text/javascript" charset="utf-8">
- function getValue(x) {
- if (x.indexOf('input') >= 0) {
- if ($(x).val() == 'x') {
- return 0
- }
- else {
- return parseFloat($(x).val());
- }
- }
- return parseFloat(x);
- }
-
- jQuery.fn.dataTableExt.oSort['cust-txt-asc'] = function (a, b) {
- var x = getValue(a);
- var y = getValue(b);
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- };
-
- jQuery.fn.dataTableExt.oSort['cust-txt-desc'] = function (a, b) {
- var x = getValue(a);
- var y = getValue(b);
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- };
-
-
- $(document).ready( function () {
-
- $('#trait_table tr').click(function(event) {
- if (event.target.type !== 'checkbox') {
- $(':checkbox', this).trigger('click');
- }
- });
-
- console.time("Creating table");
- $('#trait_table').dataTable( {
- "aoColumns": [
- { "bSortable": false },
- { "bSortable": true },
- { "sType": "natural" },
- { "sType": "natural" },
- { "sType": "natural", "sWidth": "35%" },
- { "sType": "natural", "sWidth": "15%" },
- { "sType": "cust-txt" },
- { "sType": "natural", "sWidth": "12%" },
- { "sType": "natural", "sWidth": "12%" },
- { "sType": "natural", "sWidth": "12%" },
- { "sType": "natural", "sWidth": "12%" },
- { "sType": "natural", "sWidth": "12%" },
- { "sType": "natural", "sWidth": "15%" },
- { "sType": "cust-txt" }
- ],
-
- "sDom": "tir",
- "iDisplayLength": -1,
- "autoWidth": true,
- "bLengthChange": true,
- "bDeferRender": true,
- "bSortClasses": false
- } );
-
- console.timeEnd("Creating table");
- });
-
- </script>
-
-{% endblock %}