tor-browser

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

108-1.html (1205B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>Origin for https site with non-default port to itself</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 = 'https://'+httpsHostAlias+':'+httpsPortAlias;
     13  document.getElementsByTagName('div')[0].ondragstart = function (e) {
     14    e.dataTransfer.effectAllowed = 'copy';
     15    e.dataTransfer.setData('text','dummy text');
     16  };
     17  document.getElementsByTagName('span')[0].textContent = origin;
     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 the orange square onto the blue square and release it. The blue square should be replaced with the text:<br>
     28    <span></span></p>
     29    <div draggable="true"></div>
     30 
     31  </body>
     32 </html>