6 ms·
Pong using browser windows as the paddles and ball (2009)
- jolmg 5y agoVery cool. I didn't know websites had that kind of control over pop-up placement. It gets quite confused with multi-monitor setups, though. I had to disconnect all but one display to be able to play. The paddles appeared on one display and the ball on another. The ball also only moved vertically.
- tata71 5y agoPorn sites etc used to use pop-unders!
- diwank 5y agoI became a huge fan of this when I first saw it and ended up making a similar "Bricks breaker" game, inspired by this, that uses popups too: https://creatorrr.github.io/browser-bricks https://creatorrr.github.io/browser-bricks P.s. The source code has a letter in it (http://stewd.io/pong/lib/pong.js http://stewd.io/pong/lib/pong.js)
- tentacleuno 5y agoI love that letter. Totally stealing that idea. I can't say I haven't run F12 on any site I frequent, it's always been fun.
- coolgeek 5y agoGood comments, too! // Wow. I had no idea JavaScript keyCodes differ from ASCII. // They ignore case (both 'A' and 'a' will return 65) // but differentiate between regular number and numeric keypad!
- dheera 5y agoAww ffs why is this even possible? Why can JS control window positioning and size? It seems we are all of a sudden able to make those popup bombs from the 90s internet again?
- gregoriol 5y agoA website can only control popups it opened I think, not the main window for example. It actually may be useful in some contexts, but should probably be throttled by the browser, like not more than 1 changes every 5 sec, because it can be also used in a very annoying way. As usual anyway.
- jasongi 5y ago1. This is from 2009 2. I had to explicitly allow pop-ups when I clicked on this
- laurent92 5y agoThe good old times when you could execute an antivirus from a website and it would scan all files of your local disk. Thanks to ActiveX. Windows Update itself was a browser app. You could upgrade from the browser. If we had known better, we would have made people upgrade from Windows to Linux this way, and Microsoft would have closed the giant hole faster.
- meibo 5y agoActiveX was always signed, like regular binaries - if MS's Windows signing key leaks they probably have bigger problems.
- hnlmorg 5y agoActiveX needed to be registered[1] to execute. It didn't have to be signed though. This was true even within Internet Explorer (or "Internet Exploiter" as I affectionately called it at that time). [1] https://www.c-sharpcorner.com/UploadFile/8911c4/how-to-register-and-unregister-a-dll-or-activex-controls-usi/ https://www.c-sharpcorner.com/UploadFile/8911c4/how-to-regis...
- tentacleuno 5y ago> Windows Update itself was a browser app. You could upgrade from the browser. I'm very interested in this. Would you mind expanding, please?
- purplecats 5y agodoesnt work for me anyone got a video
- GrumpyNl 5y agoPress play three times, didnt work for me either.
- a_t48 5y agoI love that I can resize the paddle for an advantage. ;)
- d--b 5y agoYeah, that other opponent is pretty strong too. I just closed the other guy's paddle and was able to score fairly easily
- mad_ned 5y agoDoom next?