Fixed tour navigation in iPhone browsers

This commit is contained in:
Manuel Cillero 2017-09-11 00:01:39 +02:00
parent 7211b87ec4
commit efce8ae3ea
2 changed files with 19 additions and 11 deletions

View file

@ -1,7 +1,7 @@
$jq(function () {
// Bind to scroll.
$(window).scroll(function () {
$(window).scroll(function() {
//Display or hide scroll to top button.
if ($(this).scrollTop() > 100) {
$('#scroll-top-link').fadeIn();
@ -11,7 +11,7 @@ $jq(function () {
});
// Function for scrolling to top.
$('#scroll-top-link').click(function (e) {
$('#scroll-top-link').click(function(e) {
$("html, body").animate({
scrollTop: 0
}, 600);