-
Notifications
You must be signed in to change notification settings - Fork 1
/
awshome.html
411 lines (375 loc) · 9.96 KB
/
awshome.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
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
<html>
<head>
<meta charset="utf-8" />
<title>Up Your Game!</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
@import url(http://fonts.googleapis.com/css?family=Montserrat);
@import url(https://fonts.googleapis.com/css?family=Lato);
@import url(https://fonts.googleapis.com/css?family=PT+Sans);
@import url(https://fonts.googleapis.com/css?family=Noto+Sans+SC);
@import url(https://fonts.googleapis.com/css?family=Fira+Sans);
body {
/* background-color: #0e6bbfff; */
background-image: url("./new.jpg");
padding-bottom: 15px;
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
background-attachment: fixed;
}
img {
height: 50px;
width: 300px;
margin-top: 20px;
}
header {
color: white;
font-family: "Fira Sans", sans-serif;
font-size: 25px;
margin-left: 20px;
margin-top: 18px;
}
#tools {
display: inline-block;
color: none;
margin-left: 33px;
font-family: "Fira Sans", sans-serif;
font-size: 19px;
background-color: transparent;
color: white;
border: none;
}
#sections {
display: inline-block;
}
.search {
display: inline-block;
}
.searchcourse-button {
font-family: "Fira Sans", sans-serif;
margin-left: 5px;
margin-bottom: 70px;
font-size: 17px;
padding: 11 20 11 20;
border-radius: 3px;
color: white;
background-color: orange;
border: 0px;
margin-top: -40px;
}
.searchcourse-button:hover {
background-color: #13538eff;
}
.body {
text-align: center;
}
input[type="text"] {
height: 50px;
width: 700px;
box-sizing: border-box;
border: 0px solid white;
border-radius: 3px;
font-size: 18px;
padding: 12px 20px 12px 10px;
margin-top: 30px;
margin-bottom: 100px;
font-family: "Fira Sans", sans-serif;
flex-grow: 1;
}
.intro {
font-family: "Noto Sans SC", sans-serif;
font-size: 27px;
text-align: center;
color: white;
margin-top: 100px;
margin-bottom: 20px;
font-style: normal;
}
.whyus {
font-family: "Noto Sans SC", sans-serif;
font-size: 16px;
display: flex;
margin-bottom: 50px;
margin-top: 20px;
text-align: center;
color: black;
font-style: bold;
}
.arrangement {
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
}
.modal {
display: hidden;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
padding-top: 100px;
/* Location of the box */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgb(0, 0, 0);
/* Fallback color */
background-color: rgba(0, 0, 0, 0.4);
/* Black w/ opacity */
}
/* Modal Content */
.modal-content {
position: relative;
background-color: white;
margin: auto;
margin-top: 50px;
padding: 0;
border: 1px solid #888;
width: 800px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
0 6px 20px 0 rgba(0, 0, 0, 0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s;
font-family: "Lucida Sans", "Lucida Sans Regular",
"Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana,
sans-serif;
text-align: left;
}
.modal-header {
padding: 2px 16px;
background-color: white;
color: black;
font-size: 45px;
text-align: center;
}
.modal-body {
padding: 2px 16px;
margin-top: 0px;
color: black;
font-size: 20px;
align-content: left;
}
.login {
color: black;
font-size: 21px;
margin-left: 410px;
margin-top: 30px;
}
.form {
width: 500px;
margin-left: 50px;
color: black;
height: 35px;
border: 1px solid black;
font-size: 18px;
border-radius: 3px;
}
#modalSubmit {
margin-top: 15px;
margin-left: 625px;
margin-bottom: 15px;
background-color: orange;
color: white;
padding: 7 10 7 10;
border-radius: 3px;
font-size: 18px;
}
.Centering {
display: flex;
align-items: center;
justify-content: center;
}
.topnav {
display: flex;
justify-content: space-around;
align-items: center;
}
#result {
height: 10em;
overflow: auto;
overflow-x:auto;
}
</style>
</head>
<body>
<intro>
<div class="background">
<div class="topnav">
<heading style="display: inline-block;">
<a href="./awshome.html"><img src="./TEST.svg" /></a>
</heading>
<div id="sections">
<button id="tools">About Us</button>
<button id="tools">Courses for You</button>
<button id="tools" class="signin">Sign In</button>
</div>
</div>
<div class="intro">
<p>
A personalized, interactive and integrated platform to
upskill
</p>
<p>
Singaporean working adults in their lifelong education
</p>
</div>
<div class="Centering">
<div class="search">
<input type="text" name="search" id="search" placeholder="Search for a course here"
class="form-control" autocomplete="off" />
<ul class="list-group" id="result" style="width: 700px; margin: -100 0 0 0;"></ul>
</div>
<input type="button" value="Search" class="searchcourse-button" style="display: inline-block;" />
</div>
<div class="row" style="background-color: #F2F2F2;">
<div class="whyus" style="justify-content: center">
<div class="col" style="display:inline-block; vertical-align: middle">
<img src="https://image.flaticon.com/icons/svg/148/148968.svg"
style="height: 80px; width: 80px; margin-left: 10px;" />
<div class="arrangement">
<b>
<p>Credentials that are conferred to you</p>
<p>through Up Your Game are verified</p>
<p>and recognized by companies</p>
</b>
</div>
</div>
<div class="col" style="display:inline-block; vertical-align: middle">
<img src="https://image.flaticon.com/icons/svg/265/265755.svg"
style="height: 80px; width: 80px; margin-left: 10px;" />
<div class="arrangement">
<b>
<p>Our AI-powered recommendation engine</p>
<p>
will suggest courses for you to enroll
</p>
<p>in based on your needs</p>
</b>
</div>
</div>
<div class="col" style="display:inline-block; vertical-align: middle">
<img src="https://image.flaticon.com/icons/svg/321/321834.svg"
style="height: 80px; width: 80px; margin-left: 10px;" />
<div class="arrangement">
<b>
<p>
Our platform is seamlessly integrated
with
</p>
<p>
SkillsFuture so you do not have to worry
</p>
<p>
about complicated administrative
processes
</p>
</b>
</div>
</div>
</div>
</div>
</div>
</intro>
<!-- Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close" style="margin-top: 10px;">×</span>
<h2>Sign In</h2>
</div>
<div class="modal-body">
<div class="login">
<div>
<div id="user" style="display: inline-block; margin-left: -360px;">
<p>Email</p>
</div>
<input type="form" class="form" id="username"
style="display: inline-block; margin-left: 93px;" />
</div>
<div>
<div id="pass" style="display: inline-block; margin-left: -360px; margin-top: 20px;">
<p>Password</p>
</div>
<input type="password" class="form" id="password"
style="display: inline-block; margin-left: 52px;" />
</div>
<div id="errors" style="display: inline-block; margin-left: -360px; margin-top: 40px;">
<p></p>
</div>
</div>
<input type="submit" value="Sign In" id="modalSubmit" />
</div>
</div>
</div>
</body>
</html>
<script>
$(document).ready(function () {
$.ajaxSetup({
cache: false
});
$('#search').keyup(function () {
$('#result').html('');
var searchField = $('#search').val();
if (searchField == '') {
$('#result').html('');
return;
}
var expression = new RegExp(searchField, "i");
$.getJSON("https://cornflex-upyourgame.s3.amazonaws.com/modules.json", function (data) {
$.each(data, function (key, value) {
for (i = 0; i < data.modules.length; i++) {
$('#result').append('<li class="list-group-item link-class"> ' + data.modules[i] + '</span></li>');
}
}
);
});
});
});
var modal = document.getElementById("myModal");
// Get the button that opens the modal
/* var btn = document.getElementById("myBtn"); */
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
$(".signin").click(function () {
modal.style.display = "block";
});
// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
};
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
};
$("#modalSubmit").click(function () {
var emailInfo = document.getElementById("username").value;
if (emailInfo == "keif@nus.edu.sg") {
window.location = "./awsuser.html";
} else if (emailInfo == "cpf@nus.edu.sg") {
window.location = "./awsuser2.html";
} else {
// Update model with wrong username
var errorMessage = "Wrong Email! Please enter a valid email!";
document.getElementById("errors").innerHTML = errorMessage;
}
});
$('#result').on('click', 'li', function () {
window.location = "https://www.iss.nus.edu.sg/executive-education/course/detail/nicf--data-analytics-process-and-best-practice-(sf)";
});
</script>