Browse Source

Button

pull/45/head
Jure Šorn 5 years ago
parent
commit
7dbaaf3105
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() >= 590) { // If mobile device and page is scrolled more than 590px.
if (isMobile && $(this).scrollTop() >= 520) { // 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