Mercurial > repos > mzeidler > virana_main
comparison jqBarGraph.2.1.js @ 36:e4b30166e311 draft
Uploaded
author | mzeidler |
---|---|
date | Mon, 30 Sep 2013 19:55:07 -0400 |
parents | 1a06678bafa6 |
children | f325e9116e21 |
comparison
equal
deleted
inserted
replaced
35:1a06678bafa6 | 36:e4b30166e311 |
---|---|
477 curr_hei=$('.files'+elid).height(); | 477 curr_hei=$('.files'+elid).height(); |
478 $('.files'+elid).css({'height': 'auto','display':'none'}); | 478 $('.files'+elid).css({'height': 'auto','display':'none'}); |
479 hei=$('.files'+elid).height(); | 479 hei=$('.files'+elid).height(); |
480 hei=parseInt(hei)+10; | 480 hei=parseInt(hei)+10; |
481 hei=hei>400? hei=400 : hei; | 481 hei=hei>400? hei=400 : hei; |
482 $('.files'+elid).css({'height': curr_hei+'px', 'width':'915px','position':'relative', 'overflow' : 'auto','background-color':'rgb(223, 229, 249)', 'border':'2px solid silver', 'display':'block' }).animate({'height':hei+'px'}, 1000); | 482 $('.files'+elid).css({'height': curr_hei+'px', 'width':wi+'px','position':'relative', 'overflow' : 'auto','background-color':'rgb(223, 229, 249)', 'border':'2px solid silver', 'display':'block' }).animate({'height':hei+'px'}, 1000); |
483 } | 483 } |
484 }; | 484 }; |
485 | 485 |
486 | 486 |
487 showImage = function (elid,region, consensus_image,wi) { | 487 showImage = function (elid,region, consensus_image,wi) { |
488 var div = document.getElementById("image" + elid); | 488 var div = document.getElementById("image" + elid); |
489 div.innerHTML=""; | 489 div.innerHTML=""; |
490 out="<div><H3>Consensus Image for Region "+region+"</H3></div>"; | 490 out="<div><H3>Consensus Image for Region "+region+"</H3></div>"; |
491 newImg= new Image(); | 491 newImg= new Image(); |
492 newImg=consensus_image | 492 newImg.src=consensus_image; |
493 wid=newImg.naturalWidth | 493 wid=newImg.naturalWidth; |
494 hig=newImg.naturalHeight | 494 hig=newImg.naturalHeight; |
495 out+="<img id='image_file"+elid+"' src="+consensus_image+" alt="+consensus_image+" style='width:"+wid+";height:"+hig+";'>"; | 495 out+="<img id='image_file"+elid+"' src="+consensus_image+" alt="+consensus_image+" style='width:"+wid+";height:"+hig+";'>"; |
496 $(div).append(out) | 496 $(div).append(out) |
497 | 497 |
498 | 498 |
499 $(div).append("<div class='close_image"+elid+"'style='cursor:pointer;'>x</div>"); | 499 $(div).append("<div class='close_image"+elid+"'style='cursor:pointer;'>x</div>"); |