Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
Line 74: | Line 74: | ||
}); | }); | ||
$('.my-sidebar-nav').affix({ | $('.my-sidebar-nav').affix({ | ||
- | offset: { | + | offset: { |
- | top: function () { return $(window).width() <= 980 ? 60 : 0}, | + | top: function () { return $(window).width() <= 980 ? 60 : 0}, |
- | bottom: 0 | + | bottom: 0 |
- | } | + | } |
}); | }); | ||
- | $('body[data-spy="scroll"]').scrollspy('refresh').on('activate', | + | $('body[data-spy="scroll"]').scrollspy('refresh').on('activate', reactiveNavbar); |
- | + | ||
- | + | ||
- | + | ||
/*jQuery('ul.nav li.dropdown').hover(function() { | /*jQuery('ul.nav li.dropdown').hover(function() { | ||
Line 92: | Line 89: | ||
});*/ | });*/ | ||
+ | function reactiveNavbar(){ | ||
+ | //activate wiki-menu | ||
+ | //$('#wiki-navbar.nav > li:contains("</html>{{{ActiveNavbar|Home}}}<html>")').addClass('active'); | ||
+ | $('#nav-</html>{{{ActiveNavbar|Home}}}<html>').addClass('active'); | ||
+ | } | ||
//usermenu dropdown | //usermenu dropdown | ||
Line 107: | Line 109: | ||
} | } | ||
- | + | reactiveNavbar(); | |
- | + | ||
}); | }); | ||
Revision as of 10:29, 26 September 2012