-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (46 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0">
<title>Automatic Waste Sorter</title>
<style>
body {
background-color: #FFFFFF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
font-family: sans-serif;
}
#message {
font-weight: bold;
color: red;
font-size: 18px;
}
</style>
<script>
window.onload = function() {
const source = new EventSource("/message_stream");
source.onmessage = function(event) {
const message = document.getElementById("message");
message.innerHTML = event.data;
};
};
</script>
</head>
<body>
<h1><b>Automatic Waste Sorter</b></h1>
<div class="names-and-repo">
<hr>By: Andrew Takayama, Duy Nguyen, Jeremy Escobar & Spencer Williams</hr>
<a href="https://github.com/jge162/471-SeniorDesign">Our Github Repository</a>
<hr>
</div>
<p id="message"></p>
<img src="{{ url_for('video_feed') }}">
<table border="1" cellpadding="5" cellspacing="0" style="margin-left: auto; margin-right: auto;">
<br> <br>
</body>
</html>