Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Do-Not-Dusturb authored Nov 9, 2024
1 parent 7239b95 commit 23bbe25
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,43 @@
<head>
<script>
const siteNames = [
"NIntendoboi22", "NIntendoboi222", "NIntendoboi2222", "NIntendoboi2222",
"NIntendoboi22222", "NIntendoboi2", "NIntendoboi"
];
"Nintendoboi",
"Nintendoboi2",
"Nintendoboi22",
"Nintendoboi222",
"Nintendoboi2222",
"Nintendoboi22222",
"Nintendoboi222222"
];

let currentIndex = 0;
let intervalId;
let currentIndex = 0;
let goingForward = true;
let intervalId;

function changeSiteName() {
document.title = siteNames[currentIndex]; // asda
currentIndex = (currentIndex + 1) % siteNames.length; // Lasdsad
function changeSiteName() {
document.title = siteNames[currentIndex];

if (goingForward) {
currentIndex++;
if (currentIndex >= siteNames.length - 1) {
goingForward = false;
}
} else {
currentIndex--;
if (currentIndex <= 0) {
goingForward = true;
}
}
}

// hi
intervalId = setInterval(changeSiteName, 100); // Change site name every 100 milliseconds
intervalId = setInterval(changeSiteName, 100);

// hallo
document.addEventListener('keydown', function(event) {
if (event.key.toLowerCase() === 'q') {
clearInterval(intervalId); //hoi
document.title = "Gmail"; // kdj
}
});
document.addEventListener('keydown', function(event) {
if (event.key.toLowerCase() === 'q') {
clearInterval(intervalId);
document.title = "Gmail";
}
});
</script>

<meta charset="UTF-8">
Expand Down

0 comments on commit 23bbe25

Please sign in to comment.