Mercurial > repos > davidvanzessen > argalaxy_tools
comparison report_clonality/script.js @ 12:010402c959aa draft
Uploaded
| author | davidvanzessen |
|---|---|
| date | Tue, 04 Aug 2015 10:00:20 -0400 |
| parents | f90fbc15b35a |
| children |
comparison
equal
deleted
inserted
replaced
| 11:0510cf1f7cbc | 12:010402c959aa |
|---|---|
| 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 }) |
