Both of the CodePen example links on that page are insidiously broken. The demos appear to work, but they don't actually demonstrate the claimed portal functionality at all:
// These two containers are siblings in the DOM
const appContainer = document.getElementById('app-container');
const modalContainer = document.getElementById('app-container');
Note that both variables refer to the same element.
No problem! And on re-reading my comment, I probably shouldn't have used the word "insidiously", it came off a lot more negative than I intended. Thanks for the quick fix.
> Most people don't wear watches and it's usualy considered rude to pull out your phone mid-convorsation. I always wear a watch and so people just say "do you have the time"?
> If you can't ask Siri you can just ask whoever you're talking to. Also, if you express you want to know the time and they say "I don't know" you can then just ask Siri and tell them. It works out nicely.
The point is that people _can_ look at their watch or smartphone while still listening in on the conversation. It's hard to hear and pay attention to two different things at the same time.
0: https://github.com/a-h/templ 1: https://github.com/maragudk/gomponents