forked from Montellese/home-smart-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (71 loc) · 2.69 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
<!DOCTYPE html>
<html>
<head>
<title>Home: Smart Mirror</title>
<!-- meta -->
<meta charset="UTF-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<!-- Font -->
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="css/calendar.css" />
<link rel="stylesheet" type="text/css" href="css/datetime.css" />
<link rel="stylesheet" type="text/css" href="css/publictransport.css" />
<link rel="stylesheet" type="text/css" href="css/weather.css" />
<link rel="stylesheet" type="text/css" href="css/weather-icons.min.css">
<!-- JavaScript -->
<script type="text/javascript" src="js/lib/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/lib/moment-with-locales-2.10.6.min.js"></script>
<script src="https://apis.google.com/js/client.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/helper.js"></script>
<script type="text/javascript" src="js/calendar.js"></script>
<script type="text/javascript" src="js/datetime.js"></script>
<script type="text/javascript" src="js/publictransport.js"></script>
<script type="text/javascript" src="js/weather.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// globally set the locale
moment.locale(config.lang);
// load the proper language
$.getScript('lang/' + config.lang + '.js');
// start all widgets
datetime.start();
calendar.start();
weather.start();
publictransport.start();
});
</script>
</head>
<body>
<div class="top hcenter">
<div id="datetime">
<div id="date"></div>
<ul id="time">
<li id="hoursminutes"></li>
<li id="seconds"></li>
</ul>
</div>
<div id="weather-current"></div>
</div>
<div class="vcenter left">
<div id="weather-forecast"></div>
</div>
<div class="vcenter hcenter">
</div>
<div class="vcenter right">
</div>
<div class="bottom left">
<div id="publictransport-stationboard"></div>
</div>
<div class="bottom hcenter">
</div>
<div class="bottom right">
<div id="calendar-authorization" class="widget-heading">
<button id="calendar-authorization-button" onclick="calendar.google.handleAuthClick(event)">Authorize Google Calendar</button>
</div>
<div id="calendar-events"></div>
</div>
</body>
</html>