-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (68 loc) · 3.2 KB
/
Copy pathindex.html
File metadata and controls
68 lines (68 loc) · 3.2 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
<!-- ## ESERCIZIO 2: Calendario Eventi Dinamico
### Descrizione del Progetto
Creare un **pianificatore eventi** mensile con vista calendario interattivo.
L'utente può aggiungere, modificare ed eliminare eventi, con persistenza locale via LocalStorage.
### Requisiti Funzionali
1. **Vista Calendario**: Griglia 7×6 giorni con evidenziazione corrente
2. **Aggiungi Evento**: Modal con data, ora, titolo, descrizione
3. **Gestione Eventi**: Click giorno mostra/eliminare eventi
4. **Navigazione**: Freccia mese precedente/successivo
5. **Responsive**: Layout colonna singola su mobile
┌─────────────────────────────────────┐
│ HEADER: Mese/Anno ← → Aggiungi │
├─────────────────────────────────────┤
│ CALENDARIO 7×6 │ EVENTI GIORNO │
│ Responsive │ + Form │
├─────────────────────────────────────┤
│ FOOTER: Totale eventi mese │
└─────────────────────────────────────┘ -->
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic Event Calendar</title>
<link rel="stylesheet" href="sources/style.css">
<script src="sources/script.js" defer></script>
</head>
<body onload="CreaLaGriglia()">
<header>
<h2>Siamo nel mese di <span id="meseAttuale"></span></h2>
<button onclick="CambioMese(-1)">Mese precedente</button>
<button onclick="CambioMese(+1)">Mese successivo</button>
</header>
<main>
<!-- qui deve apparire le specifiche dell'impegno -->
<div id="cardImpegno"></div>
<table >
<thead>
<tr>
<th class="giorniDellaSettimana">Domenica</th>
<th class="giorniDellaSettimana">Lunedì</th>
<th class="giorniDellaSettimana">Martedì</th>
<th class="giorniDellaSettimana">Mercoledì</th>
<th class="giorniDellaSettimana">Giovedì</th>
<th class="giorniDellaSettimana">Venerdì</th>
<th class="giorniDellaSettimana">Sabato</th>
</tr>
</thead>
<tbody id="giorniDelMese"></tbody>
</table>
<form id="contatto">
<p>Aggiungi nuovo evento:</p>
<label for="nome">Nome dell'evento:</label>
<input type="text" id="nome" name="nome"><br>
<label for="descrizione">Descrizione dell'evento:</label>
<input type="text" id="descrizione" name="descrizione"><br>
<label for="data">Giorno dell'evento</label>
<input type="date" id="data" name="data"><br>
<label for="orario">Ora dell'evento:</label>
<input type="time" id="orario" name="orario"><br>
<button type="submit">Aggiungi l'evento!</button>
</form>
</main>
<footer>
<h2>Totale eventi del mese:</h2><span id="contaEventi"></span>
</footer>
</body>
</html>