tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

download-3-notref.html (749B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
      2 "http://www.w3.org/TR/html4/strict.dtd">
      3 <html lang="en-US">
      4 <head>
      5 <title></title>
      6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      7 <style type="text/css">
      8 body { font-family: "MarkA"; }
      9 </style>
     10 </head>
     11 <body>
     12 
     13 <div id="t" style="visibility:hidden; width: -moz-fit-content">ABC</div>
     14 <script>
     15  document.body.offsetWidth;
     16  var n = document.getElementById("t");
     17  var w = document.defaultView.getComputedStyle(n).width;
     18  var h = document.defaultView.getComputedStyle(n).height;
     19  var d = document.createElement("div");
     20  d.style.width = w;
     21  d.style.height = h;
     22  d.style.backgroundColor = "green";
     23  n.remove();
     24  document.body.appendChild(d);
     25 </script>
     26 </body>
     27 </html>