Template:Team:TU Munich/Menu
From 2011.igem.org
(Difference between revisions)
Line 323: | Line 323: | ||
$('#'+constituentFolders[4]).css("color","#4D4DDB"); | $('#'+constituentFolders[4]).css("color","#4D4DDB"); | ||
}); | }); | ||
- | } | + | } // end 5 |
- | else { | + | else { //begin 4 |
$('#navmenu').mouseleave(function() { | $('#navmenu').mouseleave(function() { | ||
if ($('#subnavtopics').css('height') === '0px') { | if ($('#subnavtopics').css('height') === '0px') { | ||
Line 359: | Line 359: | ||
} | } | ||
}); | }); | ||
- | } | + | } //end 4 |
- | } | + | } |
- | else { | + | else { //begin 3 |
$('#navmenu').mouseleave(function() { | $('#navmenu').mouseleave(function() { | ||
if ($('#subnavtopics').css('height') === '0px') { | if ($('#subnavtopics').css('height') === '0px') { | ||
+ | console.log('foo'); | ||
$('.navpoint').not('.curlink').css("color","#CCCCCC"); | $('.navpoint').not('.curlink').css("color","#CCCCCC"); | ||
$('.navtopic').not('.curlink').css("color","#CCCCCC"); | $('.navtopic').not('.curlink').css("color","#CCCCCC"); | ||
Line 375: | Line 376: | ||
else { | else { | ||
- | + | console.log('bar') | |
$('.subnavpoint').not('.curlink').css("color","#CCCCCC"); | $('.subnavpoint').not('.curlink').css("color","#CCCCCC"); | ||
$('.subnavtopic').not('.curlink').css("color","#CCCCCC"); | $('.subnavtopic').not('.curlink').css("color","#CCCCCC"); | ||
Line 386: | Line 387: | ||
$('#navtopics').stop().animate({height: '20px'},{duration: 1000, easing: 'easeOutBounce'}); | $('#navtopics').stop().animate({height: '20px'},{duration: 1000, easing: 'easeOutBounce'}); | ||
$('#navtopics ul').css("display","none"); | $('#navtopics ul').css("display","none"); | ||
- | if ($('.nav'+constituentFolders[2]).css('display') | + | if ($('.nav'+constituentFolders[2]).css('display') == 'none') { |
$('.nav'+constituentFolders[2]).stop().fadeTo(500,1); | $('.nav'+constituentFolders[2]).stop().fadeTo(500,1); | ||
$('#subnav'+constituentFolders[3]).css("color","#4D4DDB"); | $('#subnav'+constituentFolders[3]).css("color","#4D4DDB"); | ||
Line 394: | Line 395: | ||
} | } | ||
}); | }); | ||
- | } // | + | } // end 3 |
- | } | + | } |
- | else { | + | else { // begin 2 |
$('#navmenu').mouseleave(function() { | $('#navmenu').mouseleave(function() { | ||
if ($('#subnavtopics').css('height') === '0px') { | if ($('#subnavtopics').css('height') === '0px') { |
Revision as of 18:25, 2 September 2011