Browse Source

Button

pull/45/head
Jure Šorn 5 years ago
parent
commit
72383f0fb6
1 changed files with 1 additions and 1 deletions
  1. 2
      web/script_2.js

2
web/script_2.js

@ -61,7 +61,7 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine
// ===== Scroll to Top ====
$(window).scroll(function() {
if (isMobile && $(this).scrollTop() >= 520) { // If mobile device and page is scrolled more than 520px.
if (isMobile && $(this).scrollTop() >= 480) { // If mobile device and page is scrolled more than 520px.
$('#return-to-top').fadeIn(200); // Fade in the arrow
} else {
$('#return-to-top').fadeOut(200); // Else fade out the arrow

Loading…
Cancel
Save