-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (47 loc) · 1.89 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Liste de courses</title>
<!-- On ajoute la fonte Roboto depuis le service Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="conteneur">
<header>
<form class="form">
<input type="text" name="nouvel-item" id="nouvel-item" placeholder="Nouvel item" title="Caractères autorisés : les 26 lettres en majuscules et minuscules, les espaces, les chiffres et les parenthèses (le mot doit faire minimum 2 lettres)" autofocus required pattern="[A-Za-z0-9\(\) ]*[A-Za-z]{2}[A-Za-z0-9\(\) ]*" autocomplete="off">
<input id="ajouter" type="submit" class="bouton" value="Ajouter">
</form>
</header>
<ul id="liste"></ul>
</div>
<footer>
<button id="exporter" class="bouton texte-large">Exporter</button>
</footer>
<template id="template-item">
<li>
<button class="bouton poignee" tabindex="-1">
<img src="./assets/icons/poignee.svg" alt="déplacer un item" draggable="false">
</button>
<p class="nom" tabindex="0"></p>
<div class="separateur-vertical"></div>
<p class="quantite" tabindex="0">1</p>
<div class="select">
<select name="unite" class="unite">
<option value="u" selected>u</option>
<option value="m">m</option>
<option value="g">g</option>
<option value="kg">kg</option>
<option value="L">L</option>
</select>
</div>
<button class="bouton supprimer"><img src="./assets/icons/poubelle.svg" alt="supprimer item"></button>
</li>
</template>
<script src="projet.js" type="module"></script>
</body>
</html>