Skip to content

Commit

Permalink
優化部分功能
Browse files Browse the repository at this point in the history
  • Loading branch information
dada878 committed Aug 8, 2023
1 parent 29f0e55 commit c573b2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/hehe.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const lightningImage = document.querySelector(".banner-image-middle");
let isAnimationEnded = true;
let clickCount = 0;
const clickCountTarget = 30;
const temmieSoundCache = new Audio("./assets/wewe.wav");
temmieSoundCache.volume = 0;
temmieSoundCache.play();

lightningImage.addEventListener("click", () => {
if (!isAnimationEnded) return;
Expand Down

0 comments on commit c573b2a

Please sign in to comment.