-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (59 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rock, paper, scissors, lizard, spock!</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="wrapper">
<p id="title">Rock, paper, scissors, lizard, spock!</p>
<div id="options">
<div class="option" id="rock-container" onclick="playerChoose('rock')">
<div class="option__image">
<img src="images/rock.png">
</div>
<p class="option__text">Rock</p>
</div>
<div class="option" id="paper-container" onclick="playerChoose('paper')">
<div class="option__image">
<img src="images/paper.png">
</div>
<p class="option__text">Paper</p>
</div>
<div class="option" id="scissors-container" onclick="playerChoose('scissors')">
<div class="option__image">
<img src="images/scissors.png">
</div>
<p class="option__text">Scissors</p>
</div>
<div class="option" id="lizard-container" onclick="playerChoose('lizard')">
<div class="option__image">
<img src="images/lizard.png">
</div>
<p class="option__text">Lizard</p>
</div>
<div class="option" id="spock-container" onclick="playerChoose('spock')">
<div class="option__image">
<img src="images/spock.png">
</div>
<p class="option__text">Spock</p>
</div>
</div>
<div id="result__wrapper">
<p id="result__text">Oh no! Rock crushes lizard!</p>
</div>
<div id="score__wrapper">
<div class="score__container">
<p class="score__title">You</p>
<p class="score__points" id="score-player">0</p>
</div>
<div class="score__container">
<p class="score__title">Computer</p>
<p class="score__points" id="score-computer">0</p>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>