Mercurial > repos > davidvanzessen > argalaxy_tools
comparison bla/4/d/f/dataset_4dfa5016-3e58-4e93-be36-4718f2235624_files/script.js @ 61:f38a058e1a74 draft default tip
planemo upload commit 93519df849f317f4a8fc6167a48a4ee06e6aeff8
| author | rhpvorderman |
|---|---|
| date | Wed, 30 Apr 2025 12:44:38 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 60:5a45335f67f0 | 61:f38a058e1a74 |
|---|---|
| 1 function compareAdd(id){ | |
| 2 var img = document.createElement('img'); | |
| 3 img.setAttribute('src', 'HeatmapVD_' + id + '.png'); | |
| 4 var td = document.createElement('td'); | |
| 5 td.setAttribute('id', "comparison_vd_" + id); | |
| 6 td.appendChild(img) | |
| 7 $('#comparison_table_vd').append(td); | |
| 8 | |
| 9 img = document.createElement('img'); | |
| 10 img.setAttribute('src', 'HeatmapVJ_' + id + '.png'); | |
| 11 td = document.createElement('td'); | |
| 12 td.setAttribute('id', "comparison_vj_" + id); | |
| 13 td.appendChild(img) | |
| 14 $('#comparison_table_vj').append(td); | |
| 15 | |
| 16 img = document.createElement('img'); | |
| 17 img.setAttribute('src', 'HeatmapDJ_' + id + '.png'); | |
| 18 td = document.createElement('td'); | |
| 19 td.setAttribute('id', "comparison_dj_" + id); | |
| 20 td.appendChild(img) | |
| 21 $('#comparison_table_dj').append(td); | |
| 22 | |
| 23 $('#compare_checkbox_' + id).attr('onchange', "javascript:compareRemove('" + id + "')"); | |
| 24 } | |
| 25 | |
| 26 | |
| 27 function compareRemove(id){ | |
| 28 $("#comparison_vd_" + id).remove() | |
| 29 $("#comparison_vj_" + id).remove() | |
| 30 $("#comparison_dj_" + id).remove() | |
| 31 $("#compare_checkbox_" + id).attr('onchange', "javascript:compareAdd('" + id + "')"); | |
| 32 } | |
| 33 | |
| 34 $( document ).ready(function () { | |
| 35 $('#junction_table').tablesorter(); | |
| 36 }) |
