-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (97 loc) · 4.58 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
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./images/icon.png">
<title>Rock Paper Scissors Game</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous"
>
<style>
.btn{border-radius:50%;height: 70px;width:70px;}
.btn:hover{background-color:rgba(28, 27, 27, 0.25);color:aliceblue;}
#repeatgame:hover{opacity: 0.7;color:red;}
</style>
</head>
<body class="bg-dark">
<header class="container-fluid bg-light p-4 text-center">
<h1 style="font-family:'Quicksand', sans-serif;">Rock Paper Scissors Game</h1>
</header>
<div class="container-fluid">
<!--Game Score Container-->
<div class="row text-white justify-content-evenly py-5">
<span id="user" class="col-4 col-sm-3 col-md-2 fs-4 text-center bg-danger ">YOU</span>
<span id="score" class="col-3 col-sm-3 col-md-2 fs-4 text-center">0 - 0</span>
<span id="computer" class="col-4 col-sm-3 col-md-2 fs-5 text-center bg-danger ">COMPUTER</span>
</div>
<!--Game Buttons Container-->
<div id = "game" class="row text-white justify-content-evenly align-items-center h-25 my-3">
<button id="rock" type="button" class="btn btn-light" value="rock" onclick="game(this.value)">
<i class="far fa-hand-rock fs-1"></i>
</button>
<button id="paper" type="button" class="btn btn-light" value="paper" onclick="game(this.value)">
<i class="far fa-hand-paper fs-1"></i>
</button>
<button id="scissors" type="button" class="btn btn-light" value="scissors" onclick="game(this.value)">
<i class="far fa-hand-scissors fs-1"></i>
</button>
</div>
<!--Game Choices Container-->
<div id="playersChoices" class="row justify-content-evenly" style="margin-top: 8%;margin-bottom:5%;display: none;">
<!--Player Choice-->
<div class="col-8 col-sm-4 col-md-3">
<div class="card">
<div id="player" class="card-body bg-dark">
<h5 class="card-title text-center text-danger mb-3 fw-bold">You</h5>
<div class="d-flex justify-content-center align-items-center">
<div id="playerObject" class="btn btn-light h-auto py-3"></div>
</div>
</div>
</div>
</div>
<!--Message-->
<div class="col-6 col-sm-3 col-md-3 d-flex align-items-center justify-content-center my-3">
<div id="card" class="card">
<div id="message" class="card-body bg-dark"></div>
</div>
</div>
<!--Computer Choice-->
<div class="col-8 col-sm-4 col-md-3 mb-5">
<div class="card">
<div id="computer" class="card-body bg-dark">
<h5 class="card-title text-center text-danger mb-3 fw-bold">COMPUTER</h5>
<div class="d-flex justify-content-center align-items-center">
<div id="computerObject" class="btn btn-light h-auto py-3"></div>
</div>
</div>
</div>
</div>
</div>
<!--Play Again Section-->
<div id = "repeat" class="col-3 my-5" style="margin-left: 37.5%;display: none;">
<div id="card" class="card justify-content-center">
<button id="repeatgame" class="card-body fw-bold">
Play Again
</button>
</div>
</div>
</div>
<script src="./js/script.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"
></script>
</body>
</html>
</body>
</html>