This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
280 lines (268 loc) · 15.8 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
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
<!DOCTYPE html>
<!-- saved from url=(0054)https://oas3.relsystems.net:86/GoRes.aspx?branchId=2#! -->
<html xmlns="http://www.w3.org/1999/xhtml" style="" class="js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers no-applicationcache svg inlinesvg smil svgclippaths desktop landscape windows windows10 windows10_0 64bit chrome chrome87 chrome87_0 webkit en-gb"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>
REL Queue
</title><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"><link rel="stylesheet" href="./REL Queue_files/bootstrap.min.css">
<script type="text/javascript" src="./REL Queue_files/modernizr.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/jquery-3.5.1.slim.min.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/jquery-1.9.1.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/jquery-ui-1.9.0.min.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/jquery.blockUI.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/idle-timer.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/popper.min.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/bootstrap.min.js.download"></script>
<link rel="stylesheet" href="./REL Queue_files/font-awesome.min.css"><link rel="stylesheet" href="./REL Queue_files/styleRes.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&display=swap" rel="stylesheet">
<script type="text/javascript" src="./REL Queue_files/default.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/util.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/REL.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/RELSettings.js.download"></script>
<script type="text/javascript" src="./REL Queue_files/RELGeoLoc.js.download"></script>
</head>
<body class="vsc-initialized" style="">
<div class="container">
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Cancel Queue Number</h5>
</div>
<div class="modal-body">
<p class="text-size-1-2">This will remove your queue number from the system. Do you want to proceed?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">No</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick="cancelQueue();">Yes</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="deleteErrModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Alert</h5>
</div>
<div class="modal-body">
<p class="text-size-1-2" id="deleteErrMsg"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<!--Wilson 16082020 as reference-->
<h5 class="text-size-3" style="color: Red;" id="alert">Alert!</h5>
</div>
<div class="modal-body">
<p class="text-size-1-5" id="alertMsg"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div id="boxContent">
<div id="loading" style="display: none;"></div>
<div class="form-row vertical-center" id="Main" style="display: none;">
<div class="container-fluid mt-5">
<div class="h1 text-center">
Welcome to<br>
IKEA Restaurant
</div>
</div>
<div class="text-center mt-5 pt-5">
<div class="h3">Kindly enable your location service before clicking "Begin"</div>
<button class="btn btn-primary btn-lg mt-5" onclick="checkOperationTime('ButtonMain1',function(){getLocation();});">Begin</button>
</div>
<div class="h3 text-danger mt-2 text-center" id="geoErrMsg"></div>
</div>
<div class="form-row vertical-center" id="GetQueue" style="display: none;">
<div class="container-fluid mt-5">
<div class="h1 text-left">
<p class="font-weight-bold">Hej,</p>
<p class="h4">Our IKEA Restaurant is currently full. Please register below to join the queue. We will send you a text once your table is ready.</p>
</div>
</div>
<br>
<div class="container">
<div class="h5">Mobile number</div>
<div class="input-group input-group">
<select id="ddlCC" class="form-control"><option value="65">Singapore (65)</option></select>
<input id="txtMobile" type="number" class="form-control" aria-label="Large" aria-describedby="inputGroup-sizing-sm" autocomplete="off" placeholder="Mobile" pattern="\d*">
</div>
<div class="input-group input-group mt-3">
<div class="input-group-prepend">
<span class="input-group-text text-white rel-color-1">Number of People</span>
</div>
<select id="ddlPax" class="form-control"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select>
</div>
<button type="button" class="btn btn-primary btn-lg btn-block rel-color-1 mt-3" onclick="checkOperationTime('ButtonMain1',function(){playAudio(); submit();});">Submit</button>
</div>
</div>
<div class="form-row" id="collectQueueETicket" style="display: block;">
<div class="container-fluid mt-5">
<div class="float-right w-25">
<button class="btn btn-primary" onclick="cancelClick();">Cancel</button>
</div>
<div class="float-left h5 text-center w-75" id="queuePax">Table for 1 person</div>
<br><br>
<div class="card">
<div class="card-header h5 text-center" id="queuePosText" style="color: Black;">Your Queue position is at:</div>
<div style="width: 100%; display: flex; justify-content: center;">
<div id="qid10" class="qInfo hideQ">1</div>
<div id="qid9" class="qInfo hideQ">1</div>
<div id="qid8" class="qInfo hideQ">1</div>
<div id="qid7" class="qInfo hideQ">1</div>
<div id="qid6" class="qInfo hideQ">1</div>
<div id="qid5" class="qInfo hideQ">1</div>
<div id="qid4" class="qInfo hideQ">1</div>
<div id="qid3" class="qInfo hideQ">1</div>
<div id="qid2" class="qInfo hideQ">1</div>
<div id="qid1" class="qInfo curQ">1<br>You</div>
</div>
</div>
<div class="h5 text-center mt-3" style="color: Black;" id="brName">IKEA Alexandra Restaurant</div>
<div class="h5 text-center mt-3" style="color: Black;">Your Queue number is:</div>
<div class="queueTicket text-center"><span class="align-text-top" style="font-size: 3.5rem;" id="queueTicketE">1000</span></div>
<div class="card w-75 center">
<div class="card-header h5 text-center">
Number of groups<br>
waiting before you:
</div>
<div class="text-center h1 font-weight-bold" id="custWaitE">0</div>
</div>
<div class="h5 text-left mt-2">
<p>We will send you a text once your table is ready. Please continue to shop while waiting. Tack!</p>
<p class="h4 font-weight-bold">Due to social distancing, no waiting or gathering outside the Restaurant.</p>
</div>
<div class="h4 text-center" id="EswtE"></div>
</div>
</div>
<div class="form-row vertical-center" id="tableReady" style="display: none;">
<div class="container-fluid mt-5">
<div class="h4 text-center">Your Queue number is:</div>
<div class="queueTicket text-center"><span contenteditable="true" class="" style="font-size: 5.0rem; letter-spacing: 4px;" id="queueTicketReady"></span></div>
<br>
<div class="h4 text-left" id="tableReadyText">
</div>
</div>
</div>
<div class="form-row" id="errLink" style="display: none;">
<div class="card text-white bg-danger mb-3 h3 center w-100 mt-5" style="max-width: 18rem;">
<div class="card-header">Warning</div>
<div class="card-body">
<p class="card-text text-center h4">
Incorrect Link<br>
<br>
Please contact system administrator !!!
</p>
</div>
</div>
</div>
<!--Wilson 27082020 as reference message is at TimeSetting.xml-->
<div class="form-row" id="breaktime" style="display: none;">
<div class="h1 jumbotron vertical-center bg-white">
<div class="container">
<p class="font-weight-bold">IKEA Restaurant operating hours:</p>
<p class="h3" id="breaktimeMsg"></p>
</div>
</div>
</div>
<div class="form-row" id="printerIdError" style="display: none;">
<div class="card text-white bg-danger mb-3 h3 center w-100 mt-5" style="max-width: 18rem;">
<div class="card-header">Warning</div>
<div class="card-body">
<p class="card-text text-center h4">
branchId is not set in URL !!!<br>
<br>
Please contact system administrator !!!
</p>
</div>
</div>
</div>
<div class="form-row" id="sessionTimeOut" style="display: none;">
<div class="card text-white bg-danger mb-3 h3 center w-100 mt-5" style="max-width: 18rem;">
<div class="card-header">Warning</div>
<div class="card-body">
<p class="card-text text-center h4">
Sorry, your session has been expired!<br>
<br>
You will be redirect to Main Page !!!
</p>
</div>
</div>
</div>
<div class="form-row" id="queueFull" style="display: none;">
<div class="h1 jumbotron vertical-center bg-white">
<div class="container">
<p class="font-weight-bold">Hej,</p>
<p class="h2" id="queueFullMsg"></p>
</div>
</div>
</div>
<div class="form-row" id="branchClose" style="display: none;">
<div class="h1 jumbotron vertical-center bg-white">
<div class="container">
<p class="font-weight-bold">Hej,</p>
<p class="h2">IKEA Restaurant is now closed. We will continue serving your favorite dish tomorrow morning. See you!</p>
</div>
</div>
</div>
<!--Wilson 08092020 as reference when got press refresh on the browser-->
<div class="form-row vertical-center" id="sound" style="display: none;">
<div class="h1 text-center mt-5">Your queue number have been called, click proceed</div>
<div>
<div class="form-group col-md-12 mt-5">
<button class="btn form-control font-weight-bold mainButton" onclick="playAudio(); getTicketId(cVisitId, branchId);">Proceed</button>
</div>
</div>
</div>
<audio id="myAudio" style="display: none;">
<source src="sound/220.wav" type="audio/wav">
</audio>
</div>
<div class="footer mt-auto py-3 float-right">
<img src="./REL Queue_files/logo.svg" alt="IKEA" title="IKEA">
</div>
</div>
<script>
(function (global) {
if (typeof (global) === "undefined") {
throw new Error("window is undefined");
}
var _hash = "!";
var noBackPlease = function () {
global.location.href += "#";
// making sure we have the fruit available for juice (^__^)
global.setTimeout(function () {
global.location.href += "!";
}, 50);
};
global.onhashchange = function () {
if (global.location.hash !== _hash) {
global.location.hash = _hash;
}
};
global.onload = function () {
noBackPlease();
// disables backspace on page except on input fields and textarea..
document.body.onkeydown = function (e) {
var elm = e.target.nodeName.toLowerCase();
if (e.which === 8 && (elm !== 'input' && elm !== 'textarea')) {
e.preventDefault();
}
// stopping event bubbling up the DOM tree..
e.stopPropagation();
};
}
})(window);
</script>
</body></html>