Template:Team:TU Munich/Menu
From 2011.igem.org
(Difference between revisions)
Line 286: | Line 286: | ||
console.log(constituentFolders); | console.log(constituentFolders); | ||
if (constituentFolders.length>=3) { | if (constituentFolders.length>=3) { | ||
- | if (constituentFolders.length>=4) { | + | if ((constituentFolders.length>=4) && ($('#subnav'+constituentFolders[3]).hasClass('subnavtopic'))){ |
if (constituentFolders.length==5) { | if (constituentFolders.length==5) { | ||
console.log('case 5'); | console.log('case 5'); | ||
Line 366: | Line 366: | ||
$('#navmenu').mouseleave(function() { | $('#navmenu').mouseleave(function() { | ||
if ($('#subnavtopics').css('height') === '0px') { | if ($('#subnavtopics').css('height') === '0px') { | ||
- | |||
$('.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 378: | Line 377: | ||
else { | else { | ||
- | |||
$('.subnavpoint').not('.curlink').css("color","#CCCCCC"); | $('.subnavpoint').not('.curlink').css("color","#CCCCCC"); | ||
$('.subnavtopic').not('.curlink').css("color","#CCCCCC"); | $('.subnavtopic').not('.curlink').css("color","#CCCCCC"); |
Revision as of 18:36, 2 September 2011