tor-browser

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

111-manual.html (1771B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>Origin for file: to http:</title>
      5    <script type="text/javascript" src="../resources/crossorigin.sub.js"></script>
      6    <script type="text/javascript">
      7 window.onload = function () {
      8  var origin = 'http://'+httpHostMain;
      9  if( location.href.indexOf(origin+'/') ) {
     10    document.body.innerHTML = 'This must be tested on '+origin+'/';
     11    return;
     12  }
     13  var datastr =
     14 '<!doctype html>\
     15 <html>\
     16  <head>\
     17    <title>Origin for file: to http:<\/title>\
     18    <style type="text/css">\
     19 div { height: 100px; width: 100px; background: orange; }\
     20 iframe { width: 500px; height: 120px; border: none; }\
     21    <\/style>\
     22    <script type="text/javascript">\
     23 window.onload = function () {\
     24  var origin = "null (string)";\
     25  document.getElementsByTagName("div")[0].ondragstart = function (e) {\
     26    e.dataTransfer.effectAllowed = "copy";\
     27    e.dataTransfer.setData("text","dummy text");\
     28  };\
     29  document.getElementsByTagName("span")[0].textContent = origin;\
     30  var iframe = document.createElement("iframe");\
     31  iframe.src = "'+location.href.replace(/[^\/]*$/,'HELPER-showorigin.html')+'";\
     32  document.body.insertBefore(iframe,document.getElementsByTagName("div")[0]);\
     33 };\
     34    <\/script>\
     35  <\/head>\
     36  <body>\
     37    <p>Drag the orange square onto the blue square and release it. The blue square should be replaced with the text:<br>\
     38    <span><\/span><\/p>\
     39    <div draggable="true"></div>\
     40  <\/body>\
     41 <\/html>';
     42  document.getElementsByTagName('a')[0].href = 'data:text/html,'+escape(datastr);
     43 };
     44    </script>
     45  </head>
     46  <body>
     47 
     48    <noscript><p>Enable JavaScript and reload</p></noscript>
     49    <p><a href="">Download the linked file to your disk</a>, and open it locally. Follow further instructions in that file.</p>
     50 
     51  </body>
     52 </html>