-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
74 lines (68 loc) · 1.79 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
<!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" type="text/css" href="style.css">
<style>
/* Add custom CSS styles here */
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
text-align: center;
}
h1 {
color: #333;
margin-top: 20px;
}
.game-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 20px;
}
.choice-container {
margin: 10px;
}
.choice-button {
background-color: #4caf50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
}
#result {
font-size: 24px;
color: #333;
margin-top: 20px;
}
</style>
</head>
<body>
<h1>Rock Paper Scissors</h1>
<div class="game-container">
<div class="choice-container">
<img src="rock-image.png" alt="Rock">
<button class="choice-button" onclick="startGame('rock')">Rock</button>
</div>
<div class="choice-container">
<img src="paper-image.png" alt="Paper">
<button class="choice-button" onclick="startGame('paper')">Paper</button>
</div>
<div class="choice-container">
<img src="scissors-image.png" alt="Scissors">
<button class="choice-button" onclick="startGame('scissors')">Scissors</button>
</div>
<p id="result"></p>
</div>
<script src="script.js"></script>
</body>
</html>