-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (42 loc) · 1.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dice Roller</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Dice Roller</h1>
<form id="diceForm">
<table>
<tr>
<td><label for="numDice">Number of Dice:</label></td>
<td><input type="number" id="numDice" min="1" value="1" required></td>
</tr>
<tr>
<td><label for="numRolls">Number of Rolls:</label></td>
<td><input type="number" id="numRolls" min="1" value="1" required></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<button type="submit">Roll Dice</button>
</td>
</tr>
</table>
</form>
<audio id="diceSound" src="dice-roll.mp3" preload="auto"></audio>
<table id="resultsTable">
<thead>
<tr>
<th>Roll #</th>
<th>Results</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<script src="script.js"></script>
</body>
</html>