-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (126 loc) · 5.37 KB
/
Copy pathindex.html
File metadata and controls
127 lines (126 loc) · 5.37 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
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en" class="flex">
<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="styles.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=Inria+Sans:wght@400;700&family=Kavoon&display=swap"
rel="stylesheet">
<script src="main.js" defer></script>
</head>
<body class="flex">
<div id=header class="flex">
<img src="./assets/rock-paper-scissors.png" alt=
"Rock, Paper, Scissors icon" height="56px" width="56px">
<p class="text-l">Rock, Paper, Scissors</p>
</div>
<div id=content class="flex">
<div id="round-area" class="flex">
<div id="round-number" class="flex color-white text-m">
Round 1
</div>
<div id="container" class="flex">
<div id="overlay-base" class="overlay hidden color-white">
<div id="round-recap" class="overlay hidden">
<div id="round-choices" class="overlay hidden text-m">
<div id="player" class="choice-div overlay hidden">
<p class="text-m">You</p>
<img id="player-choice-img"
src="./assets/rock-right.png"
alt="Rock pointing right" width="40px">
<p id="player-choice-text"
class="choice-name text-m">Rock</p>
</div>
vs
<div id="computer" class="choice-div overlay hidden">
<p class="text-m">Handy</p>
<img id="computer-choice-img"
src="./assets/rock-left.png"
alt="Rock pointing left" width="40px">
<p id="computer-choice-text"
class="choice-name text-m">Rock</p>
</div>
</div>
<div id="round-result" class="overlay hidden text-xl
color-white">
Tie!
</div>
</div>
</div>
<div id="play-buttons-container" class="flex">
<button id="rock" class="choice-button">
<img src="./assets/rock-right.png"
class="button-icon">
Rock
</button>
<button id="paper" class="choice-button">
<img src="./assets/paper-right.png"
class="button-icon">
Paper
</button>
<button id="scissors" class="choice-button">
<img src="./assets/scissors-right.png"
class="button-icon">
Scissors
</button>
</div>
</div>
</div>
<div id="scoreboard-area" class="flex text-m">
<div id="player-score" class="score flex text-l">
0
</div>
<p>Score</p>
<div id="computer-score" class="score flex text-l">
0
</div>
</div>
<div id="game-over-area" class="hidden flex text-xl color-gold">
<div id="game-result-text">
game-result-text here
</div>
<button id="play-again"
class="flex function-button color-purple">
Play again
</button>
</div>
<div id="log-area" class="flex">
<div id="empty-state" class="flex">
<div id="empty-state-hands">
</div>
<div id="empty-state-text" class="color-light-grey text-m">
Defeat Handy the Computer in a first-to-5 to win!
</div>
</div>
<div id="log">
... log goes here
</div>
</div>
</div>
<div id="footer" class="flex">
<div id="footer-content" class="flex">
<div id="flaticon-credit" class="flex text-s">
Icons by
<a href=
"https://www.flaticon.com/free-icons/rock-paper-scissors"
title="rock paper scissors icons" target="_blank">Flat Icons</a>
<img src="./assets/open-externally.svg" alt="open externally"
height="12px" width="12px">
</div>
<div id="signature" class="flex text-s">
Site by
<img src="./assets/github-mark-white.svg" alt="Github logo"
height="20px" width="20px">
<a href="https://github.com/flexbugs" target="_blank"
title="flexbugs on Github">flexbugs</a>
<img src="./assets/open-externally.svg" alt="open externally"
height="12px" width="12px">
</div>
</div>
</div>
</body>
</html>