Calculator Tools Calculator Tools
Create

Jumpscare App

Dec 22, 2023

About this app

Experience a thrilling jumpscare with this fun app.

Jumpscare App Welcome to the Jumpscare App! Click anywhere on the page to experience a thrilling jumpscare!

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Jumpscare App</title>
<meta name="description" content="Experience a thrilling jumpscare with this fun app.">
<meta name="keywords" content="jumpscare, app, scary, fun">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Function to trigger the jumpscare
function triggerJumpscare() {
// Create a div element for the jumpscare
var jumpscareDiv = document.createElement("div");
jumpscareDiv.className = "jumpscare";

// Create an image element for the jumpscare image
var jumpscareImage = document.createElement("img");
jumpscareImage.src = "https://example.com/jumpscare-image.jpg"; // Replace with the actual image URL

// Append the image to the div
jumpscareDiv.appendChild(jumpscareImage);

// Append the div to the body
document.body.appendChild(jumpscareDiv);

// Set a timeout to remove the jumpscare after 3 seconds
setTimeout(function() {
document.body.removeChild(jumpscareDiv);
}, 3000);
}

// Trigger the jumpscare when the user clicks anywhere on the page
document.addEventListener("click", function() {
triggerJumpscare();
});

});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
background-color: #000;
color: #fff;
font-family: 'Arial', sans-serif;
}

.jumpscare {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
z-index: 9999;
}

.jumpscare img {
max-width: 100%;
max-height: 100%;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Welcome to the Jumpscare App!</h1>
<p>Click anywhere on the page to experience a thrilling jumpscare!</p>
</div>
</body>
</html>