-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (77 loc) · 3.35 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>LAUNDRY ROOM</title>
<link rel="icon" href="img/mena_machine.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/mystyle.css">
<script lang="javascript" src="laundry.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="jumbotron">
<h1>Welcome to the Laundry Room!</h1>
<h2>The laundry problem ends now...</h2>
</div>
<br>
<div class="row">
<div class="col-xs-12" id="machines">
<hr/>
<p style="text-align: center"><b>Washers</b></p>
<div id="Washers"></div>
<center><hr/></center>
<p style="text-align: center"><b>Dryers</b></p>
<div id="Dryers" ></div>
<script>getMachines();</script>
</div>
</div>
<div class="col-xs-6"></div>
</div>
<div class="row">
<div class="activity container-fluid">
<p style="color:white; margin-top: 50px">
<b>Activity Log: </b>
</p>
<div id="#appendInfoHere" class="activity-info" style="margin-top: 75px"></div>
<table class="table table-dark">
<thead>
<tr>
<th scope="col">Machine Name</th>
<th scope="col">Machine Type</th>
<th scope="col">User</th>
<th scope="col">Email</th>
</tr>
</thead>
<tbody id="activityLog"></tbody>
<script>
request = new XMLHttpRequest();
url = "http://169.234.81.18:8000/api/all_machine/Nieblalaundryroom/";
tbl = document.getElementById("activityLog");
request.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var machines = JSON.parse(this.responseText)["machines"];
loadActivityLog(tbl, machines)
}
};
request.open("GET", url, true);
request.send();
</script>
</tbody>
</table>
</div>
</div>
<div class="jumbotron" style="margin-top: 45px">
<h2 class="display-4" style="margin-bottom: 50px">Trouble Managing Your Laundry Machine? </h2>
<h3>Laundry Room allows consumers to track the status of their laundry machines by monitering who's using it, the time left, and allowing communication with other users via email.</h3>
<hr class="my-4">
<h4 >Simply scan the QR Code or select your washer/dryer above. From small homes to broad businesses, Laundry Room is the assistant towards simplifying your life and preventing future passive aggressive fights. Cheers! </h4>
<p class="lead">
</p>
</div>
<footer>
<a href="https://github.com/ChaseC99/LaundryRoom" target="_blank">Source Code</a>
<p>© 2018 Mena's Hackers</p>
</footer>
</body>
</html>