forked from sophiezychan/learningthrills.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbadges.html
More file actions
187 lines (142 loc) · 4.41 KB
/
badges.html
File metadata and controls
187 lines (142 loc) · 4.41 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page Title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<div class="header">
<img src = "LearningThrills Logo.png" width="200" height="200"></img>
</div>
<style>
.header {
padding: 25px; /* some padding */
text-align: center; /* center the text */
background: #F1B900; /* pencil yellow background */
color: white; /* white text color */
}
/* Increase the font size of the <h1> element */
.header h1 {
font-size: 40px;
}
</style>
<div class="navbar">
<a href="./website.html">Home</a>
<a href="./student%20database.html">Student Database</a>
<a href="./badges.html">Badges</a>
<a href="./login%20page.html" class="right">Log out</a>
</div>
<style>
/* Style the top navigation bar */
.navbar {
overflow: hidden; /* Hide overflow */
background-color: #333; /* Dark background color */
}
/* Style the navigation bar links */
.navbar a {
float: left; /* Make sure that the links stay side-by-side */
display: block; /* Change the display to block, for responsive reasons (see below) */
color: white; /* White text color */
text-align: center; /* Center the text */
padding: 14px 20px; /* Add some padding */
text-decoration: none; /* Remove underline */
}
/* Right-aligned link */
.navbar a.right {
float: right; /* Float a link to the right */
}
/* Change color on hover/mouse-over */
.navbar a:hover {
background-color: #ddd; /* Grey background color */
color: black; /* Black text color */
}
</style>
<style>
/* Ensure proper sizing */
* {
box-sizing: border-box;
}
/* Column container */
.row {
display: flex;
flex-wrap: wrap;
}
/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
flex: 30%; /* Set the width of the sidebar */
background-color: #f1f1f1; /* Grey background color */
padding: 20px; /* Some padding */
}
/* Main column */
.main {
flex: 70%; /* Set the width of the main content */
background-color: white; /* White background color */
padding: 20px; /* Some padding */
}
@media screen and (max-width: 700px) {
.row {
flex-direction: column;
}
}
@media screen and (max-width: 400px) {
.navbar a {
float: none;
width: 100%;
}
}
</style>
<body>
<h1>Badge Selection</h1>
<p>Choose a Badge to Award!</p>
<script>
function toggleImage1() {
var img1 = "RRa.png";
var img2 = "RR.png";
var imgElement = document.getElementById('toggleImage1');
imgElement.src = (imgElement.src === img1)? img2 : img1;
}
function toggleImage2() {
var img1 = "AOa.png";
var img2 = "AO.png";
var imgElement = document.getElementById('toggleImage2');
imgElement.src = (imgElement.src === img1)? img2 : img1;
}
function toggleImage3() {
var img1 = "INa.png";
var img2 = "IN.png";
var imgElement = document.getElementById('toggleImage3');
imgElement.src = (imgElement.src === img1)? img2 : img1;
}
function toggleImage4() {
var img1 = "IIa.png";
var img2 = "II.png";
var imgElement = document.getElementById('toggleImage4');
imgElement.src = (imgElement.src === img1)? img2 : img1;
}
function toggleImage5() {
var img1 = "CCa.png";
var img2 = "CC.png";
var imgElement = document.getElementById('toggleImage5');
imgElement.src = (imgElement.src === img1)? img2 : img1;
}
function toggleImage6() {
var img1 = "SRa.png";
var img2 = "SR.png";
var imgElement = document.getElementById('toggleImage6');
imgElement.src = (imgElement.src === img1)? img2 : img1;
}
</script>
<input type="image" src="RR.png" width="150" height="150" id="toggleImage1" onclick="toggleImage1();"/>
<input type="image" src="AO.png" width="150" height="150" id="toggleImage2" onclick="toggleImage2();"/>
<input type="image" src="IN.png" width="150" height="150" id="toggleImage3" onclick="toggleImage3();"/>
<input type="image" src="II.png" width="150" height="150" id="toggleImage4" onclick="toggleImage4();"/>
<input type="image" src="CC.png" width="150" height="150" id="toggleImage5" onclick="toggleImage5();"/>
<input type="image" src="SR.png" width="150" height="150" id="toggleImage6" onclick="toggleImage6();"/>
</body>
</html>