Team:NTU-Taida/Templates/Footer
From 2012.igem.org
(Difference between revisions)
m |
(add scroll spy) |
||
Line 8: | Line 8: | ||
interval: 3000 | interval: 3000 | ||
}); | }); | ||
+ | //for scroll spy | ||
+ | $('body').attr({ | ||
+ | 'data-spy': 'scroll', | ||
+ | 'data-target': ".my-sidebar", | ||
+ | 'data-offset': '0' | ||
+ | }); | ||
+ | $('.my-sidebar-nav').affix({ | ||
+ | offset: { | ||
+ | top: function () { return $(window).width() <= 980 ? 60 : 0}, | ||
+ | bottom: 470 | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | |||
//usermenu dropdown | //usermenu dropdown |
Revision as of 19:04, 27 August 2012