-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolorgame.html
More file actions
81 lines (79 loc) · 2.51 KB
/
colorgame.html
File metadata and controls
81 lines (79 loc) · 2.51 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
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
<!DOCTYPE html>
<html>
<head>
<title>COLOR GAME</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style type="text/css">
body {
margin: 0px;
padding: 0px;
background: #000;
font-family: Avenir;
}
h1{
color: white;
text-align: center;
margin: 0px;
line-height: 1.1;
padding: 20px 0;
box-sizing: border-box;
font-weight: normal;
background: steelblue;
text-transform: uppercase;
}
.container {
margin: 20px auto;
max-width: 600px;
box-sizing: border-box;
}
#color{font-size: 200%}
.square {
width: 30%;
padding-bottom: 30%;
margin: 1.66%;
float: left;
border-radius: 20px;
transition: background .6s;
background: lightgreen
}
.circle{
border-radius: 50%
}
.triangle {border-radius: 34%}
span#message{
font-weight: 700;
display: inline-block;
width: 20%;
}
.nav {width: 100%;height: 30px; text-align: center;margin: 0px; background: white;padding: 0px;box-sizing: border-box;}
button {
height: 30px;
height: 100%;
border: none;cursor: pointer;outline: 0px;background: none;font-weight: 700;color: steelblue;text-transform: uppercase;letter-spacing: 1px;font-size: inherit;
transition: all .3s;
}
button:hover {color: white; background: steelblue}
.selected{background: steelblue;color: white}
</style>
</head>
<body style="background: #2d2d2d">
<h1>The Great <br><span id="color">RGB</span> <br>Color Game</h1>
<div>
<div class="nav">
<button id="reset">New Colors</button>
<span id="message"></span>
<button id = "easybtn">Easy</button>
<button id="hardbtn" class = "selected">Hard</button>
</div>
</div>
<div class="container">
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
</div>
<script type="text/javascript" src="js/colors.js"></script>
</body>
</html>