-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlevel1.html
More file actions
157 lines (126 loc) · 2.81 KB
/
level1.html
File metadata and controls
157 lines (126 loc) · 2.81 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!-- This file is the first level of the color combination game mode -->
<html>
<style>
body {
background-color: black;
}
</style>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="stylesheet.css">
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<style>
.multicolortext {
background-image: linear-gradient(to left, violet, indigo, green, blue, yellow, orange, red);
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip:text;
color:transparent;
}
</style>
</html>
<div class="l1">
<h1>
<span class="multicolortext">LEVEL 1</span>
</h1>
</div>
<div class="l2">
<p>CLICK ON ANY TWO COLORS TO MAKE A SECONDARY COLOR</p>
</div>
</html>
<head>
<script src="index.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The following code creates the buttons for level game play -->
<style>
.btn {
border: white;
background-color: inherit;
padding: 55px 65px;
font-size: 50px;
margin-top: 2.5%;
cursor: pointer;
display: inline-flex;
border-radius: 10px;
top: 70px;
}
.blue {
color: blue;
}
.blue:hover {
background: blue;
color: white;
}
.green {
color: #4CBB17;
}
.green:hover {
background: #4CBB17;
color: white;
}
.red {
color: red;
}
.red:hover {
background:red;
color: white;
}
</style>
<!-- this is where the buttons access index.js file to
gain functionality and create the color -->
<center>
<body>
<button id="blue" class="btn blue" onclick="checkColor('blue')">■</button>
<button id="green" class="btn green" onclick="checkColor('green')">■</button>
<button id="red" class="btn red" onclick="checkColor('red')">■</button>
</body>
</center>
<center>
<div class="q3">
<p>RESULT</p>
</div>
</center>
</html>
<!-- the below code creates the score box where the result is diplayed -->
<html>
<style>
#scorebox {
display: inline-flex;
align-items: center;
justify-content: center;
height: 22%;
width: 30%;
margin-left: 0%;
margin-top: -3%;
background-color: white;
padding: 10px 90px 15px 90px;
border-radius: 10px;
position: relative;
font-family: koulen;
src: url(KoulenFont/koulen-regular-webfont.woff);
font-weight: bold;
font-size:80px;
}
</style>
<body>
<h2>Results</h2>
<center><h1 id="scorebox"></h1></center>
<!-- the code below created the buttons allowing the user to either go to
the homepage or continue to the next level -->
<div class="homebutton7"<button onclick="location.href='index.html'">
GO HOME
</button>
</div>
<div class="nextlevel3"<button onclick="location.href='level2.html'">
NEXT LEVEL
</button>
</div>
</body>
</html>