Games and Graphics in Popup URL Bars

Games and Graphics in Popup URL Bars

When I animated the URL bar with emojis I mentioned that I’d like to take it to the next level by putting a teeny game inside the URL bar. But because it’s not the page that opened the popups it has no references to them and can’t change their URLs…

This really threw me for a loop, and I tried all kinds of schemes, until I realized I could simply assign an array of popups over to the “controller popup” like this:

Another pleasant technical detail that made this whole thing work was using:

to find the vertical size of the browser’s toolbar. NOTE: On Windows the emoji are not fixed width, so they don’t line up properly in any of these games… :[

Strangely sometimes an emoji in the URL bar will instead display as a non-emoji character.

Source: matthewrayfield.com