This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Warning, this wil target all # elements | |
// Even when they do not link to a location on the page | |
// For example, #next-arrow will also prevent the default behavior | |
$('a[href^="#"]').on('click', function (e) { | |
e.preventDefault(); | |
var target = this.hash; | |
var $target = $(target); |