comparison src/tools/dimensions.html @ 6:e22a1ba4b2ed

misc
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Oct 2024 16:47:11 -0600
parents
children
comparison
equal deleted inserted replaced
5:a49866b52cc2 6:e22a1ba4b2ed
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>