Template:Team:KIT-Kyoto/hidelogo

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
$(this).addClass('hidelogo');
$(this).addClass('hidelogo');
},3000);
},3000);
-
});
+
var hide = $("div").hasClass('hidelogo');
-
$(function(){
+
-
$(".toplogo img").hover(function(){
+
-
var hide = $("div").hasClass("hidelogo");
+
-
var active = $("div").hasClass("clicked");
+
if(hide){
if(hide){
 +
$(".toplogo img").hover(function(){
$(".toplogo img").stop().animate({'margin-top':'0px','margin-bottom':'0px'},1000,'linear');
$(".toplogo img").stop().animate({'margin-top':'0px','margin-bottom':'0px'},1000,'linear');
-
$(this).addClass('clicked');
+
}
-
}else if(active){
+
function(){
$(this).stop().animate({'margin-top':'-40px','margin-bottom':'-65px'});
$(this).stop().animate({'margin-top':'-40px','margin-bottom':'-65px'});
-
$(this).removeClass('clicked');
 
}
}
-
});
+
);
</script>
</script>

Revision as of 17:14, 20 September 2014