tor-browser

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

child-two.html (989B)


      1 <!DOCTYPE html>
      2 <body style="background: lightgrey;">
      3  <script>
      4    window.top.postMessage(JSON.stringify({
      5        "type": "child-two-loaded",
      6        "isActive": navigator.userActivation.isActive,
      7        "hasBeenActive": navigator.userActivation.hasBeenActive
      8    }), "*");
      9 
     10    window.addEventListener("click", event => {
     11        window.top.postMessage(JSON.stringify({
     12            "type": "child-two-clicked",
     13            "isActive": navigator.userActivation.isActive,
     14            "hasBeenActive": navigator.userActivation.hasBeenActive
     15        }), "*");
     16    });
     17 
     18    window.addEventListener("message", event => {
     19        var msg = JSON.parse(event.data);
     20        if (msg.type == "report") {
     21            window.top.postMessage(JSON.stringify({
     22                "type": "child-two-report",
     23                "isActive": navigator.userActivation.isActive,
     24                "hasBeenActive": navigator.userActivation.hasBeenActive
     25            }), "*");
     26        }
     27    });
     28  </script>
     29 </body>