Every line of 'webkitrequestfullscreen' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
98 function requestFullScreen() { 99 var elem = document.getElementById('videos'); 100 elem.className = 'bigBox'; 101 if (elem.requestFullscreen) { 102 elem.requestFullscreen(); 103 } else if (elem.mozRequestFullScreen) { 104 elem.mozRequestFullScreen(); 105 } else if (elem.webkitRequestFullscreen) { 106 elem.webkitRequestFullscreen(); 107 } 108 var hideBox = document.getElementById('shrinkBox'); 109 hideBox.className = 'yesShrink'; 110 hideBox.onclick = function() { 111 hideBox.className = 'noShrink'; 112 if (document.exitFullscreen) { 113 document.exitFullscreen(); 114 } 115 else if (document.mozCancelFullScreen) { 116 document.mozCancelFullScreen(); 117 } 118 else if (document.webkitCancelFullScreen) { 119 document.webkitCancelFullScreen(); 120 } 121 elem.className = 'smallBox'; 122 }; 123 124 }
229 function requestFullScreen(element) { 230 if (element.requestFullscreen) { 231 element.requestFullscreen(); 232 } else if (element.msRequestFullscreen) { 233 element.msRequestFullscreen(); 234 } else if (element.webkitRequestFullscreen) { 235 element.webkitRequestFullscreen(); 236 } 237 }
73 function RequestFullScreen() { 74 var element = document.getElementById("play-button"); 75 element.parentNode.removeChild(element); 76 Module.requestFullScreen(false, false); 77 }
213 function requestFullScreen(elem) { 214 if (elem.requestFullscreen) { 215 elem.requestFullscreen(); 216 } else if (elem.mozRequestFullScreen) { 217 elem.mozRequestFullScreen(); 218 } else if (elem.webkitRequestFullscreen) { 219 elem.webkitRequestFullscreen(); 220 } 221 }
97 enterFullScreen() { 98 if (typeof this.el.webkitEnterFullScreen === 'function') { 99 this.el.webkitEnterFullScreen(); 100 } 101 }
27 function requestFullscreen(element : HTMLMediaElement) : void { 28 if (!isFullscreen()) { 29 const elt = element as ICompatHTMLMediaElement; 30 /* tslint:disable no-unbound-method */ 31 if (typeof elt.requestFullscreen === "function") { 32 /* tslint:enable no-unbound-method */ 33 /* tslint:disable no-floating-promises */ 34 elt.requestFullscreen(); 35 /* tslint:enable no-floating-promises */ 36 } else if (typeof elt.msRequestFullscreen === "function") { 37 elt.msRequestFullscreen(); 38 } else if (typeof elt.mozRequestFullScreen === "function") { 39 elt.mozRequestFullScreen(); 40 } else if (typeof elt.webkitRequestFullscreen === "function") { 41 ( 42 elt.webkitRequestFullscreen as any 43 )((Element as any).ALLOW_KEYBOARD_INPUT); 44 } 45 } 46 }
2 request(elm) { 3 if (elm.requestFullscreen) { 4 elm.requestFullscreen(); 5 } else if (elm.webkitRequestFullscreen) { 6 elm.webkitRequestFullscreen(); 7 } else if (elm.mozRequestFullScreen) { 8 elm.mozRequestFullScreen(); 9 } else if (elm.msRequestFullscreen) { 10 elm.msRequestFullscreen(); 11 } 12 }
151 function enterFullscreen() { 152 console.log("enterFullscreen()"); 153 elem.onwebkitfullscreenchange = onFullScreenEnter; 154 elem.onmozfullscreenchange = onFullScreenEnter; 155 if (elem.webkitRequestFullScreen) { 156 elem.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); 157 } else { 158 elem.mozRequestFullScreen(); 159 } 160 document.getElementById('enter-exit-fs').onclick = exitFullscreen; 161 }
57 function fullscreen(aElement) { 58 if(aElement.requestFullscreen) { 59 aElement.requestFullscreen(); 60 } else if(aElement.mozRequestFullScreen) { 61 aElement.mozRequestFullScreen(); 62 } else if(aElement.webkitRequestFullscreen) { 63 aElement.webkitRequestFullscreen(); 64 } else if(aElement.msRequestFullscreen) { 65 aElement.msRequestFullscreen(); 66 } 67 }
81 function cancelFullScreen(elem){ 82 if (document.exitFullscreen) { 83 document.exitFullscreen(); 84 } 85 else if (document.cancelFullScreen) { 86 document.cancelFullScreen(); 87 } 88 else if (document.mozCancelFullScreen) { 89 document.mozCancelFullScreen(); 90 } 91 else if (document.webkitCancelFullScreen) { 92 document.webkitCancelFullScreen(); 93 } 94 else if (document.oCancelFullScreen) { 95 document.oCancelFullScreen(); 96 } 97 else if (document.msCancelFullScreen) { 98 document.msCancelFullScreen(); 99 } 100 else if (document.khtmlCancelFullScreen) { 101 document.khtmlCancelFullScreen(); 102 } 103 else { 104 return false; 105 } 106 return true; 107 }