-
Notifications
You must be signed in to change notification settings - Fork 0
/
home2-deprecated.html
446 lines (351 loc) · 20.8 KB
/
home2-deprecated.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>home 2</title>
<script defer src="index.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<!-- <style>
.card {
margin-top: 10px;
margin-bottom: 30px;
border:none;
}
</style> -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<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=Oswald:wght@200&display=swap" rel="stylesheet">
<link rel="stylesheet" href="cardsStyle.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link disabled">Disabled</a>
</li>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
<br><br><br>
<div class="container personal_info">
<div id="container_personal_info">
</div>
<br><br>
<div>
<button type="button" id="btnSend" class="btn btn-success" onclick="salvaGeneri()">Success</button>
<button type="button" class="btn btn-success">Success</button>
</div>
</div>
<br><br><br>
<div>
<div class="container">
<div class="containerDiv grid" id="container">
</div>
</div>
<div class="container-fluid" id="SettingsAccount">
<div class="row">
<div class="col-sm-2">
<div id="AccountSetting" class="list-group">
<button type="button" class="btn btn-success list-group-item list-group-item-action"
aria-current="true" id="profile" name="profile" onclick="settingProfile()">
Profile (FATTO)
</button>
<button type="button" class="btn btn-success list-group-item list-group-item-action"
id="account" name="account" onclick="settingAccount()">Account (FATTO)</button>
<button type="button" class="btn btn-success list-group-item list-group-item-action"
onclick="settingPreference()">Preferenze</button>
<button type="button" class="btn btn-success list-group-item list-group-item-action"
onclick="settingPlaylist()">Playlist</button>
<button type="button" class="btn btn-success list-group-item list-group-item-action">Comunità
condivisioni</button>
<button type="button" class="btn btn-success list-group-item list-group-item-action">A second
item</button>
<button type="button" class="btn btn-success list-group-item list-group-item-action"
onclick="deleteUser()">cancella utente</button>
</div>
</div>
<!-- <div id="modifyAccount" class="container col-sm-10">
<form action="#" method="post">
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" name="username" id="username" class="form-control"
placeholder="Nuovo username">
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" name="email" class="form-control" id="email">
</div>
<div class="mb-3">
<label for="password" class="form-label">password</label>
<input type="password" name="password" class="form-control" id="password">
</div>
<div class="mb-3">
<label for="password" class="form-label">Conferma password</label>
<input type="password" name="password_conferma" class="form-control" id="password_conferma">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
<button type="reset" class="btn btn-primary">Reset</button>
</form>
</div> -->
<!-- PRIMO DIV MIO MODIFICA ACCOUNT -->
<div id="modifyAccount" class="container col-sm-10">
<form id="formModifyAccount" action="" method="post">
<!--
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<div class="input-group">
<div class="input-group-text">
<input class="form-check-input mt-0" type="checkbox" value="username"
aria-label="Checkbox for following text input">
</div>
<input type="text" name="username" id="username" class="form-control"
placeholder="New username">
</div>
</div> -->
<!-- <input type="text" class="form-control" aria-label="Text input with checkbox"> -->
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<div class="input-group">
<div class="input-group-text">
<input class="form-check-input mt-0" type="checkbox" value="email"
aria-label="Checkbox for following text input">
</div>
<input type="email" name="email" id="email" class="form-control" placeholder="Email">
</div>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<div class="input-group">
<div class="input-group-text">
<input class="form-check-input mt-0" type="checkbox" value="password"
aria-label="Checkbox for following text input">
</div>
<input type="password" name="password" id="password" class="form-control"
placeholder="Password">
</div>
</div>
<div class="mb-3">
<label for="password_conferma" class="form-label">Conferma password</label>
<div class="input-group">
<div class="input-group-text">
<input disabled class="form-check-input mt-0" type="checkbox"
value="password_conferma" aria-label="Checkbox for following text input">
</div>
<input disabled type="password" name="password_conferma" id="password_conferma"
class="form-control" placeholder="New password">
</div>
</div>
<div class="center">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="reset" class="btn btn-primary">Reset</button>
</div>
</form>
</div>
<!-- FINE DIV MIO MODIFICA ACCOUNT -->
<!-- INIZIO SECONDO DIV PROFILO -->
<div id="modifyProfile" class="col-sm-10">
<form action="#" method="post">
<div class="row" style="margin: 30px 30px 30px 0">
<h5>Cambia nome utente</h5>
<div class="col">
<!-- <label for="profileName" class="form-label"><strong>cambia nome utente</strong></label> -->
<input type="text" name="nomeUtente" id="profileName" placeholder="Nuovo nome utente"
class="form-control" style="width: 500px;">
</div>
<div class="col">
<button type="button" class="btn btn-outline-success" id="cambiaNome">Cambia
nome</button>
</div>
</div>
<div class="row" style="margin: 30px 30px 30px 0">
<h5>Biografia</h5>
<div class="col">
<!-- <label for="profileName" class="form-label"><strong>cambia nome utente</strong></label> -->
<input type="text" name="bio" id="bio" placeholder="inserisci una biografia"
class="form-control" style="width: 500px;">
</div>
<div class="col">
<button type="button" class="btn btn-outline-success" id="cambiaBio">Cambia
biografia</button>
<!-- <label for="bio" class="form-label"><strong>Biografia</strong></label>
<input type="text" name="bio" id="bio" placeholder="inserisci una biografia"
class="form-control" style="width: 500px;"> -->
</div>
</div>
<div class="row" style="margin: 30px 30px 30px 5px" id="immagineProfilo1">
<h5>Immagine del profilo</h5>
<div class="col">
<!-- <label for="profileName" class="form-label"><strong>cambia nome utente</strong></label> -->
<input class="form-control" type="file" id="formFile"
placeholder="seleziona un'immagine" class="form-control" style="width: 500px;">
</div>
<div class="col">
<button type="button" class="btn btn-outline-success" id="cambiaImg">Cambia
immagine</button>
</div>
<!-- <div class="mb-3">
<label for="formFile" class="form-label"><strong>Immagine del profilo</strong></label>
<input class="form-control" type="file" id="formFile" placeholder="selezione un'immagine"
class="form-control">
</div> -->
</div>
</form>
</div>
<!-- FINE SECONDO DIV PROFILO -->
<!-- INIZIO DIV PREFERENZE -->
<div id="modifyPreference" class="col-sm-10">
<div class="container">
<h5>Per aggiungere delle preferenze clicca qui</h5>
<button type="button" class="btn btn-success" id="btnAddPreference">Preferenze</button>
</div>
<div class="container-sm">
<table class="table table-bordered table-hover table-striped table-responsive">
<thead>
<tr class="table-success">
<th class="th-sm" scope="col">Name</th>
<th class="th-sm" scope="col">Link</th>
</tr>
</thead>
<tbody id="tablePreference">
</tbody>
</table>
</div>
</div>
<!-- FINE DIV PREFERENZE -->
<!-- INIZIO DIV CANCELLA ACCOUNT -->
<div class="col-sm-10" id="cancellaUtente">
<h1 style="color: red"> vuoi davvero elimare il tuo account? </h1>
<div class="col">
<button type="button" class="btn btn-outline-success" id="bottoneCancellaUtente">CANCELLA
UTENTE</button>
</div>
</div>
<!-- FINE DIV CANCELLA ACCOUNT -->
<!-- INIZIO DIV MOSTRA PLAYLIST -->
<div class="col-sm-10" id="divPlaylist">
<div class="container">
<div class="row cant d-flex justify-content-center align-items-center">
<div class="col-md-6">
<div class="p-3 card">
<div class="d-flex justify-content-between align-items-center p-3 music">
<div class="d-flex flex-row align-items-center"> <i
class="fa fa-music color"></i> <small class="ml-2">Shannon jin pride -
The Usual [Beat, Jess Scott]</small> </div> <i
class="fa fa-check color"></i>
</div>
<div class="d-flex justify-content-between align-items-center p-3 music">
<div class="d-flex flex-row align-items-center"> <i
class="fa fa-music color"></i> <small class="ml-2">R Kelly - Thoia
Toing</small> </div> <i class="fa fa-plus text-muted"></i>
</div>
<div class="d-flex justify-content-between align-items-center p-3 music">
<div class="d-flex flex-row align-items-center"> <i
class="fa fa-music color"></i> <small class="ml-2">Under - Yeah [Feat
Lil John & Lutaring] </small> </div> <i class="fa fa-check color"></i>
</div>
<div class="d-flex justify-content-between align-items-center p-3 music">
<div class="d-flex flex-row align-items-center"> <i
class="fa fa-music color"></i> <small class="ml-2">Dua Lipa - Thingong
Huango [Beat, Jess Scott]</small> </div> <i
class="fa fa-plus text-muted"></i>
</div>
<div class="d-flex justify-content-between align-items-center p-3 music">
<div class="d-flex flex-row align-items-center"> <i
class="fa fa-music color"></i> <small class="ml-2">Things are better -
The Usual [Beat, Jess Scott]</small> </div> <i
class="fa fa-check color"></i>
</div> <button class="btn btn-danger btn-block playlist text-uppercase"
id="btnCreaPlaylist"><i class="fa fa-shopping-cart"></i> Crea nuova
playlist</button>
</div>
</div>
</div>
</div>
<!-- <h1 style="color: red"> Playlist</h1> -->
</div>
<!-- FINE DIV MOSTRA PLAYLIST -->
</div> <!-- FINE DIV COINTAINER "ROW" -->
</div>
<!-- INIZIO DIV CREA PLAYLIST -->
<div class="container-fluid" id="CreaPlaylist" style="background-color:powderblue;">
<form>
<div class="mb-3">
<label for="playlistName" class="form-label"><strong>Nome playlist</strong></label>
<input type="text" class="form-control" id="playlistName" >
</div>
<div class="mb-3">
<label for="playlistDescription" class="form-label"><strong>Descrizione Playlist</strong></label>
<input type="text" class="form-control" id="playlistDescription">
</div>
<div class="mb-3">
<label for="tagPlaylist" class="form-label"><strong>Tag playlist</strong></label>
<input type="text" class="form-control" id="tagPlaylist">
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="checkPlaylistPubblica">
<label class="form-check-label" for="flexSwitchCheckDefault"><strong>Playlist pubblica</strong></label>
</div>
<br>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
<!-- FINE DIV CREA PLAYLIST -->
</div>
<!--
<div style='width: 12rem; height: 12rem;'>
</div> -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!-- <script>
div = document.getElementById("container");
for (i = 0; i < 5; i++) {//righe
div.innerHTML += "<div class='row' id='row"+i+"'>"
for (j = 0; j < 4; j++) {
document.getElementById("row"+i).innerHTML += "<div class='col-sm'>"
document.getElementById("row"+i).innerHTML += "<div class='card' style='width: 18rem;'> <img src='' class='card-img-top' alt=''><div class='card-body'><p class='card-text'>CIAOCIAOCIAO.</p></div></div>"
document.getElementById("row"+i).innerHTML += "</div>"
}
div.innerHTML += "</div>"//fine riga
}
/* div.innerHTML+="</div>" */
</script> -->
</body>
</html>