feat(02): dynamic js effects on about-me page (L10 js&ts) - #156
Open
sililass wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2025暑培-网站作业提交
作业内容(第 10 讲 JS&TS)
在第 9 讲“关于我”页面的基础上添加 JS 动态效果,共实现 4 处改动(含 1 处使用网络资源):
动态问候语 + 实时时钟:
setInterval每秒刷新时间显示夜间 / 日间模式切换:通过切换 CSS 类名改变主题,并用
localStorage记住偏好(默认跟随系统prefers-color-scheme)网络资源:用
fetch调用https://api.github.com/users/sililass/repos,实时加载并渲染 GitHub 公开仓库留言表单提交反馈:监听
submit事件并展示感谢提示基本信息
提交说明