Skip to content

Commit

Permalink
Update Leaks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMilk authored Jul 21, 2024
1 parent 04c7ad6 commit 0746a96
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions pages/Leaks.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,24 @@ body, html {

<script>
document.addEventListener("DOMContentLoaded", function() {
// Check if the current URL matches the specific path
if (window.location.pathname === '/leaks') {
var videoContainer = document.getElementById("videoContainer");
var video = document.getElementById("surpriseVideo");
var videoContainer = document.getElementById("videoContainer");
var video = document.getElementById("surpriseVideo");

// Display the video container
videoContainer.style.display = "block";
// Display the video container
videoContainer.style.display = "block";

// Request full screen
videoContainer.requestFullscreen().then(() => {
// Play the video
video.play();
// Request full screen
videoContainer.requestFullscreen().then(() => {
// Play the video
video.play();

// Refresh the page when the video ends
video.addEventListener('ended', function() {
location.reload();
});
}).catch(err => {
console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`);
// Refresh the page when the video ends
video.addEventListener('ended', function() {
location.reload();
});
}
}).catch(err => {
console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`);
});
});

// Disable right-click context menu
Expand Down

0 comments on commit 0746a96

Please sign in to comment.