tor-browser

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

leaf.html (517B)


      1 <!DOCTYPE html>
      2 <style>
      3 body {
      4  background-color: aqua;
      5  --target-width: 32px;
      6  --target-height: 24px;
      7  --scale: 1;
      8  margin: calc(18px * var(--scale));
      9 }
     10 #target {
     11  width: calc(var(--target-width) * var(--scale));
     12  height: calc(var(--target-height) * var(--scale));
     13  background-color: hotpink;
     14 }
     15 </style>
     16 
     17 <div id="target"></div>
     18 
     19 <script>
     20 let params = new URLSearchParams(location.search);
     21 if (params.has("scale")) {
     22  document.body.style.setProperty("--scale", parseFloat(params.get("scale")));
     23 }
     24 </script>