annotate report_clonality/script.js @ 53:0ef7f80ea061 draft

Uploaded
author davidvanzessen
date Thu, 25 Feb 2021 13:39:50 +0000
parents 124b7fd92a3e
children 81b3eb11ed2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
1 function compareAdd(id){
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
2 var img = document.createElement('img');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
3 img.setAttribute('src', 'HeatmapVD_' + id + '.png');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
4 var td = document.createElement('td');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
5 td.setAttribute('id', "comparison_vd_" + id);
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
6 td.appendChild(img)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
7 $('#comparison_table_vd').append(td);
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
8
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
9 img = document.createElement('img');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
10 img.setAttribute('src', 'HeatmapVJ_' + id + '.png');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
11 td = document.createElement('td');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
12 td.setAttribute('id', "comparison_vj_" + id);
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
13 td.appendChild(img)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
14 $('#comparison_table_vj').append(td);
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
15
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
16 img = document.createElement('img');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
17 img.setAttribute('src', 'HeatmapDJ_' + id + '.png');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
18 td = document.createElement('td');
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
19 td.setAttribute('id', "comparison_dj_" + id);
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
20 td.appendChild(img)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
21 $('#comparison_table_dj').append(td);
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
22
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
23 $('#compare_checkbox_' + id).attr('onchange', "javascript:compareRemove('" + id + "')");
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
24 }
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
25
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
26
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
27 function compareRemove(id){
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
28 $("#comparison_vd_" + id).remove()
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
29 $("#comparison_vj_" + id).remove()
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
30 $("#comparison_dj_" + id).remove()
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
31 $("#compare_checkbox_" + id).attr('onchange', "javascript:compareAdd('" + id + "')");
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
32 }
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
33
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
34 $( document ).ready(function () {
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
35 $('#junction_table').tablesorter();
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
36 })