Fix jquery selector

This commit is contained in:
Andrea Spacca
2018-07-02 18:51:06 +02:00
parent 2f4feb124f
commit 334122d83b
3 changed files with 273 additions and 273 deletions

View File

@@ -8,8 +8,7 @@ $(document).ready(function () {
});
// Smooth scrolling
/*
$('a[href*=#]:not([href=#])').click(function () {
$('a[href*="#"]:not([href="#"])').click(function () {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
@@ -21,5 +20,4 @@ $(document).ready(function () {
}
}
});
*/
});
});