Some first work on structure

This commit is contained in:
Florian Küpper committed 2016-12-18 19:48:13 +01:00
1 parent 80d5bc2f11
commit 4c47d86fdc
57 files changed
+12964 -51

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
$(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) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});