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