Skip to content

Commit

Permalink
Merge pull request #50 from 0M4NU4L/main
Browse files Browse the repository at this point in the history
Clumsy Time Machine & Final Call
  • Loading branch information
rishicds authored Nov 10, 2024
2 parents 0a54cd3 + 81e05b8 commit 2feabbc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 26 deletions.
Binary file removed Windows.mp4
Binary file not shown.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ <h2 style="padding-top: 10px;">The Ghostly Revelation</h2>
<div class="glitch-effect">
<span class="glitch-text" style="display: inline-block; margin: 0 auto;">You can't escape!</span>
</div>
<button class="action-btn vanish-btn" id="ghost-button" onclick="playEerieSound()">
<button class="action-btn vanish-btn" id="ghost-button" onclick="playEerieSound()">
Discover the Secret
</button>
</button>
</div>

<div class="card glitch" id="diwali-text">
Expand Down
25 changes: 1 addition & 24 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function triggerFullScreenImage() {
videoOverlay.style.backgroundColor = "black";

const videoElement = document.createElement("video");
videoElement.src = "Windows.mp4";
videoElement.src = "you-are-my-sunshine.mp4";
videoElement.autoplay = true;
videoElement.loop = false;
videoElement.controls = false;
Expand Down Expand Up @@ -1093,26 +1093,3 @@ function createMouseTrail(event) {
}, 1000);
}

function triggerTimeMachine() {
const randomIp = generateRandomIp();

const fakeIpElement = document.getElementById('fake-ip');
fakeIpElement.innerText = `Your IP Address: ${randomIp}`; // Set the generated IP address
fakeIpElement.style.display = 'block'; // Show the IP address

narrateIpAddress(randomIp);
}

function generateRandomIp() {
const randomPart = () => Math.floor(Math.random() * 256);
return `${randomPart()}.${randomPart()}.${randomPart()}.${randomPart()}`;
}

function narrateIpAddress(ip) {
const utterance = new SpeechSynthesisUtterance(`Your IP address is ${ip}`);
utterance.rate = 0.9;
utterance.pitch = 1;
speechSynthesis.speak(utterance);
}

displayIpMessage();
Binary file added you-are-my-sunshine.mp4
Binary file not shown.

0 comments on commit 2feabbc

Please sign in to comment.