tor-browser

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

008-manual.html (834B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Drag and drop roundtrip with text/uri-list data</title>
      5 <style type="text/css">
      6 div[ondragenter]
      7  {width:40px;
      8  min-height:40px;
      9  margin-top:20px;
     10  padding:40px;
     11  color:white;
     12  background-color:navy;}
     13 </style>
     14 </head>
     15 <body>
     16 <div
     17  draggable="true"
     18  ondragstart="event.dataTransfer.effectAllowed = 'copy';event.dataTransfer.setData('text/uri-list','data:text/plain,PASS')"
     19  ondragenter="event.preventDefault()"
     20  ondragover="return false"
     21  ondrop="document.querySelector('div').appendChild(document.createTextNode(event.dataTransfer.getData('text/uri-list').substr(16,4) + ' '))"
     22 />
     23 <p>Drag blue box outside browser window and then drag it back and drop on itself. You should see word PASS once you drop it.</p>
     24 </body>
     25 </html>