-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·147 lines (141 loc) · 4.78 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tokyo Olympics QCPR Training</title>
<meta name="description" content="Tokyo Olympics QCPR Training">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#5C6B80">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<style>
html {
height: 100%;
}
@media screen and (max-height: 600px) {
html {
font-size: small;
}
}
body {
color: white;
padding: 0;
background-color: #5C6B80;
width: 100%;
height: 100%;
padding: 0px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-family: Roboto,sans-serif;
font-weight: 300;
}
h1 {
font-weight: 300;
font-size: 3rem;
}
input {
text-align: center;
}
input.go {
margin-top: 1rem;
font-size: 1.5rem;
background-color: #00A48B;
color: white;
border: none;
width: auto;
border-radius: 1.5rem;
padding-left: 1rem;
padding-right: 1rem;
}
form {
text-align: center;
max-width: 40rem;
}
.row {
margin-top: 1rem;
}
.col.inpu {
text-align: right;
}
.col.label {
text-align: left;
}
</style>
<form onsubmit="return submit()">
<div class="container-fluid">
<div class="row">
<div class="col">
<h1>Tokyo Olympics QCPR training</h1>
</div>
</div>
<div class="row">
<div class="col label">Class ID nr.</div>
<div class="col input">
<input type="text" id="classId" disabled value="56892" class="form-control"/>
</div>
</div>
<div class="row">
<div class="col label">Manikin nr.</div>
<div class="col input">
<input type="text" id="manikinName" disabled value="Little Anne 6" class="form-control"/>
<input type="text" id="manikinId" disabled style="display: none;" value="xyz123"/>
</div>
</div>
<div class="row">
<div class="col label">
<p>
Please input your Volunteer ID nr in the field
and press the confirm button to register your
participation in this training session.
</p>
</div>
</div>
<div class="row">
<div class="col label">Volunteer ID nr.</div>
<div class="col input">
<input
type="tel" id="volunteerId" autofocus
class="form-control" placeholder="#######"/>
</div>
</div>
<div class="row">
<div class="col label">Confirm Volunteer ID nr.</div>
<div class="col input">
<input
type="tel" id="confirmVolunteerId"
class="form-control" placeholder="#######"/>
</div>
</div>
<div class="row">
<div class="col">
<input type="submit" value="Confirm registration" class="go form-control btn btn-standard"/>
</div>
</div>
</div>
</form>
<script>
function submit() {
var codeInput = document.getElementById('code');
var manikinInput = document.getElementById('manikin');
if (!codeInput.value) {
codeInput.focus();
alert('Please input classroom code!');
return false;
}
// if (!manikinInput.value) {
// manikinInput.focus();
// alert('Please input manikin number!');
// return false;
// }
// OK: Goto live feedback page
var baseUrl = 'https://eco-dev-aws.contentservice.net/prototype-heartsaver-learner/file/basicLogin.html?classroom=';
var url = baseUrl + codeInput.value.toLowerCase(); // + '-' + manikinInput.value;
window.location.replace(url);
return false;
}
</script>
</body>
</html>