-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.html
89 lines (81 loc) · 2.69 KB
/
admin.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>YWC16 | Queueing System Admin</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:400,500,700" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/admin.css">
</head>
<body>
<!-- YWC Logo -->
<div class="logo-container">
<a href="./index.html">
<img id="ywc-logo" class="logo" src="./images/logo.svg" alt="">
</a>
</div>
<!-- Remote -->
<center>
<div id="branch">BRANCH NAME</div>
<h1>ON SCREEN: <div id="on-screen">-</div></h1>
<br>
<br>
<!-- Regular Queue -->
<h1>QUEUE</h1>
<input id="current-queue" type="tel" value="0" min="0" max="80">
<br>
<button onclick="modifyQueue(-1)">
<h2> - </h2>
</button>
<button onclick="modifyQueue(1)">
<h2> + </h2>
</button>
<button onclick="publishQueue()">
<h2> PUBLISH </h2>
</button>
<br>
<br>
<br>
<!-- Custom Queue -->
<h1>CUSTOM</h1>
<input id="custom-queue" type="text">
<br>
<button onclick="publishCustomText()">
<h2> PUBLISH </h2>
</button>
</center>
<!-- QR Code -->
<div class="logo-container">
<h1 id="check-queue-text">ตรวจสอบคิวได้ที่นี่</h1>
<img src="./images/qrcode.png" alt="qrcode">
<br>
<a href="https://kykungz.github.io/ywc-queue">
https://kykungz.github.io/ywc-queue
</a>
</div>
<footer>
YWC Queueing System @2018 Created by <a href="https://github.com/kykungz">Kongpon C.</a>
</footer>
<script src="https://www.gstatic.com/firebasejs/5.5.8/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.8/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.8/firebase-auth.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: 'AIzaSyANpRPym9opPpLf76fAN0pntLB9M3fOTtQ',
authDomain: 'hackathon-ca2a6.firebaseapp.com',
databaseURL: 'https://hackathon-ca2a6.firebaseio.com',
projectId: 'hackathon-ca2a6',
storageBucket: 'hackathon-ca2a6.appspot.com',
messagingSenderId: '818453846503'
}
firebase.initializeApp(config)
</script>
<script src="./lib/hammer.js"></script>
<script src="./js/getPrefix.js"></script>
<script src="./js/admin.js"></script>
<script src="./js/login.js"></script>
</body>
</html>