-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
50 lines (49 loc) · 1.88 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
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/infoscreen.css"/>
</head>
<body class="space_body" onload="startTime()">
<div id="wrapper">
<div id="upper">
<div id="doordiv" width=100% height=0px class="dropdown"><span id="username"></span> entered!</div>
<div id="songdiv" width=100% height=0px class="dropdown"><span id="song"></span></div>
</div>
<div id="lower">
<div id="clock_div" width=100% height=100%>
<span id="time"> </span>
</div>
<div class="sensor_div">
<span><img class="sensor_img" src="img/temperature.png"/>
: <span id="temp"></span> °C</span>
</div>
<div class="sensor_div">
<img class="sensor_img" src="img/humidity.png"/>
: <span id="hum"></span> %
</div>
<div class="sensor_div sensor_div_2">
<img class="sensor_img" src="img/pressure.png">
: <span id="pres"></span> hPa
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="js/infoscreen.js"></script>
<script type="text/javascript">
$(document).ready(function () {
// $("#testing").draggable().width("0px").height("0px");
// $("#testing").width("100px").height("100px");
$(".dropdown").hide().height("1.4em").delay(5000);
// $("#mydiv").draggable();
setInterval("getDoorData()", 500);
setInterval("getSongData()", 500);
setInterval("getTempData()", 60 * 1000);
setTimeout("getTempData()", 1000);
setInterval("getHumData()", 60 * 1000);
setTimeout("getHumData()", 1000);
setTimeout("getPresData()", 1500);
setInterval("getPresData()", 60 * 1000);
});
</script>
</body>
</html>