tor-browser

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

167.xhtml (866B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Moving text between email inputs</title>
      5 <script type="application/ecmascript">
      6 function check()
      7  {var input = document.querySelectorAll('input');
      8  document.querySelector('p').firstChild.nodeValue = (input[0].value == '' &amp;&amp; input[1].value == 'mail@example.org')?'PASS':'FAIL';}
      9 </script>
     10 </head>
     11 <body onload="document.querySelector('input').select()">
     12 <p>Drag selected email to the blue box. Copy of selection should end up in the blue box once you drop it there.</p>
     13 <p><input type="email" value="mail@example.org"/></p>
     14 <p><input ondragenter="event.preventDefault()" ondragover="event.preventDefault();event.dataTransfer.effectAllowed = 'move'" ondrop="window.setTimeout('check()',100)" type="email" placeholder="Drop selection here"/></p>
     15 </body>
     16 </html>