-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
53 lines (39 loc) · 1.25 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
<!DOCTYPE html>
<html>
<head>
<script>
function startTime()
{
var today=new Date();
var month = today.getMonth();
var date = today.getDate();
var day = today.getDay();
var year = today.getFullYear();
var h= today.getHours();
var m= today.getMinutes();
var s= today.getSeconds();
m = checkTime(m);
s = checkTime(s);
var dayNames = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ];
var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
document.getElementById('date').innerHTML = dayNames[day] + ", " + monthNames[month] + " " + date + " " + year + " - " + h+":"+m+":"+s;
t=setTimeout(function(){startTime()},500);
}
function checkTime(i)
{
if (i<10)
{
i="0" + i;
}
return i;
}
</script>
</head>
<body onload="startTime()">
<title>Chandeep's Raspberry Pi</title>
<h1 align="center">Welcome to Chandeep's Raspberry Pi</h1>
<b><div align="center" id="date"></div></b>
<iframe src="http://10.0.0.15:8000/my_projects/temperature.html" width="100%" height="100" align="center" frameborder="0"></iframe>
<iframe src="http://10.0.0.15:8000/my_projects/outlet.html" width="100%" height="400" align="center" frameborder="0"></iframe>
</body>
</html>