aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorhakangunturkun2020-03-02 11:37:29 -0600
committerhakangunturkun2020-03-02 11:37:29 -0600
commitfc406193aaaab60efaceb9ba70048836e6341241 (patch)
tree7e27dbdc24961e247ae57e3137e3ed8bddb96f5f /templates
parent2347a57e1f19ffa3dd52b00e5857ba5aa1b99a20 (diff)
downloadgenecup-fc406193aaaab60efaceb9ba70048836e6341241.tar.gz
table for zero abstract counts
Diffstat (limited to 'templates')
-rw-r--r--templates/tableview0.html89
1 files changed, 89 insertions, 0 deletions
diff --git a/templates/tableview0.html b/templates/tableview0.html
new file mode 100644
index 0000000..c0299ce
--- /dev/null
+++ b/templates/tableview0.html
@@ -0,0 +1,89 @@
+{% extends "layout.html" %}
+{% block content %}
+
+<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.6.0/cytoscape.min.js" integrity="sha256-uZV2wRlscgr52q3Wb3Oew0rKCPsM3g4aBTv46sF4qzg=" crossorigin="anonymous"></script>
+<head>
+ {%if num_gene==1%}
+ <h2> <b>GENE(S): {{gene_name}}</b> </h2>
+ {%else%}
+ <h2> <b>GENES: {{gene_name}}</b> </h2>
+ {%endif%}
+</head>
+
+<style>
+ * {
+ box-sizing: border-box;
+ }
+
+ .column {
+ float: left;
+ padding: 10px;
+ }
+
+ .left {
+ width: 60%;
+ }
+
+ .middle {
+ width: 50%;
+ }
+
+ .right {
+ width: 40%;
+ }
+
+ /* Clear floats after the columns */
+ .row:after {
+ content: "";
+ display: table;
+ clear: both;
+ }
+ tr:nth-child(even) {background-color: #f2f2f2;}
+</style>
+
+
+<div class="row">
+ <div class="column left" >
+ <h4> {{ message |safe}} </h4>
+ <body>
+ <table id="myTable" border="1">
+ </table>
+ </body>
+ </div>
+
+ <div class="column right">
+ {{ message4 |safe}}
+ </div>
+</div>
+
+<script>{
+ {}
+ var table = document.getElementById("myTable");
+ var header = table.createTHead();
+ var row = header.insertRow(0);
+ var cell = row.insertCell(0);
+ cell.innerHTML = "<b>Keyword</b>";
+ var cell = row.insertCell(1);
+ cell.innerHTML = "<b>Category</b>";
+
+ {%for p in jnodes['data']%}
+ var x=document.getElementById('myTable').insertRow(1);
+
+ control=0;
+ {%for p1 in jedges['data']%}
+ {%if p1['target'] == p['id']%}
+ control=1
+ {%endif%}
+ {%endfor%}
+
+ if(control !=1){
+ y= x.insertCell(0);
+ y.innerHTML='{{p['id']}}';
+ y= x.insertCell(1);
+ y.innerHTML='{{p['nodetype']}}';
+ }
+ {% endfor %}
+}
+</script>
+
+{%endblock%}