Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
Line 208: | Line 208: | ||
clip = 'rect(0px,85px,50px,58px)'; | clip = 'rect(0px,85px,50px,58px)'; | ||
top = (garPic.height - prefoto.height)/2 + 'px'; | top = (garPic.height - prefoto.height)/2 + 'px'; | ||
- | } | + | }; |
+ | showbox.insertBefore(prefoto,closebtn); | ||
Line 221: | Line 222: | ||
adWidth = $(window).width()*0.8; | adWidth = $(window).width()*0.8; | ||
setTimeout(function(){ | setTimeout(function(){ | ||
- | |||
ratio = garPic.height/garPic.width; | ratio = garPic.height/garPic.width; | ||
if( garPic.height/garPic.width > adHeight/adWidth) {garPic.style.height = adHeight + 'px'; | if( garPic.height/garPic.width > adHeight/adWidth) {garPic.style.height = adHeight + 'px'; | ||
Line 234: | Line 234: | ||
showbox.style.marginLeft = ($(window).width() - finWidth)/2 + 'px'; | showbox.style.marginLeft = ($(window).width() - finWidth)/2 + 'px'; | ||
closebtn.style.right = '0px'; | closebtn.style.right = '0px'; | ||
- | lightframe.style.left = '0px';},100); | + | lightframe.style.left = '0px'; |
- | + | },100); | |
} | } | ||
Revision as of 15:12, 22 July 2013