forked from FukutoTojido/beatmap-viewer-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
375 lines (364 loc) · 18.2 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html lang="en">
<head>
<title>JoSu!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta property="og:title" content="JoSu! | osu! Beatmap Viewer">
<meta property="og:type" content="website">
<meta property="og:url" content="https://preview.tryz.id.vn">
<meta property="og:description" content="osu! Beatmap Viewer on the web">
<meta property="og:image" content="https://fukutotojido.s-ul.eu/YuVf9ZAd">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="./styles/styles.css">
<link rel="stylesheet" href="./styles/sidePanel.css">
<link rel="stylesheet" href="./styles/mobile.css">
<script type="text/javascript">
// const urlParams = new URLSearchParams(window.location.search);
// const stayPC = urlParams.get("noredirect");
// if (stayPC !== "true") {
// if (navigator.userAgent.match(/Android/i) ||
// navigator.userAgent.match(/webOS/i) ||
// navigator.userAgent.match(/iPhone/i) ||
// navigator.userAgent.match(/iPad/i) ||
// navigator.userAgent.match(/iPod/i) ||
// navigator.userAgent.match(/BlackBerry/i) ||
// navigator.userAgent.match(/Windows Phone/i)
// ) {
// const beatmapID = /[0-9]+/g.test(urlParams.get("b")) ? urlParams.get("b") : null;
// const timestamp = /[0-9]+/g.test(urlParams.get("t")) ? urlParams.get("t") : null;
// document.location = `https://mobile.tryz.id.vn/${beatmapID ? `?b=${beatmapID}` : ""}${timestamp ? `&?t=${timestamp}` : ""}`;
// }
// }
</script>
<script src="https://bundle.run/[email protected]"></script>
<script src="/lib/Vibrant.min.js"></script>
<script src="/lib/zip-fs-full.js"></script>
<script src="/lib/lzma_worker.js"></script>
<script src="./lib/osujs.js" type="module"></script>
<script src="./lib/leb128.js" type="module"></script>
<script src="./lib/osr-parser.js" type="module"></script>
<script src="./scripts/GlobalVariables.js" type="module"></script>
<script src="./scripts/Database.js" type="module"></script>
<script src="./scripts/Skinning.js" type="module"></script>
<script src="./scripts/Texture.js" type="module"></script>
<script src="./scripts/Cursor.js" type="module"></script>
<script src="./scripts/Progress.js" type="module"></script>
<script src="./scripts/Timestamp.js" type="module"></script>
<script src="./scripts/Game.js" type="module"></script>
<script src="./scripts/Audio.js" type="module"></script>
<script src="./scripts/HitSound.js" type="module"></script>
<script src="./scripts/Judgement.js" type="module"></script>
<script src="./scripts/HitObjects/ApproachCircle.js" type="module"></script>
<script src="./scripts/HitObjects/NumberSprite.js" type="module"></script>
<script src="./scripts/HitObjects/HitCircle.js" type="module"></script>
<script src="./scripts/HitObjects/ReverseArrow.js" type="module"></script>
<script src="./scripts/HitObjects/SliderBall.js" type="module"></script>
<script src="./scripts/HitObjects/SliderTick.js" type="module"></script>
<script src="./scripts/HitObjects/SliderEnd.js" type="module"></script>
<script src="./scripts/HitObjects/Slider.js" type="module"></script>
<script src="./scripts/HitObjects/Spinner.js" type="module"></script>
<script src="./scripts/HitObjects/SliderMesh.js" type="module"></script>
<script src="./scripts/HitObjects/ObjectsController.js" type="module"></script>
<script src="./scripts/Beatmap.js" type="module"></script>
<script src="./scripts/BeatmapFile.js" type="module"></script>
<script src="./scripts/ScoreParser.js" type="module"></script>
<script src="./scripts/Utils.js" type="module"></script>
<script src="./scripts/Timeline/Timeline.js" type="module"></script>
<script src="./scripts/Timeline/DragWindow.js" type="module"></script>
<script src="./scripts/Timeline/BeatLines.js" type="module"></script>
<script src="./scripts/Timeline/HitCircle.js" type="module"></script>
<script src="./scripts/Timeline/NumberSprite.js" type="module"></script>
<script src="./scripts/Timeline/ReverseArrow.js" type="module"></script>
<script src="./scripts/Timeline/Slider.js" type="module"></script>
<script src="./index.js" type="module" defer></script>
<script src="./scripts/DragWindow.js" type="module" defer></script>
<script src="./scripts/Settings.js" type="module" defer></script>
<script src="./scripts/DragDrop.js" type="module" defer></script>
<script src="./scripts/InputBar.js" type="module" defer></script>
<script src="./scripts/ProgressBar.js" type="module" defer></script>
<script src="./scripts/TimingPanel.js" type="module" defer></script>
<script src="./scripts/Notification.js" type="module" defer></script>
<script src="./scripts/SidePanel.js" type="module" defer></script>
<script src="./scripts/Record.js" type="module" defer></script>
</head>
<body>
<div id="main">
</div>
<div id="inputContainer">
<div class="legacyPart">
<button id="settingsButton"></button>
<div id="inputWrapper">
<input id="mapInput" type="text" placeholder=" " value="4405432">
</div>
<button id="submit">Load</button>
<!-- <button id="record">Record</button> -->
</div>
<div class="utilRow">
<input type="file" name="map-dropper" id="map-dropper" accept=".osz,.osr,.osk">
<button id="choose-diff" disabled>Change Difficulty</button>
</div>
</div>
<!-- <div class="timelineContainer">
<div class="zoom">
<button class="plus"><img src="/static/plus.png"></button>
<button class="minus"><img src="/static/minus.png"></button>
</div>
<div class="timeline"></div>
</div> -->
<div class="contentWrapper">
<div class="mapBG"></div>
<dialog class="seekTo">
<div class="row">
<div class="rowLabel">Jump to</div><input id="jumpToTime" type="text">
</div>
<div class="row">
<div class="rowLabel">Preview URL</div><input id="previewURL" type="text" readonly>
</div>
</dialog>
</div>
<div class="loading">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="90px" height="90px">
<circle cx="45" cy="45" r="30" strokeLinecap="round" />
</svg>
<div id="loadingText">Getting map information</div>
</div>
<div class="difficultySelector">
<div class="selectorWrapper">
<div class="popup">
<div class="instruction">
<div class="instructionText">Choose a difficulty</div>
<button id="close" disabled>
<img src="/static/close.png">
</button>
</div>
<div class="listWrapper">
<div class="difficultyList">
<div class="diff"></div>
</div>
</div>
</div>
</div>
</div>
<div id="block"></div>
<div id="settingsPanel">
<div class="section">
<div class="header">settings</div>
<div class="description">change the way the beatmap player behaves</div>
</div>
<div class="section">
<div class="title">renderer</div>
<div class="description">changing this will trigger a page reload</div>
<div class="list">
<div class="radioSel">
<input type="radio" name="renderer" id="webgl" value="webgl">
<label for="webgl">WebGL 2</label>
</div>
<div class="radioSel">
<input type="radio" name="renderer" id="webgpu" value="webgpu">
<label for="webgpu">WebGPU (Experimental)</label>
</div>
<div class="radioSel">
<input type="radio" name="renderer" id="auto" value="auto" checked>
<label for="auto">Auto</label>
</div>
</div>
</div>
<div class="section">
<div class="title">beatmap provider</div>
<div class="list">
<div class="radioSel">
<input type="radio" name="mirror" id="nerinyan" value="nerinyan">
<label for="nerinyan">Nerinyan</label>
</div>
<div class="radioSel">
<input type="radio" name="mirror" id="sayobot" value="sayobot">
<label for="sayobot">SayoBot</label>
</div>
<div class="radioSel">
<input type="radio" name="mirror" id="chimu" value="chimu">
<label for="chimu">Chimu.moe</label>
</div>
<div class="radioSel">
<input type="radio" name="mirror" id="custom" value="custom">
<label for="custom">
<input type="text" id="custom-mirror" placeholder="mirror download url format">
</label>
</div>
</div>
</div>
<div class="section">
<div class="title">skinning</div>
<div class="description">change gameplay appearance</div>
<div class="list skin">
<div class="selection">
<button class="skinSelector">Skin</button>
<dialog id="skinDropdown">
<div class="skinSelection" data-skin-id="argon">
<button class="skinName">Argon</button>
</div>
<div class="skinSelection" data-skin-id="triangles">
<button class="skinName">Triangles</button>
</div>
<div class="skinSelection" data-skin-id="tinted">
<button class="skinName">Tinted Legacy</button>
</div>
<div class="skinSelection" data-skin-id="legacy">
<button class="skinName">Legacy</button>
</div>
<!-- <div class="skinSelection" data-skin-id="custom" data-custom-index="0">
<button class="skinName">Custom</button>
</div> -->
</dialog>
</div>
<div class="selection">
<label for="snaking">snaking sliders</label>
<input type="checkbox" id="snaking" name="snaking" checked>
</div>
<div class="selection">
<label for="sliderend">show slider end</label>
<input type="checkbox" id="sliderend" name="sliderend" checked>
</div>
<div class="selection">
<label for="hitAnim">hit animations</label>
<input type="checkbox" id="hitAnim" name="hitAnim" checked>
</div>
<div class="selection">
<label for="ignoreSkin">ignore beatmap colours</label>
<input type="checkbox" id="ignoreSkin" name="ignoreSkin">
</div>
<div class="selection">
<label for="showGrid">show grid</label>
<input type="checkbox" id="showGrid" name="showGrid">
</div>
<div class="selection">
<label for="disablePerfect">disable GREATs hit</label>
<input type="checkbox" id="disablePerfect" name="disablePerfect">
</div>
</div>
</div>
<div class="section">
<div class="title">background</div>
<div class="list">
<div class="selection slider">
<label for="dim">background dim</label>
<div id="bgDimVal" class="val">80%</div>
<input type="range" id="dim" name="dim" min="0" max="1" step="0.01" value="0.8">
</div>
<div class="selection slider">
<label for="blur">background blur</label>
<div id="bgBlurVal" class="val">0%</div>
<input type="range" id="blur" name="blur" min="0" max="20" step="0.2" value="0">
</div>
<div class="selection">
<label for="video">enable video</label>
<input type="checkbox" id="video" name="video">
</div>
<div class="selection">
<label for="storyboard">enable storyboard</label>
<input type="checkbox" id="storyboard" name="storyboard">
</div>
</div>
</div>
<div class="section">
<div class="title">audio</div>
<div class="list">
<div class="selection slider">
<label for="master">master volume</label>
<div id="masterVal" class="val">100%</div>
<input type="range" id="master" name="master" min="0" max="1" step="0.01" value="1">
</div>
<div class="selection slider">
<label for="music">music volume</label>
<div id="musicVal" class="val">25%</div>
<input type="range" id="music" name="music" min="0" max="1.0" step="0.01" value="0.25">
</div>
<div class="selection slider">
<label for="effect">effect volume</label>
<div id="effectVal" class="val">25%</div>
<input type="range" id="effect" name="effect" min="0" max="0.4" step="0.004" value="0.1">
</div>
<div class="selection">
<label for="disableBMHS">disable beatmap hitsounds</label>
<input type="checkbox" id="disableBMHS" name="disableBMHS">
</div>
</div>
</div>
<div class="section">
<div class="title">mods</div>
<div class="list">
<div class="selection">
<label for="HD">hidden</label>
<input type="checkbox" id="HD" name="HD">
</div>
<div class="selection">
<label for="HR">hard rock</label>
<input type="checkbox" id="HR" name="HR">
</div>
<div class="selection">
<label for="EZ">easy</label>
<input type="checkbox" id="EZ" name="EZ">
</div>
<div class="selection">
<label for="DT">double time</label>
<input type="checkbox" id="DT" name="DT">
</div>
<div class="selection">
<label for="NC">nightcore</label>
<input type="checkbox" id="NC" name="NC">
</div>
<div class="selection">
<label for="HT">half time</label>
<input type="checkbox" id="HT" name="HT">
</div>
<div class="selection">
<label for="DC">daycore</label>
<input type="checkbox" id="DC" name="DC">
</div>
</div>
</div>
<div class="section">
<div class="title">mapping</div>
<div class="list">
<div class="selection slider">
<label for="beat">beatsnap divisor</label>
<div id="beatVal" class="val">1/4</div>
<input type="range" id="beat" name="beat" min="1" max="16" step="1" value="4">
</div>
<div class="selection slider">
<label for="softoffset">offset</label>
<div class="note">
<div class="sign">-</div> late ---- music ---- early <div class="sign">+</div>
</div>
<div id="softoffsetVal" class="val">0ms</div>
<input type="range" id="softoffset" name="softoffset" min="-100" max="100" step="1" value="0">
</div>
<div class="selection">
<label for="showGreenLine">show SV info on timeline</label>
<input type="checkbox" id="showGreenLine" name="showGreenLine">
</div>
</div>
</div>
<div class="section">
<div class="title">about me</div>
<div class="description">and the source code</div>
<div class="horizontalList">
<a href="https://osu.ppy.sh/users/8266808" target="_blank" rel="noreferrer noopener">
<img src="/static/osi.svg" class="linkIcon">
<div class="linkContent">[Boy]DaLat</div>
</a>
<a href="https://twitter.com/FukutoTojido" target="_blank" rel="noreferrer noopener">
<img src="https://img.icons8.com/material-rounded/24/ffffff/twitter.png" class="linkIcon">
<div class="linkContent">@FukutoTojido</div>
</a>
<a href="https://github.com/FukutoTojido/beatmap-viewer-web" target="_blank" rel="noreferrer noopener">
<img src="https://img.icons8.com/material-rounded/24/ffffff/github.png" class="linkIcon">
<div class="linkContent">Source Code</div>
</a>
</div>
</div>
</div>
<div class="notiContainer">
</div>
</body>
</html>