tor-browser

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

timeline-frame.html (518B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5 </head>
      6 <script type="text/javascript">
      7  const targetWindow = window.top.a;
      8  const element = targetWindow.document.getElementById('target');
      9  const keyframes = { opacity: [1, 0.2] };
     10  const options = {
     11    duration: 1000,
     12    // Use this document's timeline rather then the timeline of the
     13    // element's document.
     14    timeline: document.timeline,
     15    fill: 'forwards'
     16  };
     17  element.animate(keyframes, options);
     18  targetWindow.runTest();
     19 </script>
     20 </html>