4 ms·
How do they do time without JavaScript? Is there an API I’m not aware of?
by Waterluvian 1y ago
How do they do time without JavaScript? Is there an API I’m not aware of?
- bloppe 1y agoCSS animation. It's not the real time. Just a hypothetical time.
- Waterluvian 1y agoI’m imagining some must be using JS because I’m seeing (rarely…) times that are perfectly correct.
- bloppe 1y agoActually you're right. If you view source, you can see `const response = await fetch(`/api/clocks?time=${encodeURIComponent(localTime)}`);`. I'm not sure how that API works, but it's definitely reading the current time using JS, then somehow embedding it in the HTML / CSS of each LLM.
- vultour 1y agoIt's crafted with a prompt that gives the AI the current time, then it simply refreshes every minute so the seconds start at zero correctly.
- bhandziuk 1y agoLooks like css keyframes