Template:Team:KIT-Kyoto/hp

From 2014.igem.org

(Difference between revisions)
Line 20: Line 20:
});
});
 +
var checkpbw = function(){
 +
var pbw = $("#container").width();
 +
if(pbw <= 1158){
 +
$("#picbox").css({"width":"540px"});
 +
}else {
 +
$("#picbox").css({"width":"810px"});
 +
}
 +
};
 +
 +
$(function(){
 +
checkpbw();
 +
    $(window).resize(checkpbw);
 +
});
 +
 +
var picbox = $("#picbox").width();
 +
$(window).resize(picbox);
setTimeout(function(){
setTimeout(function(){
-
     if($(".pic1 li:nth-child(3)").is(':visible')){
+
     if(picbox == 810){
     $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200);
     $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200);
     }
     }
Line 32: Line 48:
     var clone = $(".pic1 li:first").clone(true);
     var clone = $(".pic1 li:first").clone(true);
     clone.css({"opacity":"0"});
     clone.css({"opacity":"0"});
-
     if($(".pic1 li:nth-child(3)").is(':visible')){
+
     if(picbox == 810){
     $(".pic1 li:gt(3)").css({opacity:"0"});
     $(".pic1 li:gt(3)").css({opacity:"0"});
     }else {
     }else {
Line 42: Line 58:
     duration : 800,
     duration : 800,
     complete : function() {   
     complete : function() {   
-
     if($(".pic1 li:nth-child(3)").is(':visible')){
+
     if(picbox == 810){
     $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200);
     $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200);
     }
     }

Revision as of 17:32, 26 September 2014