Skip to content

Commit

Permalink
se
Browse files Browse the repository at this point in the history
  • Loading branch information
Nintendoboi22 authored Oct 10, 2024
1 parent 194b4aa commit 429352b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ window.addEventListener("keydown", function (e) {



document.onkeydown = function (e) { if (e.keyCode === 13) { splashText(); } };
document.querySelector('button').addEventListener('click', () => {
document.onkeydown = function (e) {
if (e.key === "Enter") {
splashText();
}
};document.querySelector('button').addEventListener('click', () => {
while (true) {}
});

Expand Down

0 comments on commit 429352b

Please sign in to comment.