Re:Clock
by camillomiller on Wednesday April 19, 2023 @06:32AM
(#35626491)
Wow pretty cool.
I thought you couldn't automatically set an app as full screen without a prompt?
How did you do that?
You don't need a prompt, you just need user interaction, which in this case is click, tap or key press.
Re:Clock
by rpastuszak on Wednesday April 19, 2023 @10:49AM
(#35628827)
Yup, that's one of the reasons I added the intro modal with a call-to-action:)
The handler triggering full screen (el.requestFullscreen) needs to be in the same call stack as a user interaction event. Same with triggering audio playback programmatically.
I'm actually using audio as a fallback to prevent the device from falling asleep (via nosleep.js, modern APIs do exist, but I don't trust Apple with PWAs).
Love it! This morning I used it as a no stress snooze.
Re:Clock
by rpastuszak on Wednesday April 19, 2023 @10:53AM
(#35628880)
Glad you liked it, I do the same! I also use it to meditate.
I feel like it gives me more control over my time. I can get back to reality at my own pace.
Why I built it and how I use it: https://sonnet.io/posts/sit/
I like the idea of this project, we need more semi-useless toys in our lives. I almost wish that every piece of software I use were customisable and themeable like Winamp. (or certain every-day objects ranging from fashion to gadgets to human skin via tattoos)