-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
103 lines (99 loc) · 3.1 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
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RPS game</title>
<style>
body{
height: 751px;
background: linear-gradient(145deg, rgb(37, 62, 184), rgb(151, 6, 134));
}
.heading{
background-color: #363774;
height:40px;
display: flex;
color:white;
align-items: center;
justify-content: center;
font-size: larger;
}
.choices{
display: flex;
height: 200px;
align-items: center;
justify-content: center;
grid-gap: 30px;
}
img{
width:100px;
height:100px;
border-radius: 50%;
}
img:hover{
height:110px;
width:110px;
box-shadow: -5px 5px 5px rgb(128, 113, 113);
}
.scorediv{
/* background-color: #b05353; */
display: flex;
grid-gap:90px;
align-items: center;
justify-content: center;
font-size: xx-large;
}
.names{
/* background-color: #b05353; */
display: flex;
grid-gap:40px;
align-items: center;
justify-content: center;
font-size: xx-large;
}
.msg{
display: flex;
align-items: center;
justify-content: center;
}
.messege{
background-color:#0e2872;
border-radius: 10px;
padding: 5px;
color:white;
font-size: x-large;
display:flex;
align-items: center;
justify-content: center;
}
</style>
</head>
<body>
<header class="heading">Rock-Paper-Scissors</header>
<div class="choices">
<div class="choice" id="paper"><img src="https://raw.githubusercontent.com/shradha-khapra/JavaScriptSeries/591e313788fc145b92d80cf7f1494199556bec0d/StonePaperScissors/images/paper.png" alt="paper"></div>
<div class="choice" id="rock"><img src="https://github.com/shradha-khapra/JavaScriptSeries/blob/main/StonePaperScissors/images/rock.png?raw=true" alt="paper"></div>
<div class="choice" id="scissors"> <img src="https://raw.githubusercontent.com/shradha-khapra/JavaScriptSeries/591e313788fc145b92d80cf7f1494199556bec0d/StonePaperScissors/images/scissors.png" alt="paper"></div>
</div>
<div class="scorediv">
<div class="userscore">
0
</div>
<div class="compscore">
0
</div>
</div>
<div class="names">
<div class="user">
you
</div>
<div class="comp">
comp
</div>
</div>
<div class="msg">
<p class="messege">select your choice</p>
</div>
<script src="rps.js"></script>
</body>
</html>