Difference between revisions of "Team:Marburg/Gallery"
Line 220: | Line 220: | ||
z-index:1; | z-index:1; | ||
height:450px; | height:450px; | ||
+ | width:820px; | ||
padding:10px; | padding:10px; | ||
opacity:0.0; | opacity:0.0; | ||
Line 341: | Line 342: | ||
<div style="z-index:1;text-align:center;padding-bottom:50px;"><img src="https://static.igem.org/mediawiki/2015/a/a7/MR_pic_Button_Gallery.png" style="height:60px;"/></div> | <div style="z-index:1;text-align:center;padding-bottom:50px;"><img src="https://static.igem.org/mediawiki/2015/a/a7/MR_pic_Button_Gallery.png" style="height:60px;"/></div> | ||
− | <div id="fader"> | + | <div id="fader" style="margin:0 auto;"> |
<img src="https://static.igem.org/mediawiki/2015/7/71/MR_pic_TeamfunAnna.jpg" alt="Anna" /> | <img src="https://static.igem.org/mediawiki/2015/7/71/MR_pic_TeamfunAnna.jpg" alt="Anna" /> | ||
<img src="https://static.igem.org/mediawiki/2015/9/91/MR_pic_TeamfunAlex.jpg" alt="Alex" /> | <img src="https://static.igem.org/mediawiki/2015/9/91/MR_pic_TeamfunAlex.jpg" alt="Alex" /> | ||
Line 377: | Line 378: | ||
$.fn.initGallery = function() { | $.fn.initGallery = function() { | ||
//SCALE CONTAINER | //SCALE CONTAINER | ||
− | var fades = $('img',this); | + | //var fades = $('img',this); |
− | var maxwidth = 0; | + | //var maxwidth = 0; |
− | var maxheight = 0; | + | //var maxheight = 0; |
− | fades.each(function() { | + | //fades.each(function() { |
− | maxwidth = ($(this).outerWidth() > maxwidth) ? $(this).outerWidth() : maxwidth; | + | //maxwidth = ($(this).outerWidth() > maxwidth) ? $(this).outerWidth() : maxwidth; |
− | maxheight = ($(this).outerHeight() > maxheight) ? $(this).outerHeight() : maxheight; | + | //maxheight = ($(this).outerHeight() > maxheight) ? $(this).outerHeight() : maxheight; |
− | }); | + | //}); |
− | this.height( maxheight ); | + | //this.height( maxheight ); |
− | this.width( maxwidth ); | + | //this.width( maxwidth ); |
//FIX IMAGE POSITIONS | //FIX IMAGE POSITIONS | ||
fades.each(function() { | fades.each(function() { |
Revision as of 10:34, 16 September 2015