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){topimg(); |
$("#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"); | ||
Line 197: | Line 197: | ||
$("#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 {topimg(); |
$("#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"); |
Revision as of 16:49, 10 October 2014