-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (69 loc) · 2.37 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="style.css">
<title>Frontend Mentor | Rock, Paper, Scissors</title>
</head>
<body>
<section id="main-section">
<section class="scoreboard">
<div class="header">
<img src="./images/logo.svg" alt="">
</div>
<div class="score">
<p>SCORE</p>
<span id="score"></span>
</div>
</section>
<section class="main-game" id="picks">
<button class="paper" onclick="game(this.value)" value="paper">
<img src="./images/icon-paper.svg" alt="" srcset="">
</button>
<button class="scissors" onclick="game(this.value)" value="scissors">
<img src="./images/icon-scissors.svg" alt="" srcset="">
</button>
<button class="rock" onclick="game(this.value)" value="rock">
<img src="./images/icon-rock.svg" alt="">
</button>
</section>
<section>
<div class="who" id="who">
<p id="you-picked">YOU PICKED</p>
<p>THE HOUSE PICKED</p>
</div>
<div class="container" id="container">
<div class="left" id="right"></div>
<div class="right" id="left"></div>
<div id="challenge">
<div id="you">
<button id="yourObject"></button>
</div>
<div class="column">
<div id="result"></div>
<button id="continue" onclick="continueGame()">PLAY AGAIN</button>
</div>
<div id="com">
<button id="comObject"></button>
</div>
</div>
</div>
</section>
</section>
<section class="rules">
<button id="rules-btn" class="rules-btn" onclick="openImg()">RULES</button>
<div id="rules" class="rules-section">
<div class="top">
<p>RULES</p>
<button onclick="closeImg()"><img src="./images/icon-close.svg" alt=""></i></button>
</div>
<img src="./images/image-rules.svg" alt="">
</div>
</section>
<script type="text/javascript" src="./js.js"></script>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.4.0/dist/confetti.browser.min.js"></script>
</body>
</html>