This site was meant as a joke and only took a couple of hours to put together. You should probably go on the site before reading this as its kind of a one trick pony.\n\nWhat took the most time was figuring out a way of detecting when the user had left the site. I originally used document.hidden but knew that that would only catch out a very small percentage of users who switched to a different tab. I then realised that if the mouse’s x and y coordinates didnt update I could assume that the user had “failed”. I then discovered that the browser doesnt give you access to the exact coordinates of the mouse but just before I gave in to the shoddy document.hidden method I discovered that there was an event that triggered whenever the mouse left the screen. This was my final solution.