EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 210: | Line 210: | ||
<script> | <script> | ||
var screen_900 = window.matchMedia("(max-width: 900px)"); | var screen_900 = window.matchMedia("(max-width: 900px)"); | ||
− | var | + | var screen_1024 = window.matchMedia("(min-width: 1024px)"); |
− | var | + | var screen_1280 = window.matchMedia("(min-width: 1280px)"); |
− | var | + | var screen_1440 = window.matchMedia("(min-width: 1440px)"); |
− | var | + | var screen_1680 = window.matchMedia("(min-width: 1680px)"); |
− | var | + | var screen_1920 = window.matchMedia("(min-width: 1920px)"); |
var position = 3500; | var position = 3500; | ||
Line 221: | Line 221: | ||
}); | }); | ||
− | if( | + | if(screen_900.matches) { |
var timeoutVar = 0; | var timeoutVar = 0; | ||
− | } else if( | + | } else if(screen_1024.matches) { |
position = 3000; | position = 3000; | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
− | } else if( | + | } else if(screen_1280.matches){ |
position = 3500; | position = 3500; | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
− | } else if( | + | } else if(screen_1440.matches){ |
position = 4500; | position = 4500; | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
− | } else if( | + | } else if(screen_1680.matches){ |
position = 5500; | position = 5500; | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
− | } else if( | + | } else if(screen_1920.matches){ |
position = 6500; | position = 6500; | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); |
Revision as of 16:49, 13 October 2018