var extraClassAdded = false; var inFullScreen = false; var cssmod = ""; var zoomStep = 0.05; var originalcss; $(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"); } }); // 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(); }); // $("