Mercurial > repos > mzeidler > virana_main
diff jqBarGraph.2.1.js @ 34:b5257053fa73 draft
Uploaded
author | mzeidler |
---|---|
date | Mon, 30 Sep 2013 13:27:35 -0400 |
parents | 04d3086631ac |
children | 1a06678bafa6 |
line wrap: on
line diff
--- a/jqBarGraph.2.1.js Mon Sep 30 13:15:17 2013 -0400 +++ b/jqBarGraph.2.1.js Mon Sep 30 13:27:35 2013 -0400 @@ -488,7 +488,11 @@ var div = document.getElementById("image" + elid); div.innerHTML=""; out="<div><H3>Consensus Image for Region "+region+"</H3></div>"; - out+="<img id='image_file"+elid+"' src="+consensus_image+" alt="+consensus_image+" style='width:100%;height:100%;'>"; + newImg=Image(); + newImg=consensus_image + wid=newImg.naturalWidth + hig=newImg.naturalHeight + out+="<img id='image_file"+elid+"' src="+consensus_image+" alt="+consensus_image+" style='width:"+wid+";height:"+hig+";'>"; $(div).append(out)