Mercurial > repos > davidvanzessen > argalaxy_tools
diff bla/9/0/2/dataset_902501ce-6914-42e2-a96f-857904922ae6_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 | 
line wrap: on
 line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bla/9/0/2/dataset_902501ce-6914-42e2-a96f-857904922ae6_files/script.js Wed Apr 30 12:44:38 2025 +0000 @@ -0,0 +1,36 @@ +function compareAdd(id){ + var img = document.createElement('img'); + img.setAttribute('src', 'HeatmapVD_' + id + '.png'); + var td = document.createElement('td'); + td.setAttribute('id', "comparison_vd_" + id); + td.appendChild(img) + $('#comparison_table_vd').append(td); + + img = document.createElement('img'); + img.setAttribute('src', 'HeatmapVJ_' + id + '.png'); + td = document.createElement('td'); + td.setAttribute('id', "comparison_vj_" + id); + td.appendChild(img) + $('#comparison_table_vj').append(td); + + img = document.createElement('img'); + img.setAttribute('src', 'HeatmapDJ_' + id + '.png'); + td = document.createElement('td'); + td.setAttribute('id', "comparison_dj_" + id); + td.appendChild(img) + $('#comparison_table_dj').append(td); + + $('#compare_checkbox_' + id).attr('onchange', "javascript:compareRemove('" + id + "')"); +} + + +function compareRemove(id){ + $("#comparison_vd_" + id).remove() + $("#comparison_vj_" + id).remove() + $("#comparison_dj_" + id).remove() + $("#compare_checkbox_" + id).attr('onchange', "javascript:compareAdd('" + id + "')"); +} + +$( document ).ready(function () { + $('#junction_table').tablesorter(); +})
