tor-browser

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

009-manual.html (809B)


      1 <!DOCTYPE html>
      2 <?xml version="1.0" encoding="utf-8"?>
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 <head>
      5 <title>Adding element to datastore on drag</title>
      6 <style type="text/css">
      7 span, strong
      8  {color:green;
      9  background-color:yellow;}
     10 strong
     11  {color:red;}
     12 </style>
     13 <script type="application/ecmascript">
     14 function start(event)
     15  {event.dataTransfer.effectAllowed = 'copy';
     16  event.dataTransfer.addElement(document.querySelector('span'));}
     17 function resetImage(event)
     18  {event.dataTransfer.addElement(document.querySelector('strong'));}
     19 </script>
     20 </head>
     21 <body>
     22 <p><a href="data:text/plain,1" ondragstart="start(event)" ondrag="resetImage(event)">Drag me</a></p>
     23 <p>Try to drag link above. You should see word <span>PASS</span> not <strong>FAIL</strong> in feedback overlay all the time.</p>
     24 </body>
     25 </html>