HELPER-mustallow.html (772B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Must be allowed</title> 5 <style type="text/css"> 6 html { background: blue; } 7 html, body { margin: 0; padding: 0; height: 100%; width: 100%; } 8 </style> 9 </head> 10 <body> 11 <script type="text/javascript"> 12 if( location.search && location.search.indexOf('domain') != -1 ) { 13 document.domain = location.hostname.replace(/^[^.]+\./,''); 14 } 15 var seentypes = {}; 16 document.body.ondragenter = document.body.ondragover = document.body.ondrop = function (e) { 17 e.preventDefault(); 18 if( e.type == 'drop' ) { 19 document.body.innerHTML = ( seentypes.dragenter && seentypes.dragover && e.dataTransfer.getData('text') == 'dummy text' ) ? 'PASS' : 'FAIL'; 20 } else { 21 seentypes[e.type] = true; 22 } 23 } 24 </script> 25 </body> 26 </html>