diff options
author | Cassidy Dingenskirchen <admin@15318.de> | 2023-10-22 14:40:17 +0200 |
---|---|---|
committer | Cassidy Dingenskirchen <admin@15318.de> | 2023-10-22 14:40:17 +0200 |
commit | 6a0f20e29f559cfecf7b2e914d989cc12d00cc35 (patch) | |
tree | 3c280d1e73578304620b46061097d8feb1bc10bb /public | |
parent | 20b791c7682a5ec319498174c40c4b301e9b4716 (diff) |
departure board: now-jump button and styled hafas/iris switch button
Diffstat (limited to 'public')
-rw-r--r-- | public/static/js/travelynx-actions.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js index e4d69dc..1b6dd8a 100644 --- a/public/static/js/travelynx-actions.js +++ b/public/static/js/travelynx-actions.js @@ -298,6 +298,10 @@ $(document).ready(function() { $('a[href]').click(function() { $('nav .preloader-wrapper').addClass('active'); }); + $('a[href="#now"]').click(function(event) { + event.preventDefault(); + $('#now')[0].scrollIntoView({behavior: "smooth", block: "center"}); + }); const elems = document.querySelectorAll('.carousel'); const instances = M.Carousel.init(elems, { fullWidth: true, |