Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
(change the code making abbr subnav) |
(fix navbar activate) |
||
Line 86: | Line 86: | ||
} | } | ||
}); | }); | ||
- | $('[data-spy="scroll"]').each(function () { | + | /*$('body[data-spy="scroll"]').each(function () { |
var $spy = $(this).scrollspy('refresh'); | var $spy = $(this).scrollspy('refresh'); | ||
- | }); | + | });*/ |
+ | $('body[data-spy="scroll"]').scrollspy('refresh').on('activate', | ||
+ | function(){ | ||
+ | $('#wiki-navbar.nav > li:contains("</html>{{{ActiveNavbar|Home}}}<html>")').addClass('active'); | ||
+ | }) | ||
Revision as of 02:26, 25 September 2012