-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrps.html
108 lines (97 loc) · 4.76 KB
/
rps.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
101
102
103
104
105
106
107
108
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://getbootstrap.com/docs/5.2/assets/css/docs.css" rel="stylesheet">
<link rel="icon" href="rps.jpg" type="image">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="rps.css">
<title>Rock Paper Scissor</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color:black;">
<div class="container-fluid">
<img src="adi.jpg" alt="mylogo" width="100" height="63" class="d-block mx-auto mb-2 align-text-top" style="padding-top:10px;">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto mb-auto mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="index.html" target="_blank">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="projects.html" target="_blank">Projects</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Social
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="https://www.youtube.com/channel/UCTuRjPFx58vP7bkiRCG2rCg" target="_blank">YouTube</a></li>
<li><a class="dropdown-item" href="https://www.facebook.com/adithyamittapelli888" target="_blank">Facebook</a></li>
<li><a class="dropdown-item" href="https://www.instagram.com/adithyaglobal/" target="_blank">Instagram</a></li>
<li><a class="dropdown-item" href="https://pin.it/6jjA3SI" target="_blank">Pinterest</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="mailto:[email protected]" target="_blank">Contact Us</a>
</li>
</div>
<div id="navbarSupportedContent">
<ul class="navbar-nav mx-auto mb-auto mb-lg-0">
<li class="nav-item"><a class="nav-link" href="https://www.facebook.com/adithyamittapelli888" target="_blank"><i class="bi bi-facebook"></i></a></li>
<li class="nav-item"><a class="nav-link" href="https://www.instagram.com/adithyaglobal/" target="_blank"><i class="bi bi-instagram"></i></a></li>
<li class="nav-item"><a class="nav-link" href="https://www.youtube.com/channel/UCTuRjPFx58vP7bkiRCG2rCg" target="_blank"><i class="bi bi-youtube"></i></a></li>
</ul>
</div>
</div>
</nav>
<br>
<section class="game">
<!--Title -->
<br>
<h1 class="title">Rock Paper Scissor</h1>
<!--Display Score of player and computer -->
<div class="score">
<div class="playerScore">
<h2>Player</h2>
<p class="p-count count">0</p>
</div>
<div class="computerScore">
<h2>Computer</h2>
<p class="c-count count">0</p>
</div>
</div>
<div class="move">Choose your move</div>
<!--Number of moves left before game ends -->
<div class="movesleft">Moves Left: 10 </div>
<br>
<!--Options available to player to play game -->
<div class="options">
<button class="rock">Rock</button>
<button class="paper">Paper</button>
<button class="scissor">Scissors</button>
</div>
<br>
<!--Final result of game -->
<div class="result"></div>
<br>
<!--Reload the game -->
<button class="reload"></button>
<div class="text-center">
<button class="loadmore"><a href="Rock_Paper_Scissor.apk" onclick="alertmsg()" download="Rock_Paper_Scissor.apk">Download Game</a></button>
</div>
</section>
<footer class="py-3 l-7">
<p class="text-center" style="color:white;">© <span id="year"></span> Adithya Creation, Inc</p>
</footer>
<script src="rps.js">
document.querySelector("#year").textContent = new Date().getFullYear();
</script>
</body>
</html>