Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 34: | Line 34: | ||
}); | }); | ||
var picbox = $("#picbox").width(); | var picbox = $("#picbox").width(); | ||
+ | |||
if(picbox = 810){ | if(picbox = 810){ | ||
$(".pic1 li:gt(3),.pic2 li:gt(3)").css({opacity:"0"}); | $(".pic1 li:gt(3),.pic2 li:gt(3)").css({opacity:"0"}); | ||
Line 39: | Line 40: | ||
$(".pic1 li:gt(2),.pic2 li:gt(2)").css({opacity:"0"}); | $(".pic1 li:gt(2),.pic2 li:gt(2)").css({opacity:"0"}); | ||
} | } | ||
+ | |||
setTimeout(function(){ | setTimeout(function(){ | ||
if(picbox = 810){ | if(picbox = 810){ | ||
Line 50: | Line 52: | ||
var loop = setInterval(function() { | var loop = setInterval(function() { | ||
var clone = $(".pic1 li:first").clone(true); | var clone = $(".pic1 li:first").clone(true); | ||
- | |||
if(picbox = 810){ | if(picbox = 810){ | ||
$(".pic1 li:gt(3)").css({opacity:"0"}); | $(".pic1 li:gt(3)").css({opacity:"0"}); | ||
Line 68: | Line 69: | ||
} | } | ||
$(".pic1 li:first").remove(); | $(".pic1 li:first").remove(); | ||
- | clone.clone(true | + | clone.clone(true).insertAfter($(".pic1 li:last")); |
} | } | ||
}); | }); | ||
Line 76: | Line 77: | ||
var loop = setInterval(function() { | var loop = setInterval(function() { | ||
var clone = $(".pic2 li:first").clone(true); | var clone = $(".pic2 li:first").clone(true); | ||
- | |||
if(picbox = 810){ | if(picbox = 810){ | ||
$(".pic2 li:gt(3)").css({opacity:"0"}); | $(".pic2 li:gt(3)").css({opacity:"0"}); | ||
Line 94: | Line 94: | ||
} | } | ||
$(".pic2 li:first").remove(); | $(".pic2 li:first").remove(); | ||
- | clone.clone(true | + | clone.clone(true).insertAfter($(".pic2 li:last")); |
} | } | ||
}); | }); |
Revision as of 17:53, 26 September 2014