-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
38 lines (38 loc) · 1.88 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Rock_Papers_Scissors</title>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<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=Nunito+Sans:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="game.css">
<script src="game.js" defer></script>
</head>
<body>
<div class="name" style="font-family: 'Nunito Sans', sans-serif;">
<h2>Rock-Papers-Scissors</h2>
</div>
<div class="selections">
<button class="selection" data-selection="rock">✊</button>
<button class="selection" data-selection="paper">✋</button>
<button class="selection" data-selection="scissors">✌</button>
</div>
<div class="results">
<div>
<span style="font-size:25px; font-family: 'Nunito Sans', sans-serif; color: aliceblue;">You: </span>
<span class="result-score" data-your-score>0</span>
</div>
<div data-final-column>
<span style="font-size:25px; font-family: 'Nunito Sans', sans-serif; color: aliceblue;">Computer: </span>
<span class="result-score" data-computer-score>0</span>
</div>
<!-- <div class="result-selection winner">✊</div>
<div class="result-selection">✌</div> -->
</div>
</body>
</html>