-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
545 lines (514 loc) · 18.9 KB
/
index.html
File metadata and controls
545 lines (514 loc) · 18.9 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
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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lyrprep - Lyrics Preprocessing Tool</title>
<meta
name="description"
content="A beautiful, minimal tool for preprocessing lyrics with real-time conversion, + LRCLIB API and the Spicy Lyrics API integration."
/>
<!-- Favicon -->
<link rel="icon" type="image/png" href="/icon.png" />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<!-- <link
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Color+Emoji&display=swap"
rel="stylesheet"
/> -->
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css"
integrity="sha512-DxV+EoADOkOygM4IR9yXP8Sb2qwgidEmeqAEmDKIOfPRQZOWbXCzLC6vjbZyy0vPisbH2SyW27+ddLVCN+OMzQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Styles -->
<link rel="stylesheet" href="./src/css/styles.css" />
<!-- PWA Support -->
<meta name="theme-color" content="#28a745" />
<meta name="mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<link rel="apple-touch-icon" href="/icon.png" />
<script src="./src/lucide-icons.ts" type="module" defer></script>
<script async>
(function () {
const listeners = {};
let idCounter = 0;
window.InternalEvent = {
listen(event, handler) {
if (!listeners[event]) listeners[event] = {};
const id = ++idCounter;
listeners[event][id] = handler;
return id;
},
unListen(event, id) {
if (listeners[event] && listeners[event][id]) {
delete listeners[event][id];
}
},
evoke(event, data) {
if (!listeners[event]) return;
Object.values(listeners[event]).forEach((fn) => {
try {
fn(data);
} catch (e) {
/* Optionally log error */
}
});
},
};
})();
</script>
<script src="./src/app.ts" type="module" defer></script>
<!-- <script src="https://js.hcaptcha.com/1/api.js?onload=onloadHCaptcha&render=explicit" async defer></script> -->
<!--Embed Tags-->
<meta property="og:title" content="[Spicy Lyrics] Lyrprep" />
<meta property="og:description" content="Preprocessing & more for Spicy Lyrics." />
<meta property="og:url" content="https://lyrprep.spicylyrics.org" />
<meta property="og:image" content="https://lyrprep.spicylyrics.org/icon.png" />
<meta property="og:type" content="website" />
</head>
<body>
<div class="v_appRoot">
<noscript>You need to enable JavaScript to use this site</noscript>
<div class="offlineNotice">
<span>OFFLINE MODE</span>
</div>
<div class="app-container">
<header>
<h1 class="app-title">Lyrprep</h1>
<p class="subtitle">
Preprocess and format your lyrics with ease, with lyrics search
using
<a href="https://lrclib.net" target="_blank" style="color: inherit"
>LRCLIB</a
>
or the
<a
href="https://spicylyrics.org"
target="_blank"
style="color: inherit"
>Spicy Lyrics</a
>
API.
</p>
<p class="subtitle-small">
*Official Partnership with
<a
href="https://spicylyrics.org"
target="_blank"
style="color: inherit; text-decoration: underline"
>Spicy Lyrics</a
>
</p>
</header>
<main class="main-content">
<div class="converter">
<!-- Input Text Box -->
<div class="text-box-container">
<div class="text-box-header">
<h3>Input</h3>
<div class="text-box-actions">
<button
class="clear-input icon-button"
aria-label="Clear input"
>
<i class="fas fa-trash-alt"></i>
</button>
<button
class="search-lyrics icon-button"
aria-label="Search lyrics"
>
<i class="fas fa-search"></i>
</button>
</div>
</div>
<div class="text-box-wrapper">
<textarea
class="input-text"
id="input-text"
name="input-text"
placeholder="Paste your lyrics here or search for lyrics..."
rows="10"
autofocus
></textarea>
</div>
</div>
<!-- Controls -->
<div class="controls">
<button class="convert-btn" aria-label="Convert lyrics">
<i class="fas fa-arrow-right"></i>
</button>
<div class="realtime-toggle">
<span>Real-time</span>
<label class="switch">
<input
type="checkbox"
class="realtime-toggle"
id="realtime-toggle"
name="realtime-toggle"
checked
/>
<span class="slider"></span>
</label>
</div>
</div>
<!-- Output Text Box -->
<div class="text-box-container">
<div class="text-box-header">
<h3>Output</h3>
<div class="text-box-actions">
<button
class="copy-output icon-button"
aria-label="Copy to clipboard"
>
<i class="far fa-copy"></i>
</button>
</div>
</div>
<div class="text-box-wrapper">
<textarea
class="output-text"
id="output-text"
name="output-text"
placeholder="Your processed lyrics will appear here..."
rows="10"
readonly
></textarea>
</div>
</div>
</div>
</main>
</div>
<!-- Settings Panel -->
<div class="settings-panel">
<div class="settings-header">
<h3>Settings</h3>
<button class="close-settings close-btn" aria-label="Close settings">
<i class="fas fa-times"></i>
</button>
</div>
<div class="settings-content">
<div class="settings-section">
<h4>Processing Options</h4>
<div class="settings-options">
<label class="setting-option">
<input
type="checkbox"
class="option-remove-timestamps"
id="option-remove-timestamps"
name="option-remove-timestamps"
checked
/>
<span class="checkmark"></span>
<span>Remove uneccessary elements</span>
<div
class="info-icon"
data-tooltip="Removes timestamps, lyric tags, and other uneccessary elements"
>
<i class="fas fa-info-circle"></i>
</div>
</label>
<label class="setting-option">
<input
type="checkbox"
class="option-handle-dashes"
id="option-handle-dashes"
name="option-handle-dashes"
checked
/>
<span class="checkmark"></span>
<span>Process dashes</span>
<div
class="info-icon"
data-tooltip="Splits dashes in between words into separate words and replaces lyric cut-off dashes with em-dashes"
>
<i class="fas fa-info-circle"></i>
</div>
</label>
<label class="setting-option">
<input
type="checkbox"
class="option-handle-parentheses"
id="option-handle-parentheses"
name="option-handle-parentheses"
checked
/>
<span class="checkmark"></span>
<span>Split background lines</span>
<div
class="info-icon"
data-tooltip="Splits lines with background vocals (text in parentheses) into separate lines and adds a tag"
>
<i class="fas fa-info-circle"></i>
</div>
</label>
<label class="setting-option">
<input
type="checkbox"
class="option-add-spaces"
id="option-add-spaces"
name="option-add-spaces"
checked
/>
<span class="checkmark"></span>
<span>Split spaces from words</span>
<div
class="info-icon"
data-tooltip="Split spaces into separate 'words'"
>
<i class="fas fa-info-circle"></i>
</div>
</label>
<label class="setting-option">
<input
type="checkbox"
class="option-split-cjk"
id="option-split-cjk"
name="option-split-cjk"
aria-describedby="tooltip-split-cjk"
checked
/>
<span class="checkmark"></span>
<span
>Split
<abbr title="Chinese, Japanese, and Korean">CJK</abbr>
characters</span
>
<div
class="info-icon"
id="tooltip-split-cjk"
data-tooltip="Splits CJK characters into separate 'words'"
>
<i class="fas fa-info-circle"></i>
</div>
</label>
<label class="setting-option">
<input
type="checkbox"
class="option-remove-empty-lines"
id="option-remove-empty-lines"
name="option-remove-empty-lines"
checked
/>
<span class="checkmark"></span>
<span>Remove empty lines</span>
<div
class="info-icon"
data-tooltip="Removes any blank lines from the final output"
>
<i class="fas fa-info-circle"></i>
</div>
</label>
</div>
</div>
<div class="settings-section">
<h4>Appearance</h4>
<div class="theme-toggle-container">
<span>Dark Mode</span>
<label class="switch">
<input
type="checkbox"
class="dark-theme-toggle"
id="dark-theme-toggle"
name="dark-theme-toggle"
/>
<span class="slider"></span>
</label>
</div>
<div class="seasonal-theme-toggle-container">
<span>Enable Seasonal Themes</span>
<label class="switch">
<input
type="checkbox"
class="seasonal-theme-toggle"
id="seasonal-theme-toggle"
name="seasonal-theme-toggle"
/>
<span class="slider"></span>
</label>
</div>
<div class="font-selector-container">
<label for="font-selector">Font</label>
<select
class="font-selector"
id="font-selector"
name="font-selector"
>
<option value="inter">Inter</option>
<option value="spicy-lyrics">Spicy Lyrics</option>
<option value="josefin-sans">Josefin Sans</option>
<option value="open-dyslexic">OpenDyslexic</option>
</select>
</div>
</div>
<div class="settings-footer">
<div class="settings-footer-content">
<span
>Made by
<a
href="https://github.com/TheX24"
target="_blank"
style="color: inherit"
>TX24</a
></span
>
<span>•</span>
<span
>Spicy Lyrics API -
<a
href="https://spikerko.org"
target="_blank"
style="color: inherit"
>Spikerko</a
></span
>
</div>
</div>
</div>
</div>
<!-- Search Modal -->
<div class="search-modal">
<div class="search-container">
<div class="search-header">
<div style="display: flex; gap: 0.95cqh; justify-content: center">
<h3>Search Lyrics</h3>
<div class="providersTab">
<div class="provider sl disabled">
<span>Spicy Lyrics</span>
<span class="tooltip">To search using Spicy Lyrics, sign in at <a class="generic__link_button" href="https://interface.spicylyrics.org/dashboard/lyrprep?referrer=lyrprep" target="_blank">https://interface.spicylyrics.org</a> and use the dashboard version</span>
</div>
<div class="provider lrclib active">
<span>LRCLIB</span>
</div>
</div>
</div>
<button class="close-search close-btn" aria-label="Close search">
<i class="fas fa-times"></i>
</button>
</div>
<form class="search-form lrclib">
<div class="formGroups">
<div class="lrclib-formGroup formGroup">
<p
style="
text-align: center;
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0;
"
>
LRCLIB Search
</p>
<div class="form-group">
<label for="search-track">Track Name</label>
<input
type="text"
class="search-track form-control"
id="search-track"
name="search-track"
placeholder="Enter track name"
required
/>
</div>
<div style="display: flex; gap: 1rem">
<div class="form-group" style="flex: 1">
<label for="search-artist">Artist (optional)</label>
<input
type="text"
class="search-artist form-control"
id="search-artist"
name="search-artist"
placeholder="Enter artist name"
/>
</div>
<div class="form-group" style="flex: 1">
<label for="search-album">Album (optional)</label>
<input
type="text"
class="search-album form-control"
id="search-album"
name="search-album"
placeholder="Enter album name"
/>
</div>
</div>
</div>
<div class="sl-formGroup formGroup">
<p
style="
text-align: center;
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 0;
"
>
Spicy Lyrics Search
</p>
<div class="form-group">
<label for="search-spotify-url">Spotify URL</label>
<input
type="text"
class="search-spotify-url form-control"
id="search-spotify-url"
name="search-spotify-url"
placeholder="Enter the Spotify URL"
required
/>
</div>
<div class="hcaptcha-container">
<div id="sl-hcaptcha-content"></div>
</div>
</div>
</div>
<button type="submit" class="search-btn btn btn-primary">
<i class="fas fa-search"></i> Search
</button>
</form>
</div>
<div class="search-results">
<!-- Search results will be populated here -->
<div
class="text-center"
style="padding: 2rem; color: var(--secondary-color)"
>
<i
class="fas fa-search"
style="font-size: 2rem; margin-bottom: 1rem; opacity: 0.5"
></i>
<p>Search for lyrics to get started</p>
</div>
</div>
</div>
<!-- Floating Buttons Container -->
<div class="floating-buttons">
<!-- Help Button -->
<a class="help-btn floating-btn" href="/guide/" aria-label="Help">
<i class="fas fa-question"></i>
</a>
<!-- Settings Button -->
<button class="settings-btn floating-btn" aria-label="Settings">
<i class="fas fa-cog"></i>
</button>
</div>
</div>
<div class="main__init-Loader active">
<div class="main__init-Loader-Content">
<div class="spinning-loader activeAnimation">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-lucide="loader-circle" style="--size: 50px; width: var(--size); height: var(--size);" class="lucide lucide-loader-circle"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg>
</div>
</div>
</div>
<!-- Overlay -->
<div class="overlay active"></div>
<!-- Toast Notification -->
<div class="toast"></div>
<script src="/src/initial/onload.ts" type="module"></script>
</body>
</html>