-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
30 lines (25 loc) · 972 Bytes
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Rock Paper Scissors</h1>
<p>Click to play the game!</p>
<div id="images-container">
<img src="rock.png" alt="Rock" onclick="playGame('rock')">
<img src="paper.png" alt="Paper" onclick="playGame('paper')">
<img src="Scissors.png" alt="Scissors" onclick="playGame('scissors')">
</div>
<div id="resultBox" style="display: none;"></div>
<div id="result"></div>
<button id="resetButton" onclick="resetGame()" style="display: none;">Reset Game</button>
</div>
<button id="darkmode" onclick="toggleMode()">Light/Dark Mode</button>
<script src="script.js"></script>
</body>
</html>