-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
99 lines (82 loc) · 3.93 KB
/
script.js
File metadata and controls
99 lines (82 loc) · 3.93 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Generate a random number between 1337000 and 1337999
var randomNumber = 1337000 + Math.floor(Math.random() * 1000);
// Update the hit counter
document.querySelector('.hit-counter').textContent = 'Visitor #: ' + randomNumber;
document.getElementById('bizButton').addEventListener('click', function() {
window.location.href = 'https://www.jasonanton.com';
});
document.getElementById('coolButton').addEventListener('click', function() {
// Open the theater in a new tab
window.open('theater.html', '_blank', 'width=1400,height=900');
});
function cornify() {
var script = document.createElement('script');
script.src = 'cornify.js';
document.body.appendChild(script);
script.onload = () => cornify_add();
}
var konamiCode = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13];
var konamiIndex = 0;
document.addEventListener('keydown', function(e) {
if (e.keyCode === konamiCode[konamiIndex]) {
konamiIndex++;
if (konamiIndex === konamiCode.length) {
cornify();
konamiIndex = 0;
}
} else {
konamiIndex = 0;
}
});
function makeItMetal() {
document.querySelector('body').style.backgroundImage = "url('assets/fire.gif')";
document.body.style.backgroundColor = 'black';
document.body.style.color = 'red';
document.getElementById('metal').innerHTML = "<img src=\"assets/butthead.gif\" alt=\"AC/DC\"><img src=\"assets/bevis.gif\" alt=\"METALLICA\">";
document.getElementById('footer-left').innerHTML = '<img src="assets/skull.gif">'
document.getElementById('footer-right').innerHTML = '<img src="assets/skull.gif">'
var audio = new Audio('assets/mk.mp3');
// Play first audio, then chain the second one
audio.play().then(() => {
alert("GET OVER HERE!...for some modern software solutions!");
var audio2 = new Audio('assets/toasty.mp3');
audio2.play()
var audio3 = new Audio('assets/mop.mp3');
audio3.play();
}).catch(error => {
console.error('Error playing audio:', error);
});
}
var mortalCombatCode = [65, 66, 65, 67, 65, 66, 66];
var combatIndex = 0;
document.addEventListener('keydown', function(e) {
if (e.keyCode === mortalCombatCode[combatIndex]) {
combatIndex++;
if (combatIndex === mortalCombatCode.length) {
makeItMetal();
combatIndex = 0;
}
} else {
combatIndex = 0;
}
});
console.log('Howdy!')
console.log("↑ ↑ ↓ ↓ ← → ← → B A ENTER");
console.log('A B A C A B B')
console.log(`
⠐⡄⠒⡄⢢⠐⡠⢂⠔⡠⢂⡐⡀⠆⡐⣀⠂⡔⢀⠢⢐⠠⢘⣿⣿⣿⣿⣿⣿⣿
⠐⢌⠡⠒⣀⠣⢐⠡⠒⡠⠡⢄⡑⢈⡐⠠⢁⠢⡁⠎⢄⠡⡈⠽⣿⣿⢿⣿⣿⣿
⢈⡐⠢⡑⡀⢆⠡⢊⠔⠡⡁⠆⢌⠠⣄⠃⠤⢑⡈⠆⡌⠒⢠⠁⢌⡙⣿⣿⣿⣿
⠠⢐⠡⢂⠅⢢⠁⠎⢠⠃⠔⡉⠄⢂⠽⣿⡔⡂⠌⠰⢠⠉⠆⠌⡈⠛⠿⣿⣿⣿
⠐⡈⠰⢁⡘⠄⠩⠐⠡⢈⠒⡈⠔⡈⠰⢈⠿⣶⠈⡁⠆⡉⡐⡈⢤⣑⣠⢂⣿⣿
⢶⣽⣧⠠⠐⣨⣡⣮⣵⣦⣦⣵⣦⣬⣥⣂⡴⣻⣧⢐⣰⣴⣷⠼⢶⢿⣶⣮⠾⣿
⡜⣿⣿⡴⠿⠛⣛⣩⣭⣿⣿⣯⣤⣬⣍⣉⣻⣿⣿⣿⣩⣵⣮⣵⡾⣿⢿⣷⣤⣿
⢸⣹⣿⣶⠶⠟⠛⢋⠉⣉⠩⢠⠉⠌⡉⠍⢛⣿⣿⣿⣍⠠⠁⡄⠐⣀⠂⠄⣈⣽
⠠⠙⣿⣄⠐⡈⠔⠢⢁⠆⡑⠢⡑⠢⢐⢨⣸⡿⢉⠉⠻⣷⣂⡄⢃⠄⠌⡐⣱⣿
⢀⠃⠌⡉⡐⠌⢌⡁⠆⠂⡅⠢⠑⢌⠠⠂⠟⡁⢂⢉⡐⢈⠛⠻⠛⠾⠷⢿⣿⣿
⠠⠘⡐⠰⠀⢎⠰⡀⢌⠱⢀⠃⡍⠠⢂⠱⠀⢆⠡⠂⡔⠢⢌⠡⡘⠄⡱⢂⠰⢻
⢀⠣⠌⢡⠁⠎⡐⢈⠄⢢⠁⠎⣀⠃⠌⡄⠩⢐⠨⡁⢄⠣⢈⢂⠁⠎⡐⢂⠓⣤
⢀⠂⠍⡄⢊⠐⡡⢈⠄⠃⡌⠰⢠⠈⢆⠠⢑⠨⢠⢁⠢⠐⢂⣼⣶⣿⣶⣧⣾⣿
⠠⡉⠔⡠⢁⢊⡐⠢⠌⡑⢠⠑⡠⢁⠢⠌⠠⠑⠂⡌⠄⠃⠌⠡⠉⠄⡠⢀⠌⢹
⠐⡈⠆⡑⠌⠒⡨⠑⠌⡐⢁⠂⠔⠠⠂⠌⠡⠌⠡⢐⠈⠌⢂⡁⠎⡐⡄⢂⠌⣤
`);