-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
48 lines (48 loc) · 1.26 KB
/
index.htm
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
<!doctype HTML>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<title>ESP8266 temp server</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="icon" href="data:;base64,iVBORw0KGgo="> <!--prevent favicon requests-->
<style>
body{
margin:0 auto;
text-align:center;
font-variant: small-caps;
font-size:20px;
font-family: monospace;
}
#linkBar{
background-color:aqua;
margin:0;
}
#data{
line-height: 300px;
font-size: 250px;
margin: auto;
overflow: hidden;
background-color: aqua;
}
</style>
</head>
<body>
<p id="linkBar"><a class="systemLink" href="logs">LOGS</a></p>
<h1 style="text-align:center;">ESP8266-temp-server</h1>
<script>
function loaded_log(str){
var now = new Date();
myVar = now.toString();
console.log(myVar," ",str);
}
</script>
<div id="data"><p style="font-size:25px;">Loading...</p></div>
<p style="font-size:15px;"><a href="https://github.com/CelliesProjects/ESP8266-temp-server">ESP8266-temp-server on GitHub</a></p>
<script type ="text/javascript">
$(document).ready(function(){
$("#data").load("/data");
nextInterval=setInterval(function(){$("#data").load("/data");loaded_log("Getting sensor value via http.");},750);
});
</script>
</body>
</html>