Difference between revisions of "Team:SSTi-SZGD/js/Experiments"

(Created page with "custom Project Effect: $(function(){ $(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); },function(){ $(".he...")
 
Line 33: Line 33:
 
},400);
 
},400);
 
}
 
}
+
else if($(this).parent().attr("class")=="LOS"){
 +
setTimeout(function(){
 +
$(".LOS .igem").css("display","none")
 +
},400);
 +
}
 
}
 
}
 
 

Revision as of 01:22, 13 October 2017

/*custom Project Effect*/ $(function(){

$(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); },function(){ $(".header .nav .Project span").css("color","#FAEE0D"); });

});

/*Telescopic*/ $(function(){

$(".Title").click(function(){

if($(this).next().css("display")=="none"){ $(this).children(".plus").css("display","none"); $(this).children(".reduce").css("display","block"); $(this).next().slideDown(); $(this).children(".igem").css("display","block") }else{ $(this).next().slideUp(); $(this).children(".reduce").css("display","none"); $(this).children(".plus").css("display","block"); if($(this).parent().attr("class")=="MPD"){ setTimeout(function(){ $(".MPD .igem").css("display","none") },400); }else if($(this).parent().attr("class")=="MHEI"){ setTimeout(function(){ $(".MHEI .igem").css("display","none") },400); } else if($(this).parent().attr("class")=="LOS"){ setTimeout(function(){ $(".LOS .igem").css("display","none") },400); } }


});

});