Mercurial > repos > davidvanzessen > argalaxy_tools
comparison report_clonality/script.js @ 0:afe85eb6572e draft
Uploaded
| author | davidvanzessen |
|---|---|
| date | Mon, 29 Aug 2016 05:41:20 -0400 |
| parents | |
| children | 124b7fd92a3e |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:afe85eb6572e |
|---|---|
| 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 }) |
