EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 211: | Line 211: | ||
var smallscreen = window.matchMedia("(max-width: 900px)"); | var smallscreen = window.matchMedia("(max-width: 900px)"); | ||
var bigscreen = window.matchMedia("(min-width: 2000px)"); | var bigscreen = window.matchMedia("(min-width: 2000px)"); | ||
− | var position | + | var position = 3000; |
$(window).on('beforeunload', function(){ | $(window).on('beforeunload', function(){ | ||
Line 220: | Line 220: | ||
var timeoutVar = 0; | var timeoutVar = 0; | ||
} else if(bigscreen.matches){ | } else if(bigscreen.matches){ | ||
− | position | + | position = 5000; |
} else { | } else { | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); |
Revision as of 23:40, 12 October 2018