-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjoin_quizz.html
More file actions
263 lines (244 loc) · 9.36 KB
/
Copy pathjoin_quizz.html
File metadata and controls
263 lines (244 loc) · 9.36 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
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
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Log In to your ZeoFlow Account.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Join Quest</title>
<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">
<!-- Web Application Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="ZeoFlow">
<meta name="theme-color" content="#ffffff">
<link href="https://fonts.googleapis.com/css?family=PT+Sans&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="assets/style/cookieConsent.css" type="text/css">
<link rel="stylesheet" href="assets/style/material.css" type="text/css">
<link rel="stylesheet" href="assets/style/toolbar.css" type="text/css">
<script src="assets/script/cookieConsent.js" type="text/javascript"></script>
<style>
/* colors */
:root {
--pure-material-primary-rgb: 85, 8, 194;
--pure-material-onsurface-rgb: 0, 0, 0;
}
/* Body Style */
body {
margin: 0;
background-color: #f5f5f5;
}
.unselectable {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}
a {
text-decoration:none
}
/* Prevent Resizing on Padding */
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Website Content Holder */
.contentHolder {
padding-top: 90px;
padding-bottom: 30px;
width: 100%;
position: absolute;
}
/* Question Content Style */
.quizzCodeHolder {
background-color: rgb(236, 236, 236);
font-family: 'PT Sans';
color: rgb(0, 0, 0);
padding: 30px;
position: fixed;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
border-radius: 20px;
-webkit-filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.5));
filter: drop-shadow(0px 0px 10px #222);
}
.quizzCodeTitle {
text-align: center;
font-weight: 900;
font-size: 25px;
font-family: 'PT Sans';
color: rgb(0, 0, 0);
}
.codeHolder {
margin-top: 10px;
text-align: center;
font-weight: 900;
font-size: 17px;
color: rgb(0, 0, 0);
}
.nicknameHolder {
margin-top: 10px;
text-align: center;
font-weight: 900;
font-size: 17px;
color: rgb(0, 0, 0);
}
.inputHolder {
font-weight: 900;
font-size: 18px;
font-family: 'PT Sans';
}
.quizzCodeBtn {
width: fit-content;
margin-top: 15px;
padding-top: 6px;
padding-bottom: 6px;
font-weight: 900;
font-size: 16px;
padding-left: 24px;
padding-right: 24px;
font-family: 'PT Sans';
color: rgb(255, 255, 255);
background-color: #2b00a0;
border-radius: 5px;
background-color: #2b00a0;
-webkit-filter: drop-shadow(0px 0px 4px #2b00a0c0);
filter: drop-shadow(0px 0px 4px #2b00a0be);
-moz-box-shadow: inset 0 0 10px #00000083;
-webkit-box-shadow: inset 0 0 10px #00000083;
box-shadow: inset 0 0 10px #00000083;
margin-left: 50%;
transform: translate(-50%, 0%);
}
.quizzCodeBtn:hover {
transform: translate(-50%, 0%) scale(0.95);
background-color: #3b00df;
-webkit-filter: drop-shadow(0px 0px 6px #1a008dc0);
filter: drop-shadow(0px 0px 6px #1a008dbe);
-moz-box-shadow: inset 0 0 10px #00000083;
-webkit-box-shadow: inset 0 0 10px #00000083;
cursor: pointer;
}
</style>
</head>
<body>
<div class="toolbarHolder toolbarShadow unselectable" id="toolbar">
<div class="toolbarContent">
<div class="titleToolbar" onclick="window.open('index.html', '_self');">
Quest Mode
</div>
</div>
<div class="toolbarUserSessionHolder">
<div class="toolbarUserSessionSignUp" onclick="window.open('user_session/sign_up.html', '_self');">
Sign Up
</div>
<div class="toolbarUserSessionLogIn" onclick="window.open('user_session/log_in.html', '_self');">
Log In
</div>
</div>
<!-- <div class="userLoggedInHolder">
<img class="userLoggedInPicture" src="https://firebasestorage.googleapis.com/v0/b/zeo-flow.appspot.com/o/ProfilePicturesLowQ%2F6jk6xzpHdrwB4kqok4xFDy2HrfobqKJeWRgOE470158261189.jpeg?alt=media" />
</div> -->
</div>
<div class="userLoggedInDetails hideElement" id="userLoggedInDetails">
<div class="userLoggedInDetailsHolder unselectable">
<div class="userLoggedInCover">
<img class="userLoggedInPicture2" src="https://firebasestorage.googleapis.com/v0/b/zeo-flow.appspot.com/o/ProfilePicturesLowQ%2F6jk6xzpHdrwB4kqok4xFDy2HrfobqKJeWRgOE470158261189.jpeg?alt=media" />
<div class="userLoggedInProfileHolder">
<div class="userLoggedInArcShape"></div>
<div class="userLoggedInProfileDetails">
<div class="userLoggedInViewProfile">
View Profile
</div>
</div>
</div>
<div class="profileHolder">
<div class="userLoggedInOptions">
<div class="userLoggedInOptionsItem" onclick="window.open('join_quizz.html', '_self');">
Join Quizz
</div>
<div class="userLoggedInOptionsItem">
Help & Support
</div>
<div class="userLoggedInOptionsItem">
Log Out
</div>
</div>
</div>
</div>
</div>
</div>
<div class="contentHolder unselectable">
<div class="quizzCodeHolder">
<div class="quizzCodeTitle">
Enter Quizz Code
</div>
<div class="inputHolder">
<label class="pure-material-textfield-outlined codeHolder">
<input class="inputHolder" id="quizzCode" placeholder=" " type="text" required>
<span>Code</span>
</label>
</div>
<div class="inputHolder">
<label class="pure-material-textfield-outlined nicknameHolder">
<input class="inputHolder" id="quizzNickname" placeholder=" " type="text" required>
<span>Nickname</span>
</label>
</div>
<div class="quizzCodeBtn" onclick="checkData();">
Join Quizz
</div>
</div>
</div>
<div id="myCookieConsent">
<a id="cookieButton">Understood</a>
<div>To help personalise content and provide a safer experience, we use cookies. By clicking on or navigating the site, you agree to allow us to collect information on and off Quest Mode through cookies. Learn more, including about available controls: <a href="/">Cookie Policy</a>.</div>
</div>
</body>
<script>
function checkData()
{
if(document.getElementById("quizzCode").value.length != 0
&& document.getElementById("quizzNickname").value.length != 0)
{
$.ajax({
type: 'post',
data: {
joinQuizz: true,
quizzCode: document.getElementById("quizzCode").value,
quizzNickname: document.getElementById("quizzNickname").value
},
success: function(response){
}
});
document.getElementById("quizzCode").value = "";
document.getElementById("quizzNickname").value = "";
}
}
$('#quizzNickname').keyup(function (e) {
if (e.keyCode === 13) {
checkData();
}
});
</script>
<script>
document.body.addEventListener("click", function (evt) {
//note evt.target can be a nested element, not the body element, resulting in misfires
var userLoggedInDetails = document.getElementById("userLoggedInDetails");
if(userLoggedInDetails != null)
{
if(evt.target.classList.contains("userLoggedInPicture")) {
if (userLoggedInDetails.classList.contains("hideElement")) {
userLoggedInDetails.classList.remove("hideElement");
} else {
userLoggedInDetails.classList.add("hideElement");
}
} else {
userLoggedInDetails.classList.add("hideElement");
}
}
});
</script>