// check for native support if (typeof document.cancelFullScreen != 'undefined') { fullScreenApi.supportsFullScreen = true; } else { // check for fullscreen support by vendor prefix for (var i = 0, il = browserPrefixes.length; i < il; i++ ) { fullScreenApi.prefix = browserPrefixes[i];
// update methods to do something useful if (fullScreenApi.supportsFullScreen) { fullScreenApi.fullScreenEventName = fullScreenApi.prefix + 'fullscreenchange';
// export api window.fullScreenApi = fullScreenApi; })(); </script>
</head> <body> <button onclick="fullScreenApi.requestFullScreen(document.documentElement)">GO FULLSCREEN</button> </body> </html>
LEGEND: blue - API used to full-screen browsers. red - use to toggle full-screen.
A project in collaboration with my classmate Catherine F. Palarca. Our instructor ask us to make our own monster create using AI, so we'd end up as shown in the picture. The names were based to surname or to type of animals (e.g Palcamon - Palca from Palarca and mon from digimon) (e.g Spidocs - Spid from spider and ocs from octopus). Please do rate our works. Thanks !