tor-browser

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

116-manual.html (1136B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>Origin for dropped files</title>
      5    <style type="text/css">
      6 div { height: 100px; width: 100px; background: orange; }
      7 iframe { width: 500px; height: 120px; border: none; }
      8    </style>
      9    <script type="text/javascript" src="../resources/crossorigin.sub.js"></script>
     10    <script type="text/javascript">
     11 window.onload = function () {
     12  var origin = 'http://'+httpHostMain;
     13  if( location.href.indexOf(origin+'/') ) {
     14    document.body.innerHTML = 'This must be tested on '+origin+'/';
     15    return;
     16  }
     17  document.getElementsByTagName('span')[0].textContent = 'null (string)';
     18  var iframe = document.createElement('iframe');
     19  iframe.src = origin+location.pathname.replace(/[^\/]*$/,'HELPER-showorigin.html');
     20  document.body.insertBefore(iframe,document.getElementsByTagName('div')[0]);
     21 };
     22    </script>
     23  </head>
     24  <body>
     25 
     26    <noscript><p>Enable JavaScript and reload</p></noscript>
     27    <p>Drag a small file from your computer onto the blue square and release it. If a prompt appears, accept it. The blue square should be replaced with the text:<br>
     28    <span></span></p>
     29 
     30  </body>
     31 </html>