Team:Wageningen UR/Templates/Page Footer
From 2013.igem.org
(Difference between revisions)
Karrenbelt (Talk | contribs) |
Karrenbelt (Talk | contribs) |
||
(2 intermediate revisions 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(); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | $('#topmenu .project, ul.sub-project'). | + | $('.subs').removeClass('active'); |
+ | // Project | ||
+ | $('#topmenu .project, ul.sub-project').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub-project'). | + | $('ul.sub-project').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | $('#topmenu .project, ul.sub-project').mouseout( |
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-project').removeClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | // Achievements |
+ | $('#topmenu .achievements, ul.sub-achievements').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-achievements').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu .achievements, ul.sub-achievements'). | + | $('#topmenu .achievements, ul.sub-achievements').mouseout( |
function() { | function() { | ||
- | $('ul.sub-achievements'). | + | $('ul.sub-achievements').removeClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | // Safety |
+ | $('#topmenu .safety, ul.sub-safety').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-safety').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu .safety, ul.sub-safety'). | + | $('#topmenu .safety, ul.sub-safety').mouseout( |
function() { | function() { | ||
- | $('ul.sub-safety'). | + | $('ul.sub-safety').removeClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu . | + | // Human practices |
+ | $('#topmenu .human, ul.sub-human-practices').mouseover( | ||
function() { | function() { | ||
- | $('ul.sub- | + | $('ul.sub-human-practices').addClass('active'); |
} | } | ||
); | ); | ||
- | $('#topmenu .human, ul.sub-human-practices'). | + | $('#topmenu .human, ul.sub-human-practices').mouseout( |
function() { | function() { | ||
- | $('ul.sub-human-practices'). | + | $('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