-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (92 loc) · 3.46 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
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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dice Roller - JS</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./main.css">
</head>
<body>
<!-- <div class="subBackground">
<img src="monopoly.jpg" alt="Monopoly background">
<img src="unnamed.jpg" alt="Poker background">
</div> -->
<div class="container">
<nav>
<div class="link">
<a href="#" data-path="monopoly.jpg" class="background-selector">Select Monopoly Background</a>
</div>
<div class="link">
<a href="#" data-path="unnamed.jpg" class="background-selector">Select Poker Background</a>
</div>
<div class="link">
<a href="#" class="background-selector">Reset !</a>
</div>
</nav>
<div class="dice" data-face="1">
<div class="front face">
<span class="dot dot1"></span>
</div>
<div class="left face">
<span class="dot dot1"></span>
<span class="dot dot2"></span>
</div>
<div class="right face">
<span class="dot dot1"></span>
<span class="dot dot2"></span>
<span class="dot dot3"></span>
</div>
<div class="top face">
<span class="dot dot1"></span>
<span class="dot dot2"></span>
<span class="dot dot3"></span>
<span class="dot dot4"></span>
</div>
<div class="back face">
<span class="dot dot1"></span>
<span class="dot dot2"></span>
<span class="dot dot3"></span>
<span class="dot dot4"></span>
<span class="dot dot5"></span>
</div>
<div class="behind face">
<span class="dot dot1"></span>
<span class="dot dot2"></span>
<span class="dot dot3"></span>
<span class="dot dot4"></span>
<span class="dot dot5"></span>
<span class="dot dot6"></span>
</div>
</div>
<table class="averageTable">
<thead>
<tr>
<th>Number of Roll</th>
<th>Random Number Generated</th>
</tr>
</thead>
<tbody>
<tr></tr>
</tbody>
<tfoot>
<tr>
<th>Average Value</th>
<th class="value">?</th>
</tr>
</tfoot>
</table>
</div>
<a href="#" class="start btn blue noclick">Start the roll ! </a>
<audio class="audio" src="./sound/roll.wav" class="rollSound"></audio>
<script src="./script.js"></script>
</body>
</html>
<!-- Critères : qualité du code /4
Technicité : avec des mathématiques complexes, utilisé des libraries...
Aspect : Un peu sympa.
Features : lancé plusieurs dés, un son, un historique.
2 semaines pour le rendre.
Obligatoire pour une partie + facultatif pour une partie. -->