-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecret.js
More file actions
38 lines (35 loc) · 1.44 KB
/
secret.js
File metadata and controls
38 lines (35 loc) · 1.44 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
let count = 0
const ename = document.getElementById('name')
ename.onclick = () => {
count++
if (count==22) {
notyet()
}
}
function notyet() {
/** @type HTMLAudioElement */
const audio = document.getElementById('audio')
audio.pause()
const bodyChildren = [document.getElementsByTagName('header')[0], document.getElementsByTagName('main')[0], document.getElementsByTagName('footer')[0]]
for (const c of bodyChildren) {
c.style.animationPlayState = 'running'
}
setTimeout(happen, 3000)
}
function happen() {
const body = document.getElementsByTagName('body')[0]
while (body.lastChild) {
body.removeChild(body.lastChild)
}
body.style = 'justify-content: center;align-items: center;'
const p = document.createElement('p')
p.id = 'secret'
p.style = 'text-align: center;font-size: 2em;max-width: 50vw;word-break: break-all;'
p.textContent = '5LiW55WM5bey5oKE54S25rqc6LWw44CCCuWcqOaIkeeBtemtgua3seWkhArmraTml7bmraTliLvllK/kuIDnmoTnnJ/lrp7kuYvlnLAK5raM6LW35by654OI6ICM5peg5b2i55qE5oKy5Lyk77yMCuS7v+S9m+acieS6uuato+WcqOm7keaal+eahOaIv+mXtOmHjOeXm+WTreOAgg=='
const audio = document.createElement('audio')
audio.src = 'https://files.thallimega.win/Abnormality%20Third%20Warning%20_Updated%20(LOR%20ver.).mp3'
audio.autoplay = true
audio.onended = () => location.reload()
body.insertAdjacentElement('afterbegin', audio)
body.insertAdjacentElement('beforeend', p)
}