forked from 20essentials/20TracksForEachOne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
371 lines (346 loc) Β· 12.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
<!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="logo/favicon.png" type="image/x-icon" />
<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" />
</head>
<body>
<button class="button-playlist">
<img src="logo/svgPlayList.svg" alt="playlist" />
</button>
<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>
<article class="padding-top-card"></article>
<template class="template-card-single">
<article class="card-single">
<aside class="card-single-left">
<a href="playlist/index.html">
<div class="img"></div>
</a>
</aside>
<aside class="card-single-right">
<a href="playlist/index.html">
<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>
<script type="module" src="script.js"></script>
</body>
<section class="html-scheme">
<i>gota</i>
</section>
</html>