-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="style.css">
<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=Lato&display=swap" rel="stylesheet">
</head>
<body>
<div class="header">
<h1 class="headcon">ROCK</h1>
<h1 class="headcon">PAPER</h1>
<h1 class="headcon">SCISSORS</h1>
</div>
<div class="title">
<h1 id="playerScore">Player</h1>
<h1 id="computerScore">Computer</h1>
</div>
<div class="gameContent">
<p id="player"></p>
<p id ="scoreArrow"></p>
<p id="computer"></p>
</div>
<div class="buttonbox">
<button class="button" id='rock' onClick="playerPlay(this.id)">🪨</button>
<button class="button" id='paper' onClick="playerPlay(this.id)">📋</button>
<button class="button" id='scissors' onClick="playerPlay(this.id)">✂️</button>
</div>
<script src="./script.js"></script>
</body>
</html>