Team:Wageningen UR/Templates/Page Footer
From 2013.igem.org
(Difference between revisions)
Karrenbelt (Talk | contribs) |
Karrenbelt (Talk | contribs) |
||
Line 50: | Line 50: | ||
$('.subs').removeClass('active'); | $('.subs').removeClass('active'); | ||
- | + | // Project | |
$('#topmenu .project, ul.sub-project').mouseover( | $('#topmenu .project, ul.sub-project').mouseover( | ||
function() { | function() { | ||
Line 61: | Line 61: | ||
} | } | ||
); | ); | ||
+ | // Achievements | ||
+ | $('#topmenu .achievements, ul.sub-achievements').mouseover( | ||
+ | function() { | ||
+ | $('ul.sub-achievements').addClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | $('#topmenu .achievements, ul.sub-achievements').mouseout( | ||
+ | function() { | ||
+ | $('ul.sub-achievements').removeClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | // Safety | ||
+ | $('#topmenu .safety, ul.sub-safety').mouseover( | ||
+ | function() { | ||
+ | $('ul.sub-safety').addClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | $('#topmenu .safety, ul.sub-safety').mouseout( | ||
+ | function() { | ||
+ | $('ul.sub-safety').removeClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | // Human practices | ||
+ | $('#topmenu .human, ul.sub-human-practices').mouseover( | ||
+ | function() { | ||
+ | $('ul.sub-human-practices').addClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | $('#topmenu .human, ul.sub-human-practices').mouseout( | ||
+ | function() { | ||
+ | $('ul.sub-human-practices').removeClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | // Team | ||
+ | $('#topmenu .team, ul.sub-team').mouseover( | ||
+ | function() { | ||
+ | $('ul.sub-team').addClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | $('#topmenu .team, ul.sub-team').mouseout( | ||
+ | function() { | ||
+ | $('ul.sub-team').removeClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | // Notebook | ||
+ | $('#topmenu .notebook, ul.sub-notebook').mouseover( | ||
+ | function() { | ||
+ | $('ul.sub-notebook').addClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | $('#topmenu .notebook, ul.sub-notebook').mouseout( | ||
+ | function() { | ||
+ | $('ul.sub-notebook').removeClass('active'); | ||
+ | } | ||
+ | ); | ||
+ | |||
}); | }); |
Revision as of 21:10, 4 October 2013