file_bug1692052.html (753B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <script> 5 window.addEventListener('load', () => { 6 const canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas') 7 document.adoptNode(document.documentElement) 8 document.appendChild(canvas) 9 canvas.focus() 10 canvas.contentEditable = 'true' 11 canvas.focus() 12 setTimeout(() => { 13 let params = new URLSearchParams(location.search); 14 let q = parseInt(params.get("c") || 0) + 1; 15 if (q > 5) { 16 window.opener.finishTests(); 17 window.close(); 18 return; 19 } 20 location.href = location.pathname + "?c=" + q; 21 }, 0) 22 }) 23 </script> 24 </head> 25 </html>