Mercurial Hosting > chat
annotate src/tools/dimensions.html @ 12:9f45d32670ae
server push
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 31 Oct 2024 21:40:57 -0600 |
| parents | e22a1ba4b2ed |
| children |
| rev | line source |
|---|---|
| 6 | 1 <!doctype html> |
| 2 <html> | |
| 3 <head> | |
| 4 <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 5 <script> | |
| 6 'use strict'; | |
| 7 | |
| 8 function p() { | |
| 9 document.body.innerText = '' | |
| 10 + window.innerWidth + 'px innerWidth\n' | |
| 11 + window.innerHeight + 'px innerHeight\n' | |
| 12 + '\n' | |
| 13 + window.outerWidth + 'px outerWidth\n' | |
| 14 + window.outerHeight + 'px outerHeight\n' | |
| 15 ; | |
| 16 } | |
| 17 </script> | |
| 18 </head> | |
| 19 <body onload="p()" onresize="p()"> | |
| 20 </body> | |
| 21 </html> |
