Team:Wageningen UR/Templates/Page Footer
From 2013.igem.org
(Difference between revisions)
Karrenbelt (Talk | contribs) |
Karrenbelt (Talk | contribs) |
||
(One intermediate revision not shown) | |||
Line 47: | Line 47: | ||
$("#footer-box #footer:nth-child(2) ul").clone(true, true).contents().appendTo('#footer-box #footer:first-child ul'); | $("#footer-box #footer:nth-child(2) ul").clone(true, true).contents().appendTo('#footer-box #footer:first-child ul'); | ||
$("#footer-box #footer:nth-child(2)").remove(); | $("#footer-box #footer:nth-child(2)").remove(); | ||
- | |||
- | |||
- | |||
+ | $('.subs').removeClass('active'); | ||
+ | // Project | ||
$('#topmenu .project, ul.sub-project').mouseover( | $('#topmenu .project, ul.sub-project').mouseover( | ||
function() { | function() { | ||
Line 61: | Line 60: | ||
} | } | ||
); | ); | ||
+ | // 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'); | ||
+ | } | ||
+ | ); | ||
+ | |||
- | |||
}); | }); | ||
}); | }); |
Latest revision as of 22:12, 4 October 2013