Fix single page navigation

master
Nikola Forró 7 years ago
parent 51e789fc0e
commit 206ac5543d

@ -14,11 +14,18 @@
<script> <script>
// singlePageNav initialization & configuration // singlePageNav initialization & configuration
$('ul.navigation').singlePageNav({ $('nav').singlePageNav({
offset: $('#header').outerHeight(), offset: $('#header').outerHeight(),
filter: ':not(.external)', filter: 'a[href*="#"]',
updateHash: true, updateHash: true,
currentClass: 'active' currentClass: 'active',
beforeStart: function() {
if ($('body').hasClass('mobile-nav-open')) {
$('#toggle').removeClass('active');
$('#overlay').removeClass('open');
$('body').removeClass('mobile-nav-open');
}
}
}); });
</script> </script>

Loading…
Cancel
Save