tor-browser

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

051.xhtml (859B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Drag and drop of link from SVG fragment to XHTML</title>
      5 <style type="text/css">
      6 div
      7  {width:300px;
      8  height:100px;
      9  margin-top:20px;
     10  padding:10px;
     11  color:white;
     12  background-color:navy;}
     13 </style>
     14 </head>
     15 <body>
     16 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="200px" height="50px" viewBox="0 0 200 50">
     17  <a xlink:href="data:text/plain,PASS">
     18    <text x="10" y="45" font-size="30" fill="navy">Drag me</text>
     19  </a>
     20 </svg>
     21 <p>Drag link to the blue box. You should see word PASS once you drop it there.</p>
     22 <div dropzone="copy string:text/uri-list" ondrop="document.querySelector('div').appendChild(document.createTextNode(event.dataTransfer.getData('text/uri-list').substring(16)))"/>
     23 </body>
     24 </html>