This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :-ms-fullscreen { | |
| width: auto; | |
| height: auto; | |
| margin: auto; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| element.requestFullscreen(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var btn02 = document.getElementById('btn-02'); | |
| // Exit full-screen mode when btn02 | |
| // is clicked | |
| btn02.addEventListener('click', function(){ | |
| exitFullscreen(); | |
| }, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fullscreenAvailable = false; | |
| var btn01 = document.getElementById('btn-01'); | |
| // Test to see if | |
| // full-screen is available | |
| if( | |
| document.fullscreenEnabled || | |
| document.webkitFullscreenEnabled || | |
| document.mozFullScreenEnabled || | |
| document.msFullscreenEnabled |
NewerOlder