Mercurial > repos > davidvanzessen > complete_immunerepertoire_igg
diff script.js @ 1:778a9d130904 draft
Uploaded
author | davidvanzessen |
---|---|
date | Thu, 04 Sep 2014 07:46:23 -0400 |
parents | 7d97fa9a0423 |
children |
line wrap: on
line diff
--- a/script.js Fri May 09 09:35:32 2014 -0400 +++ b/script.js Thu Sep 04 07:46:23 2014 -0400 @@ -1,32 +1,36 @@ function compareAdd(id){ var img = document.createElement('img'); - img.setAttribute('src', 'VD_' + id + '.png'); + img.setAttribute('src', 'HeatmapVD_' + id + '.png'); var td = document.createElement('td'); td.setAttribute('id', "comparison_vd_" + id); td.appendChild(img) - document.getElementById('comparison_table_vd').appendChild(td); + $('#comparison_table_vd').append(td); img = document.createElement('img'); - img.setAttribute('src', 'VJ_' + id + '.png'); + img.setAttribute('src', 'HeatmapVJ_' + id + '.png'); td = document.createElement('td'); td.setAttribute('id', "comparison_vj_" + id); td.appendChild(img) - document.getElementById('comparison_table_vj').appendChild(td); + $('#comparison_table_vj').append(td); img = document.createElement('img'); - img.setAttribute('src', 'DJ_' + id + '.png'); + img.setAttribute('src', 'HeatmapDJ_' + id + '.png'); td = document.createElement('td'); td.setAttribute('id', "comparison_dj_" + id); td.appendChild(img) - document.getElementById('comparison_table_dj').appendChild(td); + $('#comparison_table_dj').append(td); - document.getElementById('compare_checkbox_' + id).setAttribute('onchange', "javascript:compareRemove('" + id + "')"); + $('#compare_checkbox_' + id).attr('onchange', "javascript:compareRemove('" + id + "')"); } function compareRemove(id){ - document.getElementById("comparison_vd_" + id).remove() - document.getElementById("comparison_vj_" + id).remove() - document.getElementById("comparison_dj_" + id).remove() - document.getElementById('compare_checkbox_' + id).setAttribute('onchange', "javascript:compareAdd('" + 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(); +})