Skip to content

Commit

Permalink
修改day12
Browse files Browse the repository at this point in the history
  • Loading branch information
A-aronYang committed Nov 17, 2024
1 parent 95f0275 commit 149227c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ JavaScirpt30 是 [Wes Bos](https://github.com/wesbos/JavaScript30) 推出的一
| 9 | [**调试技巧**](https://www.yuque.com/webproejcts/article/mkc7ezx63o9vczw4) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day09%20Dev%20Tools%20Domination/index.html) |
| 10 | [**按住 Shift 全选复选框**](https://www.yuque.com/webproejcts/article/ee7p9iqp7zr201qk) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day10%20Hold%20Shift%20and%20Check%20Checkboxes/index.html) |
| 11 | [**自定义播放器**](https://www.yuque.com/webproejcts/article/sbvyl0adch3fq0yd) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day11%20Custom%20Video%20Player/index.html) |
| 1 | [**密钥序列检测**](https://www.yuque.com/webproejcts/article/gmfp0sp7maipcy7s) | [在线效果](https://a-aronyang.github.io/JavaScript30/static//pages/day01%20Drum%20Kit/index.html) |
| 12 | [**密钥序列检测**](https://www.yuque.com/webproejcts/article/gmfp0sp7maipcy7s) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day12%20Key%20Sequence%20Detection/index.html) |
| 13 | [**滚动滑入效果**](https://www.yuque.com/webproejcts/article/ve7ln4ew6qxhlabc) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day13%20Slide%20in%20on%20Scroll/index.html) |
| 14 | [**Object 和 Arrays 的复制和引用**](https://www.yuque.com/webproejcts/article/zk1yrply5tgu0frk) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day14%20JavaScript%20References%20VS%20Copying/index.html) |
| 15 | [**本地存储和事件委托**](https://www.yuque.com/webproejcts/article/rxlq7a99wvb2h0ab) | [在线效果](https://a-aronyang.github.io/JavaScript30/static/pages/day15%20LocalStorage/index.html) |
Expand Down
2 changes: 2 additions & 0 deletions static/pages/day12 Key Sequence Detection/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<script>
const pressed = [];
const secretCode = "aaron";
console.log('密钥:aaron');

window.addEventListener("keyup", (e) => {
pressed.push(e.key);
// pressed.length > secretCode.length && pressed.shift()
Expand Down

0 comments on commit 149227c

Please sign in to comment.