Favicon is working, Animations, some adjustments for iPhone 5s

This commit is contained in:
Marcel Petráň 2019-04-24 12:09:03 +02:00
parent ada129b993
commit 494a5cceb3
5 changed files with 33 additions and 7 deletions

13
js/smooth-scroll.js Normal file
View file

@ -0,0 +1,13 @@
$(document).ready(function(){
$("a").on('click', function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 800, function(){
window.location.hash = hash;
});
}
});
});