EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 209: | Line 209: | ||
<script> | <script> | ||
− | + | //jQuery(document).ready(function($) { | |
− | //jQuery(document).ready(function($) { | + | |
var smallscreen = window.matchMedia("(max-width: 900px)"); | var smallscreen = window.matchMedia("(max-width: 900px)"); | ||
− | window. | + | var bigscreen = window.matchMedia("(min-width: 2000px)"); |
+ | |||
+ | $(window).on('beforeunload', function(){ | ||
+ | $(window).scrollTop(0); | ||
+ | }); | ||
if(!smallscreen.matches) { | if(!smallscreen.matches) { | ||
Line 225: | Line 228: | ||
$("#skip-btn").css({'top': '-10%'}); | $("#skip-btn").css({'top': '-10%'}); | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
function map(value, in_min, in_max, out_min, out_max) { | function map(value, in_min, in_max, out_min, out_max) { | ||
Line 258: | Line 249: | ||
} | } | ||
}); | }); | ||
− | + | ||
+ | //******************************************************* Video Controls ******************************************* | ||
+ | |||
+ | $("#video-main-page").bind("ended", function(){slideVideo()}); | ||
+ | |||
+ | $("#skip-btn").click(function() { | ||
+ | clearTimeout(timeoutVar); | ||
+ | $(window).scrollTop(0); | ||
+ | slideVideo(); | ||
+ | }); | ||
+ | |||
+ | //}); | ||
</script> | </script> | ||
Revision as of 23:34, 12 October 2018