显示HN:通过观看JavaScript加载来入睡
Show HN: Fall asleep by watching JavaScript load

原始链接: https://github.com/sarusso/bedtime

通过观看JavaScript加载来入睡。这个小项目会逐步讲述关于莉奥拉和她的小伙伴的睡前故事,并故意让JavaScript加载器无意义地旋转,只是为了帮助你入睡。加载器旋转的时间以及文字出现的速度会随着故事的进行而增加,理想情况下你永远不会到达结尾(除非你真的、真的想)。我一个晚上睡不着觉的时候想到了这个主意,当时我正在一个网页平台上寻找数据分析结果,注意到那个旋转器实际上让我感到困倦。我时不时地使用它,它确实有帮助。所以我决定公开它。就在这里!你可以在http://bedtime.my直接试用。如果你将它添加到手机的主屏幕,它应该全屏显示。

## 展示 HN:JavaScript 加载作为助眠工具 一位开发者分享了一个简单的 GitHub 项目,旨在通过显示缓慢加载的 JavaScript 文本和旋转加载器来诱导睡眠。这个想法源于发现观察数据分析平台的加载器出人意料地令人平静。该项目有意避免明确的“结束”,随着用户进展增加加载时间,同时*降低*文本速度。 用户提供了一些反馈,包括改进文本渲染以实现更平滑居中、请求完全黑色背景和全屏模式以达到最佳黑暗度,甚至更慢的文本显示速度。开发者承认存在一些小瑕疵,并欢迎贡献,甚至开玩笑地建议参数化未来可能添加的动物。 虽然有些人认为这个概念“很糟糕”,但许多人欣赏该项目的简单性和有效性,作为一种独特的替代传统助眠工具。包含的服务工作者是 ChatGPT 生成的 PWA 模板的残留物,目前是不必要的。
相关文章

原文

Fall asleep by watching JavaScript load

This little toy project progressively tells a bedtime story about Liora and its little companion, while intentionally making a JavaScript loader spin for no reason other than to help you get to sleep.

The time the loader spins, as well as the speed at which the text appears, increases as you go through the story, so that you ideally never reach the end (unless you really, really want to).

I came up with this one night when I couldn’t fall asleep and was looking for some data analysis results on a web platform, noticing that the spinner was actually making me sleepy.

I am using it from time to time, and it helps a bit. So I decided to make it public. Here it is! You can try it directly at http://bedtime.my.

If you add it to your phone’s home screen, it should display fullscreen.

联系我们 contact @ memedata.com