-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (46 loc) · 2.67 KB
/
index.html
File metadata and controls
56 lines (46 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>rock,paper,scissors game</title>
<link href="https://fonts.googleapis.com/css2?family=Bungee+Spice&family=Bungee+Tint&family=Cinzel:wght@400..900&family=Codystar:wght@300;400&family=Creepster&family=Paytone+One&display=swap" rel="stylesheet">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23664d03' d='M7 12v-2a2 2 0 1 1 4 0v1h1V8a2 2 0 1 1 4 0v4h1v-1a2 2 0 1 1 4 0v2c0 2.2-1.8 4-4 4h-1v2a3 3 0 0 1-6 0v-2H9a2 2 0 0 1-2-2z'/%3E%3C/svg%3E">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css" />
</head>
<body >
<h1> LET'S <br> Rock 🔥Paper 🔥Scissors</h1>
<div class="choices" >
<button onclick="playGame('rock')">👊</button>
<button onclick="playGame('paper')">✋</button>
<button onclick="playGame('scissors')">✌️</button>
</div>
<div id="playerDisplay" style="font-family: Creepster, system-ui
"></div>
<div id="nameFormSection">
<form id="nameForm" class="mb-3">
<label for="playerNameInput" class="form-label"></label>
<input type="text" style="background-color: rgb(174, 221, 235); font-family: Creepster, system-ui
" class="form-control " id="playerNameInput" placeholder="Your Name" required>
<button type="submit" class="btn btn-warning mt-3 " style="font-family: Creepster, system-ui
" >GOOO👽</button>
</form>
</div>
<div id="computerDisplay" style="font-family: Creepster, system-ui
">Computer💻:</div>
<div id="resultDisplay"></div>
<div class="scoreTable">
<div class="scoreDisplay " ><b>Player Score:</b>
<span id="playerScoreDisplay"><b>0</b><span>
</div>
<div class="scoreDisplay "><b> Computer Score:</b>
<span id="computerScoreDisplay"><b>0</b><span>
</div>
</div>
<script src="app.js"></script>
<script src=" https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/js/bootstrap.min.js" integrity="sha384-VQqxDN0EQCkWoxt/0vsQvZswzTHUVOImccYmSyhJTp7kGtPed0Qcx8rK9h9YEgx+" crossorigin="anonymous"></script>
</body>
</html>