Team:Heidelberg/Team
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 181: | Line 181: | ||
var rightmost = (picsperside.h - 1) * (150 + wdiff); | var rightmost = (picsperside.h - 1) * (150 + wdiff); | ||
for (var i = 0; i < picsperside.h; ++i, ++currpic) { | for (var i = 0; i < picsperside.h; ++i, ++currpic) { | ||
- | |||
$(images[currpic]).animate({"left": i * (150 + wdiff), "top": 0}); | $(images[currpic]).animate({"left": i * (150 + wdiff), "top": 0}); | ||
+ | $(images[currpic]).css({"right": '', "bottom": ''}); | ||
} | } | ||
for (var i = 1; i < picsperside.v - 1; ++i, ++currpic) { | for (var i = 1; i < picsperside.v - 1; ++i, ++currpic) { | ||
- | |||
$(images[currpic]).animate({"left": 0, "top": i * 170}); | $(images[currpic]).animate({"left": 0, "top": i * 170}); | ||
+ | $(images[currpic]).css({""right": '', "bottom": ''}); | ||
} | } | ||
for (var i = 1; i < picsperside.v - 1; ++i, ++currpic){ | for (var i = 1; i < picsperside.v - 1; ++i, ++currpic){ | ||
- | |||
$(images[currpic]).animate({"left": rightmost, "top": i * 170}); | $(images[currpic]).animate({"left": rightmost, "top": i * 170}); | ||
+ | $(images[currpic]).css({"right": '', "bottom": ''}); | ||
} | } | ||
for (var i = 0; i < picsperside.h; ++i, ++currpic) { | for (var i = 0; i < picsperside.h; ++i, ++currpic) { | ||
- | |||
$(images[currpic]).animate({"left": i * (150 + wdiff), "bottom": 0}); | $(images[currpic]).animate({"left": i * (150 + wdiff), "bottom": 0}); | ||
+ | $(images[currpic]).css({"top": '', "right": ''}); | ||
} | } | ||
} | } |
Revision as of 23:06, 4 October 2013