-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
116 lines (90 loc) · 2.5 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
104
105
106
107
108
109
110
111
112
113
114
115
116
<!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>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
height: 100vh;
/* align-items: space-around; */
}
h1 {
flex-basis: 100%;
font-size: 100px;
/* background-color: rosybrown; */
text-align: center;
}
.computer,
.player {
height: 250px;
/* width: 200px; */
/* background-color: forestgreen; */
flex-basis: 40%;
border: 1px solid #ccc;
background-image: url('images/none.jpg');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
h2,
p {
flex-basis: 40%;
margin-left: 50%;
text-align: center;
}
.options {
flex-basis: 40%;
margin-left: 50%;
height: 140px;
display: flex;
justify-content: space-around;
align-items: center;
/* background-color: goldenrod; */
}
img.option {
width: 100px;
height: 100px;
border: 1px solid #ccc;
}
img.option:hover {
border: 1px solid #333;
}
img.option:active {
border: 2px solid #000;
}
</style>
</head>
<body>
<h1 class="scores"></h1>
<div class="computer">
</div>
<div class="player">
</div>
<h2>Choose wisely:</h2>
<div class="options">
<div class="rock">
<img class="option" src="images/rock.jpg" alt="">
</div>
<div class="paper">
<img class="option" src="images/paper.jpg" alt="">
</div>
<div class="scissors">
<img class="option" src="images/scissors.jpg" alt="">
</div>
</div>
<p> I want to always win
<input type="checkbox" onclick="winning()">
</p>
<script src="main.js"></script>
</body>
</html>