tor-browser

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

012-2.xhtml (702B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Reload during drag and drop: helper file</title>
      5 <style type="text/css">
      6 div[ondragenter]
      7  {width:105px;
      8  min-height:105px;
      9  text-align:center;
     10  margin-top:20px;
     11  padding:10px;
     12  border:solid thin navy;}
     13 </style>
     14 <script type="application/ecmascript">
     15 function addImage(event)
     16  {var c = document.createElement('img');
     17  c.setAttribute('src',event.dataTransfer.getData('text/uri-list').replace(/\r\n$/,''));
     18  document.querySelector('div').appendChild(c);}
     19 </script>
     20 </head>
     21 <body>
     22 <div
     23  ondragenter="event.preventDefault()"
     24  ondragover="return false"
     25  ondrop="addImage(event)"
     26 />
     27 </body>
     28 </html>