Show HN: I saw this mind-blowing experiment, so I made a simple version of it (opens in a new tab)github.com
403 pointsTwo browser windows (acting as socket clients) communicate their:
- Screen dimensions - (screen.width, screen.height)
- Window dimensions - (window.innerWidth, window.innerHeight)
- Window X/Y position - (window.screenX, window.screenY)
...or whichever calculation works best for you.
The original work by Bjorn Staal https://twitter.com/_nonfigurativ_/status/172732259457002734 used localStorage, but I found sockets more fun, because if tweaked a bit, this can be shared with friends.
Here's a demo of how it works and the codebase: https://github.com/Momciloo/fun-with-sockets/
Comments (129) 42 threads
Earlier commentshttps://theannoyingsite.com/
here's someone testing it out on Windows a few years ago, but I assure you even in the latest chrome on mac, it's at least as bad https://youtu.be/estvbRSj4LU?si=gq6-l4pWLC9yXqap&t=109
You should go to this site and test this.
Continue this thread — 1 reply
Source code: https://github.com/feross/TheAnnoyingSite.
[0] http://www.huddlelamp.org/#tech-video
All comments shown.
Couldn't load more comments. Check your connection and try again.