-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (102 loc) · 3.64 KB
/
index.html
File metadata and controls
115 lines (102 loc) · 3.64 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!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="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<meta
name="description"
content="A simple rock paper scissors game built with HTML, CSS, and JavaScript">
<meta
name="keywords"
content="Odin project, rock paper scissors, HTML, CSS, JavaScript">
<meta name="author" content="Azam Azis">
<meta property="og:title" content="Rock Paper Scissors">
<meta property="og:type" content="website">
<meta
property="og:description"
content="A simple rock paper scissors game built with HTML, CSS, and JavaScript">
<meta
property="og:image"
content="https://ik.imagekit.io/2p6x3rqkj/preview.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta
property="og:url"
content="https://rock-paper-scissors-tau-drab.vercel.app/">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@willastro112">
<meta name="twitter:title" content="Rock Paper Scissors">
<meta
name="twitter:description"
content="A simple rock paper scissors game built with HTML, CSS, and JavaScript">
<meta
name="twitter:image"
content="https://ik.imagekit.io/2p6x3rqkj/preview.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Cham:wght@100..900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<div class="wrapper">
<h1 class="title">Rock Paper Scissors</h1>
<div class="score-board">
<div class="player">
<h2 class="player__character">YOU</h2>
<p class="player__score" id="player-score">0</p>
</div>
<div class="dash">—</div>
<div class="player">
<h2 class="player__character">COMPUTER</h2>
<p class="player__score" id="computer-score">0</p>
</div>
</div>
<div class="buttons">
<button
class="btn rock btn-choice btn--hover btn--active"
type="button"
data-selection="rock">
<img src="img/rock.png" alt="rock" height="50" width="50">
</button>
<button
class="btn paper btn-choice btn--hover btn--active"
type="button"
data-selection="paper">
<img src="img/paper.png" alt="paper" height="50" width="50">
</button>
<button
class="btn scissors btn-choice btn--hover btn--active"
type="button"
data-selection="scissors">
<img src="img/scissors.png" alt="scissors" height="50" width="50">
</button>
</div>
<div class="stage">
<div class="battle">
<div class="battle__choice">
<div class="choices choices--player" id="player__choice"></div>
<p class="battle__player" id="battle__player">YOU</p>
</div>
<p class="battle__versus">vs</p>
<div class="battle__choice">
<div class="choices choices--computer" id="computer__choice"></div>
<p class="battle__player" id="battle__computer">COMPUTER</p>
</div>
</div>
<p class="result">The winner is your computer</p>
</div>
<button class="btn reset btn--hover btn--active" type="button">
Reset
</button>
</div>
</body>
</html>