diff options
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/fixmystreet.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 19f1f0402..7967e3d7d 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -282,4 +282,13 @@ $(function(){ e.preventDefault(); tabs($(this)); }); + + /* + * Skip to nav on mobile + */ + $('.mobile').on('click', '#nav-link', function(e){ + e.preventDefault(); + var foo = $('.wrapper').height() - $('main-nav').height(); + $('html, body').animate({scrollTop:foo}, 1000); + }); });
\ No newline at end of file |