var extraClassAdded = false; var inFullScreen = false; var cssmod = ""; var zoomStep = 0.05; var whatdo_persistence = true; var last_whatdo = "reset"; var debugmsg = false; $(document).ready(function() { // console.log("uw::document.ready | document is ready"); var serviceArray = [".video-stream" ]; //Youtube // To bo naš dinamičen css // this will be our dynamic css sheet $(document).keypress(function (event) { // Tukaj ugotovimo, katero tipko smo pritisnili switch (event.key){ case 'w': changeCSS("fitw"); break; case 'e': changeCSS("fith"); break; case 'r': changeCSS("reset"); break; case 'z': changeCSS("zoom"); break; case 'u': changeCSS("unzoom"); break; case 'd': changeCSS(0); break; case 's': changeCSS(1); break; case 'a': changeCSS(2); break; case 'x': changeCSS(3); } }); // console.log("uw::document.ready | loaded shortcuts"); document.addEventListener("mozfullscreenchange", function( event ) { inFullScreen = ( window.innerHeight == window.screen.height && window.innerWidth == window.screen.width); inFullScreen ? onFullscreenOn() : onFullscreenOff(); }); // $("