-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (55 loc) · 1.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div class="sticky top-0 bg-white">
<h1 class="uppercase font-bold text-center m-6 text-5xl">
Guess the number
</h1>
</div>
<div
id="game"
class="mx-auto w-3/4 max-w-2xl border-2 p-4 rounded-md hidden"
>
<p class="text-center m-10 text-xl">
Je génère un nombre entre 0 et 500, à toi de le trouver.
</p>
<div class="flex justify-end">
<p>Score : <span id="score">0</span></p>
</div>
<div class="flex space-x-4">
<input
type="text"
id="choice"
placeholder="Entrez votre choix"
class="flex-grow p-2 border rounded"
/>
<button id="submit">Soumettre</button>
</div>
<div id="guess-representation" class="mt-10">
<p class="text-center" id="higher-or-lower">Choisis un nombre</p>
<div
id="guess-line"
class="w-4/5 h-8 border border-black mx-auto rounded-md mt-5"
></div>
<div class="w-4/5 mx-auto flex justify-between mt-2">
<span>0</span>
<span>500</span>
</div>
</div>
</div>
<div class="flex flex-col items-center justify-center p-6">
<p id="consigne" class="text-center max-w-md m-10 text-xl">
L'application va générer un nombre aléatoire et tu devras le deviner le
plus rapidement possible.
</p>
<button class="m-8" id="start">Start</button>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>