Mercurial Hosting > chat
diff src/tools/dimensions.html @ 6:e22a1ba4b2ed
misc
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Oct 2024 16:47:11 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/tools/dimensions.html Tue Oct 29 16:47:11 2024 -0600 @@ -0,0 +1,21 @@ +<!doctype html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <script> + 'use strict'; + + function p() { + document.body.innerText = '' + + window.innerWidth + 'px innerWidth\n' + + window.innerHeight + 'px innerHeight\n' + + '\n' + + window.outerWidth + 'px outerWidth\n' + + window.outerHeight + 'px outerHeight\n' + ; + } + </script> + </head> + <body onload="p()" onresize="p()"> + </body> +</html>