This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
224 lines (223 loc) Β· 9.53 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html lang="en" style="opacity:0;transition:opacity 1s">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-eval' 'unsafe-inline'">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>PureLauncher | ζηδΈηε―ε¨ε¨</title>
</head>
<body>
<div id="top" class="top"></div>
<div id="top-logo"><img src="src/assets/images/logo.png"></img></div>
<div class="blocks" id="blocks0"></div>
<div class="blocks" id="blocks1"></div>
<div class="blocks" id="blocks2"></div>
<div id="top-buttons">
<button id="go-left">
<svg data-sound="true" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 512 512">
<g data-sound="true" fill="#fdfcfb">
<path d="M352 112h32v32h-32v-32z" />
<path d="M320 144h32v32h-32v-32z" />
<path d="M288 176h32v32h-32v-32z" />
<path d="M256 208h32v32h-32v-32z" />
<path d="M224 240h32v32h-32v-32z" />
<path d="M256 272h32v32h-32v-32z" />
<path d="M288 304h32v32h-32v-32z" />
<path d="M320 336h32v32h-32v-32z" />
<path d="M352 368h32v32h-32v-32z" />
</g>
<g data-sound="true" fill="#889597">
<path d="M384 112h32v32h-32v-32z" />
<path d="M352 144h32v32h-32v-32z" />
<path d="M320 176h32v32h-32v-32z" />
<path d="M288 208h32v32h-32v-32z" />
<path d="M256 240h32v32h-32v-32z" />
<path d="M288 272h32v32h-32v-32z" />
<path d="M320 304h32v32h-32v-32z" />
<path d="M352 336h32v32h-32v-32z" />
<path d="M384 368h32v32h-32v-32z" />
</g>
</svg>
</button>
<button id="go-right">
<svg data-sound="true" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 512 512">
<g data-sound="true" fill="#fdfcfb">
<path d="M96 112h32v32h-32v-32z" />
<path d="M128 144h32v32h-32v-32z" />
<path d="M160 176h32v32h-32v-32z" />
<path d="M192 208h32v32h-32v-32z" />
<path d="M224 240h32v32h-32v-32z" />
<path d="M192 272h32v32h-32v-32z" />
<path d="M160 304h32v32h-32v-32z" />
<path d="M128 336h32v32h-32v-32z" />
<path d="M96 368h32v32h-32v-32z" />
</g>
<g data-sound="true" fill="#889597">
<path d="M128 112h32v32h-32v-32z" />
<path d="M160 144h32v32h-32v-32z" />
<path d="M192 176h32v32h-32v-32z" />
<path d="M224 208h32v32h-32v-32z" />
<path d="M256 240h32v32h-32v-32z" />
<path d="M224 272h32v32h-32v-32z" />
<path d="M192 304h32v32h-32v-32z" />
<path d="M160 336h32v32h-32v-32z" />
<path d="M128 368h32v32h-32v-32z" />
</g>
</svg>
</button>
<button id="shrink">
<svg data-sound="true" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 512 512">
<g data-sound="true" fill="#fdfcfb">
<path d="M352 112h32v32h-32v-32z" />
<path d="M320 144h32v32h-32v-32z" />
<path d="M288 176h32v32h-32v-32z" />
<path d="M256 208h32v32h-32v-32z" />
<path d="M224 240h32v32h-32v-32z" />
<path d="M256 272h32v32h-32v-32z" />
<path d="M288 304h32v32h-32v-32z" />
<path d="M320 336h32v32h-32v-32z" />
<path d="M352 368h32v32h-32v-32z" />
</g>
<g data-sound="true" fill="#889597">
<path d="M384 112h32v32h-32v-32z" />
<path d="M352 144h32v32h-32v-32z" />
<path d="M320 176h32v32h-32v-32z" />
<path d="M288 208h32v32h-32v-32z" />
<path d="M256 240h32v32h-32v-32z" />
<path d="M288 272h32v32h-32v-32z" />
<path d="M320 304h32v32h-32v-32z" />
<path d="M352 336h32v32h-32v-32z" />
<path d="M384 368h32v32h-32v-32z" />
</g>
</svg>
</button>
<button id="spread">
<svg data-sound="true" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 512 512">
<g data-sound="true" fill="#fdfcfb">
<path d="M96 112h32v32h-32v-32z" />
<path d="M128 144h32v32h-32v-32z" />
<path d="M160 176h32v32h-32v-32z" />
<path d="M192 208h32v32h-32v-32z" />
<path d="M224 240h32v32h-32v-32z" />
<path d="M192 272h32v32h-32v-32z" />
<path d="M160 304h32v32h-32v-32z" />
<path d="M128 336h32v32h-32v-32z" />
<path d="M96 368h32v32h-32v-32z" />
</g>
<g data-sound="true" fill="#889597">
<path d="M128 112h32v32h-32v-32z" />
<path d="M160 144h32v32h-32v-32z" />
<path d="M192 176h32v32h-32v-32z" />
<path d="M224 208h32v32h-32v-32z" />
<path d="M256 240h32v32h-32v-32z" />
<path d="M224 272h32v32h-32v-32z" />
<path d="M192 304h32v32h-32v-32z" />
<path d="M160 336h32v32h-32v-32z" />
<path d="M128 368h32v32h-32v-32z" />
</g>
</svg>
</button>
<button id="close">
<svg data-sound="true" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 512 512">
<g data-sound="true" fill="#fdfcfb">
<path d="M96 112h32v32h-32v-32z" />
<path d="M352 112h32v32h-32v-32z" />
<path d="M128 144h32v32h-32v-32z" />
<path d="M320 144h32v32h-32v-32z" />
<path d="M160 176h32v32h-32v-32z" />
<path d="M288 176h32v32h-32v-32z" />
<path d="M192 208h32v32h-32v-32z" />
<path d="M256 208h32v32h-32v-32z" />
<path d="M224 240h32v32h-32v-32z" />
<path d="M192 272h32v32h-32v-32z" />
<path d="M256 272h32v32h-32v-32z" />
<path d="M160 304h32v32h-32v-32z" />
<path d="M288 304h32v32h-32v-32z" />
<path d="M128 336h32v32h-32v-32z" />
<path d="M320 336h32v32h-32v-32z" />
<path d="M96 368h32v32h-32v-32z" />
<path d="M352 368h32v32h-32v-32z" />
</g>
<g data-sound="true" fill="#889597">
<path d="M128 112h32v32h-32v-32z" />
<path d="M384 112h32v32h-32v-32z" />
<path d="M160 144h32v32h-32v-32z" />
<path d="M352 144h32v32h-32v-32z" />
<path d="M192 176h32v32h-32v-32z" />
<path d="M320 176h32v32h-32v-32z" />
<path d="M224 208h32v32h-32v-32z" />
<path d="M288 208h32v32h-32v-32z" />
<path d="M256 240h32v32h-32v-32z" />
<path d="M224 272h32v32h-32v-32z" />
<path d="M288 272h32v32h-32v-32z" />
<path d="M192 304h32v32h-32v-32z" />
<path d="M320 304h32v32h-32v-32z" />
<path d="M160 336h32v32h-32v-32z" />
<path d="M352 336h32v32h-32v-32z" />
<path d="M128 368h32v32h-32v-32z" />
<path d="M384 368h32v32h-32v-32z" />
</g>
</svg>
</button>
<button id="hide">
<svg data-sound="true" version="1.1" xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 512 512">
<path fill="#e0e0e0" d="M96 240h288v32h-288v-32z"></path>
<path fill="#889597" d="M384 240h32v32h-32v-32z"></path>
</svg>
</button>
</div>
<main id="root"></main>
<style>.hide { display: none !important }</style>
<script>
(() => {
const blocks0 = document.getElementById('blocks0')
const blocks1 = document.getElementById('blocks1')
const blocks2 = document.getElementById('blocks2')
const count = 40 // window.innerWidth / 20 | 0
const colors2 = ['#7e512f', '#8c6a48', '#8b6428', '#885b3c', '#754b2e', '#c38a58', '#775237', '#775236',
'#905536', '#675432', '#735337', '#754b2e', '#975a35', '#70472f', '#8c6948', '#5f4939',
'#7e512f', '#8b6428', '#675d46', '#645634', '#6f6449']
const colors0 = ['#9bbf56', '#869f43', '#7fad3a', '#7ab53f', '#7ab139', '#7a993f', '#a5c95e', '#87b43e']
const colors1 = colors0.concat(colors2.slice(5))
const temp = document.createDocumentFragment()
const fn = (i, c, b) => {
const l = c.length
while (i++ < count) {
const elm = document.createElement('div')
elm.style.backgroundColor = c[Math.random() * l | 0]
temp.appendChild(elm)
}
const r = Array.from(temp.childNodes)
b.appendChild(temp)
return r
}
window.topBar = {
containers: [blocks0, blocks1, blocks2],
colors: [colors0, colors1, colors2],
blocks: [fn(0, colors0, blocks0), fn(2, colors1, blocks1), fn(16, colors2, blocks2)]
}
let timer1
window.animationStopped = true
window.startAnimation = () => {
if (!animationStopped) return
animationStopped = false
timer1 = setInterval(() => {
topBar.blocks[0][Math.random() * topBar.blocks[0].length | 0]
.style.backgroundColor = topBar.colors[0][Math.random() * topBar.colors[0].length | 0]
topBar.blocks[1][Math.random() * topBar.blocks[1].length | 0]
.style.backgroundColor = topBar.colors[1][Math.random() * topBar.colors[1].length | 0]
topBar.blocks[2][Math.random() * topBar.blocks[2].length | 0]
.style.backgroundColor = topBar.colors[2][Math.random() * topBar.colors[2].length | 0]
}, 100)
}
window.stopAnimation = () => {
if (animationStopped) return
animationStopped = true
clearInterval(timer1)
}
})()
</script>
<script src="src/index.tsx"></script>
</body>
</html>