File: windowsize.html

package info (click to toggle)
qutebrowser 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,432 kB
  • sloc: python: 72,411; javascript: 31,862; sh: 874; xml: 149; makefile: 52
file content (24 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>window sizes</title>

        <script>
            function updateText(elem) {
                var size = window.innerWidth + "/" + window.innerHeight;
                document.getElementById(elem).textContent = size;
                console.log(elem + " window size: " + size);
            }

             document.addEventListener("DOMContentLoaded",  function() {
                 updateText("hidden");
                 console.log("loaded");
             });
        </script>
    </head>
    <body>
        <p>visible: <span id="visible">unknown</span></p>
        <p>hidden: <span id="hidden">unknown</span></p>
    </body>
</html>