forked from HBull5/JumpScare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (73 loc) · 2.29 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<title>cdn</title>
<link rel="stylesheet" type="text/css" href="IQ_styler.css">
</head>
<body>
<article id="article">
<h2>Delt CDN NA</h2>
<br>
<input type="button" value="connect to file server via browser" onclick="cluster_huck()"/>
</article>
<div id="horror">
<img src="rick.gif">
<audio id="audio">
<source src="roll.mp3" type="audio/mpeg">
</audio>
<p id="message"></p>
</div>
<script>
function hidden() {
var hidden = document.getElementById("horror");
hidden.style.display = "none";
};
hidden();
function visual() {
var show = document.getElementById("horror");
var hide = document.getElementById("article");
show.style.display = "block";
hide.style.display = "none";
document.getElementById("message").innerHTML = "<h1><strong><em>i mean i did not give you up nor let you down?</em></strong></h1>"
};
function audiotory() {
var sound = document.getElementById("audio");
sound.play();
sound.loop = true;
};
function cluster_huck() {
setTimeout(visual, 500);
audiotory();
//enterFullscreen();
warnBeforeUnload();
openRandomWindow();
moveRandomly()
};
</script>
<script>
setTimeout(enterFullscreen, 2000);
function enterFullscreen() {
var elem = document.documentElement; // Get the element that you want to make fullscreen (in this case, the entire document)
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) { /* Safari */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE11 */
elem.msRequestFullscreen();
}
}
function warnBeforeUnload() {
window.addEventListener('beforeunload', function(e) {
// Cancel the event
e.preventDefault();
// Set a custom message for the confirmation dialog
e.returnValue = 'why you leave dont let rick down';
});
}
function openRandomWindow() {
// Open a new window with dimensions of 100x100 pixels
var newWindow = window.open('https://na-cdn.delt.gay/popup.html', 'New Window', 'width=220,height=220');
}
</script>
</body>
</html>