mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
parent
46a2d9e3ce
commit
06c5a72833
@ -6,7 +6,7 @@
|
||||
|
||||
// Added sticky class when window top is great than nav top
|
||||
function stickyNav() {
|
||||
if ($(window).scrollTop() >= sticky.top) {
|
||||
if (nav.length > 0 && $(window).scrollTop() >= sticky.top) {
|
||||
$(".sl-l-medium-holy-grail__body").addClass("sl-js-nav--is-sticky");
|
||||
} else {
|
||||
$(".sl-l-medium-holy-grail__body").removeClass("sl-js-nav--is-sticky");
|
||||
|
Loading…
Reference in New Issue
Block a user