Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 201: | Line 201: | ||
setTimeout(function(){topimg();},100); | setTimeout(function(){topimg();},100); | ||
$("#container").css({marginTop:'70px',marginLeft:'0px'}); | $("#container").css({marginTop:'70px',marginLeft:'0px'}); | ||
- | } | + | }else{ |
+ | $("#close").removeClass('close'); | ||
+ | $("#SideMenu").css({"left":"-215px"}); | ||
+ | $("div#container").css({"margin":"0px 0px 0px 35px"}); | ||
+ | $("#close").css({'left':'0'}); | ||
+ | $(".toplogo,#nav5,.active,.submenu").css({opacity:'0'}); | ||
+ | $("#close a").css({'background-image':'url("https://static.igem.org/mediawiki/2014/d/d0/Kit_open.png")'}); | ||
+ | setTimeout(function(){ $("#SideMenu").animate({left:'0px'},500,'swing'); | ||
+ | $("#close").animate({left:'215px'},500,'swing').addClass("close"); | ||
+ | $(".logo").animate({left:'250'},500,'swing'); | ||
+ | $("#container").animate({margin:'0px 0px 0px 250px'},{duration:500,easing:'swing',complete:function(){topimg();},}); | ||
+ | $(".toplogo,#nav5,.active,.submenu").animate({opacity:'1'},800,'swing'); | ||
+ | setTimeout(function(){ | ||
+ | $("#close a") | ||
+ | .css({'background-image':'url("https://static.igem.org/mediawiki/2014/6/6d/Kit_close.png")'}); | ||
+ | },500); | ||
+ | } | ||
+ | |||
+ | },3100); | ||
$('#close a') | $('#close a') | ||
.click(function(){ | .click(function(){ |
Revision as of 18:17, 10 October 2014