-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (83 loc) · 2.91 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
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!--Windowtron 2.0-->
<!--CMU Robotics Club-->
<!--Adam Zeloof-->
<html>
<head>
<title>Windowtron 2.0</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Raleway">
<script type="text/javascript">
var windowView = new Image();
windowView.src = "http://www.contrib.andrew.cmu.edu/~ar99/weather/weather.jpg";
function updateWindowView()
{
if(windowView.complete) {
wc = document.getElementById("webcam");
wc.src = windowView.src;
windowView.src = "http://www.contrib.andrew.cmu.edu/~ar99/weather/weather.jpg?t=" + new Date().getTime();
}
setTimeout(updateWindowView, 1000);
}
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
m = checkTime(m);
document.getElementById('clock').innerHTML =
"<h2>" + h + ":" + m + "</h2>";
var t = setTimeout(startTime, 1000);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
function refresh() {
location.reload();
}
function init() {
startTime();
setTimeout(refresh,3600000);
}
</script>
</head>
<body onload="init()">
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<div class="row">
<h1>Carnegie Mellon University Robotics Club</h1>
</div>
<div class="row">
<img id="webcam">
<script type="text/javascript">
updateWindowView()
</script>
</div>
<div class="row" id='weather'>
<iframe id="forecast_embed" type="text/html" frameborder="0" height="100%"
width="100%" src="http://forecast.io/embed/#lat=40.4440&lon=-79.9422&name=Pittsburgh&color=#00aaff&font=Georgia&units=us"></iframe>
</div>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<div id='clock'></div>
</div>
<div class="col-md-6">
<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&mode=AGENDA&height=240&wkst=1&bgcolor=%23333333&src=85bf0h78fidsgkkgmkktrqasm8%40group.calendar.google.com&color=%23A32929&ctz=America%2FNew_York"
style="border-width:0" width="100%" height="240px;" frameborder="0" scrolling="no" id="cal"></iframe>
</div>
</div>
<div class="row">
<iframe src="http://pitlivebus.com/" id="bus"></iframe>
</div>
</div>
</div>
</div>
</body>
</html>