-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
out.html
58 lines (56 loc) · 1.67 KB
/
out.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Entry Management Software</title>
<link rel="stylesheet" href="./stylesheet/form.css" />
</head>
<body
style="overflow: hidden;background: radial-gradient(rgba(51, 210, 57, 1),rgba(49, 128, 23, 1));"
>
<button
id="back"
onclick="linker('app')"
class="green"
title="Back to Main Page"
>
←
</button>
<div id="header" class="green">Check Out?</div>
<select id="visits" style="margin-top:20%"
><br /><br />
<option selected></option> </select
><br /><br />
<center>
<button
type="button"
onclick="remove('visits')"
style="margin-top: 10%;"
class="green"
>
Check Out
</button>
</center>
<script>
const { remote } = require("electron");
firebase = remote.getGlobal("firey");
let firebaseRef = firebase.database().ref("visits");
firebaseRef.once("value").then(visitors_list => {
if (visitors_list.exists()) {
visitors_list.forEach(visitor => {
let { time_out, name } = visitor.val();
//if visitor still in session then time_out is -1
if (time_out == -1) {
let temp = document.createElement("option");
temp.innerText = name;
temp.id = visitor.key;
document.getElementById("visits").appendChild(temp);
}
});
}
});
</script>
<!-- to send msg -->
<script src="./scripts/messaging.js"></script>
<script src="./scripts/display.js"></script>
</body>
</html>