Mercurial Hosting > chat
annotate src/tools/dimensions.html @ 67:e4e331539146
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 06 Mar 2025 12:13:31 -0700 |
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> |