EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 209: | Line 209: | ||
<script> | <script> | ||
− | |||
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: 3000; | ||
$(window).on('beforeunload', function(){ | $(window).on('beforeunload', function(){ | ||
Line 217: | Line 217: | ||
}); | }); | ||
− | if( | + | if(smallscreen.matches) { |
− | + | ||
− | + | ||
var timeoutVar = 0; | var timeoutVar = 0; | ||
+ | } else if(bigscreen.matches){ | ||
+ | position: 5000; | ||
+ | } else { | ||
+ | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
} | } | ||
Line 242: | Line 244: | ||
var bacteriaTop = map(scroll, 900, 2000, -100, 100); | var bacteriaTop = map(scroll, 900, 2000, -100, 100); | ||
var bacteriaRotate = map(scroll, 0, 700, 50, 0); | var bacteriaRotate = map(scroll, 0, 700, 50, 0); | ||
− | if (scroll > | + | if (scroll > position) { |
$('#bacteria-nadando ').css('opacity','0'); | $('#bacteria-nadando ').css('opacity','0'); | ||
} else { | } else { | ||
Line 259: | Line 261: | ||
slideVideo(); | slideVideo(); | ||
}); | }); | ||
− | |||
− | |||
</script> | </script> | ||
Revision as of 23:39, 12 October 2018