Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 188: | Line 188: | ||
.click(function(){ | .click(function(){ | ||
var closed = $("#close").hasClass("close"); | var closed = $("#close").hasClass("close"); | ||
- | if(closed){ | + | if(closed){ |
$("#SideMenu").animate({left:'-215px'},500,'swing'); | $("#SideMenu").animate({left:'-215px'},500,'swing'); | ||
$("#close").animate({left:'0px'},500,'swing').removeClass("close"); | $("#close").animate({left:'0px'},500,'swing').removeClass("close"); | ||
$(".logo").animate({left:'40'},500,'swing'); | $(".logo").animate({left:'40'},500,'swing'); | ||
$("#container").animate({margin:'0px 0px 0px 35px'},500,'swing'); | $("#container").animate({margin:'0px 0px 0px 35px'},500,'swing'); | ||
- | $(".toplogo,#nav5,.active,.submenu").animate({opacity:'0'},800,'swing'); | + | $(".toplogo,#nav5,.active,.submenu").animate({opacity:'0'},800,'swing');topimg(); |
setTimeout(function(){ | setTimeout(function(){ | ||
$("#close a").css({'background-image':'url("https://static.igem.org/mediawiki/2014/d/d0/Kit_open.png")'}); | $("#close a").css({'background-image':'url("https://static.igem.org/mediawiki/2014/d/d0/Kit_open.png")'}); | ||
},500); | },500); | ||
- | }else { | + | }else { |
$("#SideMenu").animate({left:'0px'},500,'swing'); | $("#SideMenu").animate({left:'0px'},500,'swing'); | ||
$("#close").animate({left:'215px'},500,'swing').addClass("close"); | $("#close").animate({left:'215px'},500,'swing').addClass("close"); | ||
$(".logo").animate({left:'250'},500,'swing'); | $(".logo").animate({left:'250'},500,'swing'); | ||
$("#container").animate({margin:'0px 0px 0px 250px'},500,'swing'); | $("#container").animate({margin:'0px 0px 0px 250px'},500,'swing'); | ||
- | $(".toplogo,#nav5,.active,.submenu").animate({opacity:'1'},800,'swing'); | + | $(".toplogo,#nav5,.active,.submenu").animate({opacity:'1'},800,'swing');topimg(); |
setTimeout(function(){ | setTimeout(function(){ | ||
$("#close a") | $("#close a") |
Revision as of 16:50, 10 October 2014