Template:Team:KIT-Kyoto/hp

From 2014.igem.org

(Difference between revisions)
Line 34: Line 34:
});
});
var picbox = $("#picbox").width();
var picbox = $("#picbox").width();
-
var picw = 810;
+
var picw = 809;
-
     if(picbox = picw){
+
     if(picbox >= picw){
     $(".pic1 li:gt(3),.pic2 li:gt(3)").css({opacity:"0"});
     $(".pic1 li:gt(3),.pic2 li:gt(3)").css({opacity:"0"});
     }else {
     }else {
Line 42: Line 42:
var loop = setInterval(function() {
var loop = setInterval(function() {
     var clone = $(".pic1 li:first").clone(true);
     var clone = $(".pic1 li:first").clone(true);
-
     if(picbox = picw){
+
     if(picbox >= picw){
     $(".pic1 li:nth-child(4)").css({opacity:"0"});
     $(".pic1 li:nth-child(4)").css({opacity:"0"});
     }else {
     }else {
Line 52: Line 52:
     duration : 800,
     duration : 800,
     complete : function() {   
     complete : function() {   
-
     if(picbox = picw){
+
     if(picbox >= picw){
     $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200);
     $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200);
     }
     }
Line 67: Line 67:
var loop = setInterval(function() {
var loop = setInterval(function() {
     var clone = $(".pic2 li:first").clone(true);
     var clone = $(".pic2 li:first").clone(true);
-
     if(picbox = picw){
+
     if(picbox >= picw){
     $(".pic2 li:nth-child(4)").css({opacity:"0"});
     $(".pic2 li:nth-child(4)").css({opacity:"0"});
     }else {
     }else {
Line 77: Line 77:
     duration : 800,
     duration : 800,
     complete : function() {
     complete : function() {
-
     if(picbox = picw){
+
     if(picbox >= picw){
     $(".pic2 li:nth-child(4)").animate({opacity:"1"},1200);
     $(".pic2 li:nth-child(4)").animate({opacity:"1"},1200);
     }
     }

Revision as of 19:12, 26 September 2014