A static exam clock built with HTML, CSS, and JavaScript.
- Clock: https://piggywu981.github.io/WebClock-for-Exam/
- Schedule editor: https://piggywu981.github.io/WebClock-for-Exam/editor.html
You can also run the project locally by opening index.html directly in a browser.
Open the clock page and select 编辑课表 in the upper-right corner, or open editor.html directly. The editor supports adding and removing exam dates and subjects, changing start and end times, validation before saving, and restoring the default schedule.
Schedules are stored in the browser's localStorage. After saving, refresh the clock page to display the updated schedule. Storage is isolated by browser and site origin, so data saved from a local file:// page is separate from data saved on the GitHub Pages site.
Use 导出 and 导入 to back up or transfer the schedule as schedule.json.
Pushes to main are deployed to GitHub Pages by the workflow in .github/workflows/pages.yml.