-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
123 lines (88 loc) · 3 KB
/
main.js
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
async function wait(ms) {
return new Promise((res, rej)=>{
setTimeout(res, ms);
})
}
async function start() {
let music = new Audio("wavetapper.mp3")
await new Promise((res, rej)=>{
music.addEventListener("canplaythrough", (e)=>{
res()
})
})
console.log("loaded")
music.play()
await wait(2000)
var height = window.innerHeight
var width = 250
var height = 100
const red = window.open("Windows/red.html", "_Blank","popup=true,left=10,top=10")
red.resizeTo(500,500)
red.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(9000)
const green = window.open("Windows/green.html", "_Blank","popup=true,left=10,top=10")
green.resizeTo(500,500)
green.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(8000)
const blue = window.open("Windows/blue.html", "_Blank","popup=true,left=10,top=10")
blue.resizeTo(500,500)
blue.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(8500)
const white = window.open("Windows/white.html", "_Blank","popup=true,left=10,top=10")
white.resizeTo(500,500)
white.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(4500)
const purple = window.open("Windows/purple.html", "_Blank","popup=true,left=10,top=10")
purple.resizeTo(500,500)
purple.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(20000)
const coral = window.open("Windows/coral.html", "_Blank","popup=true,left=10,top=10")
coral.resizeTo(500,500)
coral.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(9000)
const teal = window.open("Windows/teal.html", "_Blank","popup=true,left=10,top=10")
teal.resizeTo(500,500)
teal.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(9000)
const yellow = window.open("Windows/yellow.html", "_Blank","popup=true,left=10,top=10")
yellow.resizeTo(500,500)
yellow.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(18000)
const black = window.open("Windows/black.html", "_Blank","popup=true,left=10,top=10")
black.resizeTo(500,500)
black.moveTo(window.innerWidth / 2 - width, height / 2 + height)
width += 50
height += 50
await wait(54000)
const orange = window.open("Windows/orange.html", "_Blank","popup=true,left=10,top=10")
orange.resizeTo(500,500)
orange.moveTo(window.innerWidth / 2 - width, height / 2 + height)
await wait(18000)
red.close()
green.close()
blue.close()
white.close()
purple.close()
coral.close()
teal.close()
yellow.close()
black.close()
orange.close()
window.close()
}