-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
430 lines (403 loc) · 14.7 KB
/
index.html
File metadata and controls
430 lines (403 loc) · 14.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title translate="no">20 Tracks For Each One</title>
<link rel="shortcut icon" href="assets/favicon.webp" type="image/webp" />
<meta name="description" content="(>‿◠)✌" />
<meta property="og:type" content="website" />
<meta property="og:title" content="20 Tracks for Each One" />
<meta
property="og:url"
content="https://20essentials.github.io/20TracksForEachOne/"
/>
<meta
property="og:image"
content="https://20essentials.github.io/20TracksForEachOne/preview/preview-og.avif"
/>
<meta property="og:description" content="(>‿◠)✌" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="20 Tracks for Each One" />
<meta
property="twitter:url"
content="https://20essentials.github.io/20TracksForEachOne/"
/>
<meta
property="twitter:image"
content="https://20essentials.github.io/20TracksForEachOne/preview/preview-og.avif"
/>
<meta property="twitter:description" content="(>‿◠)✌" />
<link rel="stylesheet" href="styles.css" />
<meta name="google" content="notranslate" />
<script type="module" src="script.js"></script>
</head>
<body>
<button class="button-playlist">
<img src="assets/svgPlayList.svg" alt="playlist" />
</button>
<aside class="open-all-artists"></aside>
<section class="modal-all-artist"></section>
<section class="playlist-section">
<section class="myForm playlist-container-form">
<input
type="text"
class="playlist-input"
placeholder="Enter the playlist title..."
maxlength="20"
/>
<input type="submit" value="Create" class="input-button-playlist" />
<span class="max-length-input"> <output>0</output>/20 </span>
<menu class="settings-backup">
<div>○-</div>
<div>-○</div>
</menu>
</section>
<section class="myForm playlist-container-form-2">
<input
type="text"
class="playlist-input"
placeholder="Enter the playlist title..."
maxlength="20"
/>
<input type="submit" value="Rename" class="input-button-playlist" />
<span class="max-length-input"> <output>0</output>/20 </span>
</section>
<nav class="nav-of-options-of-the-playlist-list">
<button
title="List Order"
class="am-button-nav-modal order button-nav-selected"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
<path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="4"
d="M8 18v9m3 0H5m6-15H5m0-7s3-3 5 0s-5 7-5 7m0 22.5s2-3 5-1s0 4.5 0 4.5s3 2.5 0 4.5s-5-1-5-1m5-3.5H8m0-20l-3 2m15 4h22M20 38h22M20 10h22"
/>
</svg>
</button>
<button title="List Unorder Reverse" class="am-button-nav-modal unorder">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
fill="currentColor"
d="M8 4h13v2H8zM4.5 6.5a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 7a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3m0 6.9a1.5 1.5 0 1 1 0-3a1.5 1.5 0 0 1 0 3M8 11h13v2H8zm0 7h13v2H8z"
/>
</svg>
</button>
<button title="List Random" class="am-button-nav-modal random">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M20 21h-4v-4m0 4l5-5M6.5 9.504l-3.5-2L5 4M3 7.504l6.83-1.87M4 16l4-1l1 4m-1-4l-3.5 6M21 5l-.5 4l-4-.5m4 .5L16 3.5"
/>
</svg>
</button>
<button title="List a-to-z" class="am-button-nav-modal a-to-z">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m3 16l4 4l4-4m-4 4V4m13 4h-5m0 2V6.5a2.5 2.5 0 0 1 5 0V10m-5 4h5l-5 6h5"
/>
</svg>
</button>
<button title="List z-to-a" class="am-button-nav-modal z-to-a">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m3 8l4-4l4 4M7 4v16M20 8h-5m0 2V6.5a2.5 2.5 0 0 1 5 0V10m-5 4h5l-5 6h5"
/>
</svg>
</button>
</nav>
<article class="padding-top-card"></article>
<template class="template-card-single">
<article class="card-single">
<aside class="card-single-left">
<a href="playlist/">
<div class="img"></div>
</a>
</aside>
<aside class="card-single-right">
<a href="playlist/">
<h3 translate="no">Favorite Songs</h3>
<p>0 songs</p>
</a>
</aside>
<footer class="three-points">
<span class="point"></span>
<span class="point"></span>
<span class="point"></span>
<menu class="options">
<div class="item item-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
<path
d="M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"
/>
</svg>
</div>
<div class="item item-2">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path
d="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"
/>
</svg>
</div>
</menu>
</footer>
</article>
</template>
<div class="playlist-section-articles">
<div class="pat-btn"></div>
</div>
</section>
<div class="centrar">
<aside class="container-loader"></aside>
<form class="theForm" autocomplete="off" spellcheck="false">
<div class="autocomplete">
<input
type="text"
id="myInput"
placeholder="Search"
spellcheck="false"
/>
<button class="buscar">🔍</button>
</div>
</form>
</div>
<span class="interruptor">
<span class="switch-border1">
<span class="switch-border2">
<input checked="" type="checkbox" id="switch1" />
<label for="switch1"></label>
<span class="switch-top"></span>
<span class="switch-shadow"></span>
<span class="switch-handle"></span>
<span class="switch-handle-left"></span>
<span class="switch-handle-right"></span>
<span class="switch-handle-top"></span>
<span class="switch-handle-bottom"></span>
<span class="switch-handle-base"></span>
</span>
</span>
</span>
<div class="container-backup">
<div class="container-backup-centrado">
<header class="titulo-header">
<h4>The Playlists are saved in your LocalStorage (LS)</h4>
<button class="go-back">Go back</button>
</header>
<hr />
<p>Things you should know about localStorage</p>
<ul>
<li>It is specific to each browser and device</li>
<li>
Average storage is 5MB per domain, which equals about 5,000,000
characters
</li>
<li>Thanks to those 5MB, you can store hundreds of songs</li>
<li>
If storage is full, you won’t be able to add more playlists/songs
</li>
</ul>
<hr />
<p>Actions that could lead to the deletion of the data stored in LS</p>
<ul>
<li>Clearing browsing data (cookies, history, cache)</li>
<li>Manually deleting from the developer tools</li>
<li>Uninstalling/Reinstalling the browser</li>
<li>Restoring the device</li>
<li>Switching to another browser</li>
<li>Signing out of a synchronized browser</li>
<li>Some browser updates</li>
</ul>
<hr />
<p>
I recommend making a backup of your playlists by obtaining a JSON object
that will contain both the playlist name and its respective songs, with
the URLs for each song.
</p>
<hr />
<p>
I recommend saving that JSON in
<a href="https://keep.google.com/">Google Keep</a>, which is free.
</p>
<hr />
<button class="btn btn-get-one-array">
GET THE ARRAY OF SONGS FROM A PLAYLIST
</button>
<section class="textarea-container">
<input
list="opciones"
id="input-get-array-of-a-playlist"
name="opcion"
placeholder="Pick up the name of a playlist and click above."
spellcheck="false"
/>
<datalist id="opciones" class="am-datalist"> </datalist>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<section class="textarea-container container-output">
<textarea
placeholder="Output"
id="textarea-output"
readonly
spellcheck="false"
translate="no"
></textarea>
<div class="wrapper-indent">
<input
class="indent-total-object"
type="number"
value="0"
min="0"
max="5"
placeholder="Spaces"
/>
</div>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<hr />
<button class="btn btn-get-many-arrays">
GET ARRAYS OF SONGS FROM PLAYLISTS
</button>
<section class="textarea-container">
<textarea
class="textarea-more-padding"
placeholder="Write the names of the playlists separated by commas and click the button above.
Example: U2, Coldplay
"
spellcheck="false"
></textarea>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<section class="textarea-container container-output">
<textarea
placeholder="Output"
id="textarea-output-2"
readonly
spellcheck="false"
translate="no"
></textarea>
<div class="wrapper-indent">
<input
class="indent-total-object"
type="number"
value="0"
min="0"
max="5"
placeholder="Spaces"
/>
</div>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<hr />
<section style="display: none">
<textarea></textarea>
</section>
<button class="btn btn-get-total-object">
GET JSON OBJECT OF ALL PLAYLISTS
</button>
<section class="textarea-container">
<textarea
placeholder="Just click the button above.
And see the result."
spellcheck="false"
id="textarea-get-json-all"
></textarea>
<div class="wrapper-indent">
<input
class="indent-total-object"
type="number"
value="0"
min="0"
max="5"
placeholder="Spaces"
/>
</div>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<hr />
<button class="btn add-one-playlist">ADD A SINGLE PLAYLIST</button>
<section class="textarea-container">
<textarea
translate="no"
placeholder='"Playlist1": [
[
"NAMEBAND - song1",
"https://20essentials.github.io/band/songs/n1.mp3"
],
[
"NAMEBAND - song2",
"https://20essentials.github.io/band/songs/n2.mp3"
],
...
]'
,
spellcheck="false"
></textarea>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<hr />
<button class="btn add-multiple-playlists">ADD MULTIPLE PLAYLISTS</button>
<section class="textarea-container">
<textarea
translate="no"
placeholder='"Playlist1": [
[
"NAMEBAND - song1",
"https://20essentials.github.io/band/songs/n1.mp3"
],
[
"NAMEBAND - song2",
"https://20essentials.github.io/band/songs/n2.mp3"
],
...
],
"Playlist2": [
[
"NAMEBAND - song1",
"https://20essentials.github.io/band/songs/n1.mp3"
],
[
"NAMEBAND - song2",
"https://20essentials.github.io/band/songs/n2.mp3"
],
...
],'
spellcheck="false"
></textarea>
<button class="copiar">📓</button>
<button class="tachito">❌</button>
</section>
<hr />
<button class="btn-delete">DELETE ALL CURRENT PLAYLISTS</button>
</div>
</div>
<div class="left">Number of Performers: <span class="nBands">0</span></div>
<div class="right">Number of songs: <span class="nSongs">0</span></div>
</body>
<section class="html-scheme">
<i>gota</i>
</section>
</html>