tor-browser

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

helper-drop-link-now.xhtml (622B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Cross page drag and drop: helper file</title>
      5 <style type="text/css">
      6 html, body
      7  {height:100%;}
      8 </style>
      9 <script type="application/ecmascript">
     10 function checkLink(event)
     11  {document.querySelector('p').firstChild.nodeValue = (event.dataTransfer.getData('text/uri-list').replace(/\r\n$/,'') == 'data:text/plain,1')?'PASS':'FAIL'}
     12 </script>
     13 </head>
     14 <body ondragenter="event.preventDefault()" ondrop="checkLink(event)" ondragover="return false">
     15 <p>Drop link now, you should see word PASS once you drop it.</p>
     16 </body>
     17 </html>