-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (31 loc) · 1.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Roll the Dice Game</title>
<link rel="stylesheet" href="dice.css">
</head>
<body>
<div class="container">
<h1>Roll the Dice Game</h1>
<div class="name-input sticky">
<h3>Player 1:<input type="text" id="player1Name" placeholder="Enter Player 1 Name" /></h3>
<h3>Player 2:<input type="text" id="player2Name" placeholder="Enter Player 2 Name" /></h3>
<button id="startButton">Start Game</button>
</div>
<div class="dice-container" style="display: none;">
<div class="player" id="player1Div">
<p id="player1msg">Player 1 roll the dice</p>
<img id="player1Dice" class="dice" src="./images/roll.jpg" alt="Player 1 Dice" />
</div>
<div class="player" id="player2Div">
<p id="player2msg">Player 2 roll the dice</p>
<img id="player2Dice" class="dice" src="./images/roll.jpg" alt="Player 2 Dice" />
</div>
</div>
<h2 id="result" style="display: none;"></h2>
</div>
<script src="dice.js"></script>
</body>
</html>