Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
szxhz committed Jul 14, 2023
1 parent ad150dd commit fdf2f44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const subtitle = document.querySelector(".subtitle");
const buttons = document.querySelector(".buttons");
const text = "“那个夏天的蝉鸣比哪一年都聒噪,教室窗边枝桠疯长,无奈挡不住烈阳......”";
// 自定义副标题
let index = 0;

function typeWriter() {
Expand All @@ -16,4 +17,4 @@ function typeWriter() {
setTimeout(() => {
subtitle.classList.add("typing");
typeWriter();
}, 1000);
}, 1000);

0 comments on commit fdf2f44

Please sign in to comment.