GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Y-ags/what-to-eat: 今天吃什么 —— 一个帮你做决定的转盘,单文件网页,零依赖

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
index.html
index.html
 
 

Repository files navigation

今天吃什么

一个帮你决定今天吃什么的转盘。单文件网页,零依赖,打开就能用。

在线试用 → https://zouguci.github.io/what-to-eat/

它解决什么问题

每天中午都要经历一次「吃什么呢」的拉扯。点一下,转盘替你决定,不用再纠结。

功能

  • 四个时段:早餐 / 午餐 / 晚餐 / 宵夜,按当前时间自动切换
  • 抽取动画:加速 → 减速 → 指针落定,配 tick 音效、震动和彩带
  • 菜单可改:内置 32 个常见选项,随时增删,3–12 个都行
  • 本地记忆:菜单和设置存在 localStorage,下次打开还在
  • 不会连续重复:连转两次不会抽到同一个
  • 键盘 / 摇一摇:空格或回车也能转,手机上摇一摇也行

本地运行

下载 index.html,双击用浏览器打开。不需要服务器,不需要安装任何东西。

想放到自己网站上,直接把这个文件丢进去即可。

技术

原生 HTML / CSS / JavaScript,约 33 KB 单文件,无外部依赖、无构建步骤、无网络请求。

转盘用 conic-gradient 画扇区,requestAnimationFrame 驱动 easeOutQuart 缓动,音效用 Web Audio 现场合成(所以没有任何音频文件)。

文字始终保持水平,不跟着扇区旋转——转动时淡出,停下后浮现,避免歪着脖子读菜单。

About

今天吃什么 —— 一个帮你做决定的转盘,单文件网页,零依赖

zouguci.github.io/what-to-eat/

Topics

chinesedecision-makerfoodgithub-pagessingle-filevanilla-jsweb-app

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.