|
<!DOCTYPE html>
| <html><head>
| <meta charset="utf-8" />
| <meta http-equiv="X-UA-Compatible" content="IE=edge">
| <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui=1"/>
| <style>
| body, html {
| margin: 0;
| padding: 0;
| width: 100%;
| height: 100%;
| background-color: #ccc;
| }
| </style>
| <script>
| function tfs() {
| var d = document;
| if(d.fullscreenElement || d.webkitFullscreenElement) {
| if(d.exitFullscreen)
| d.exitFullscreen();
| else
| d.webkitExitFullscreen();
| }
| else {
| var e = d.body;
| //e = d.documentElement;
| if(e.requestFullscreen)
| e.requestFullscreen();
| else
| e.webkitRequestFullscreen();
| }
| }
| </script>
| </head>
| <body>
| <br><br>
| <a href="javascript:tfs()">Toggle fullscreen on/off</a>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| <br><br>Input: <input/>
| </body></html>
|
|