-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 27c9fbc
Showing
5 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* funzioni reset */ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: Arial, Helvetica, sans-serif; | ||
background-color: rgb(249, 196, 118); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="it"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
<title>NomeSito</title> | ||
|
||
<!-- link font awesome, VERIFICA NUOVE VERSIONI --> | ||
<!-- <link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" | ||
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
/> --> | ||
|
||
<!-- link Bootstrap --> | ||
<!-- <link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" | ||
crossorigin="anonymous" | ||
/> --> | ||
|
||
<!-- link my CSS --> | ||
<link rel="stylesheet" href="./css/style.css" /> | ||
|
||
<!-- VUE 3 CDN --> | ||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> | ||
</head> | ||
|
||
<body> | ||
<header></header> | ||
|
||
<main></main> | ||
|
||
<footer></footer> | ||
|
||
<!-- link a javascript --> | ||
<script type="text/javascript" src="./js/main.js"></script> | ||
</body> | ||
</html> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Consegna: | ||
|
||
Rifare l'esercizio della to do list. | ||
Ogni todo sarà un oggetto, formato da due proprietà: | ||
- text, una stringa che indica il testo del todo | ||
- done, un booleano (true/false) che indica se il todo è stato fatto oppure no | ||
|
||
**MILESTONE 1** | ||
Stampare all'interno di una lista HTML un item per ogni todo. | ||
Se la proprietà done è uguale a true, visualizzare il testo del todo sbarrato. | ||
|
||
**MILESTONE 2** | ||
Visualizzare a fianco ad ogni item ha una "x": cliccando su di essa, il todo viene rimosso dalla lista. | ||
|
||
**MILESTONE 3** | ||
Predisporre un campo di input testuale e un pulsante "aggiungi": cliccando sul pulsante, il testo digitato viene letto e utilizzato per creare un nuovo todo, che quindi viene aggiunto alla lista dei todo esistenti. | ||
|
||
Bonus: | ||
1. oltre al click sul pulsante, intercettare anche il tasto ENTER per aggiungere il todo alla lista | ||
2. cliccando sul testo dell'item, invertire il valore della proprietà done del todo corrispondente (se done era uguale a false, impostare true e viceversa) |