forked from evancohen/smart-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (108 loc) · 4.5 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html ng-app="SmartMirror">
<head>
<title>Smart Mirror</title>
<!-- Libraries -->
<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.0.0/annyang.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular-animate.min.js"></script>
<!-- App -->
<!--<script src="/js/init.js"></script>-->
<script src="js/config.js"></script>
<script src="js/app.js"></script>
<script src="js/annyang-service.js"></script>
<script src="js/weather-service.js"></script>
<script src="js/map-service.js"></script>
<script src="js/hue-service.js"></script>
<script src="js/geolocation-service.js"></script>
<script src="js/controller.js"></script>
<!-- Styles and Resources -->
<link rel="shortcut icon" href="favicon.ico" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,800,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css" />
</head>
<body ng-controller="MirrorCtrl as commands">
<div class="top">
<div class="top-left">
<div class="date grey">{{date | date : 'EEEE, MMMM d yyyy'}}</div>
<div class="time">{{date | date : 'hh:mm a'}}</div>
</div>
<div class="top-right">
<div class="weather">
<div class="weather-today">
<span class="tempreture">{{currentForcast.temperature}}°</span>
</div>
<div class="weather-week-descriptor">{{weeklyForcast.summary}}</div>
<div class="weather-week" ng-repeat="forcast in weeklyForcast.data" ng-if="$index > 0">
<div class="weather-week-day">
<span class="day light-grey">{{forcast.day}}</span>
<span class="tempreture tempreture-min">{{forcast.temperatureMin}}</span>
<span class="tempreture tempreture-max">{{forcast.temperatureMax}}</span>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="middle-center">
<h1>{{complement}}</h1>
<h3 ng-show="!(user.name === undefined)">{{user.name}}</h3>
<div class="listening" ng-show="listening">Ready: {{focus}}</div>
<div class="map-container animate-grow" ng-show="focus == 'map'">
<img class="map animate-grow" ng-src="{{map}}"/>
</div>
</div>
<div class="bottom-center">
<div ng-show="focus != 'commands'">
Say "What can I say?" to see a list of commands...
</div>
<!-- Command list -->
<div class="commands animate-grow" ng-show="focus == 'commands'">
<h2>Availalble Commands</h2>
<dl>
<dt>What can I say?</dt>
<dd>Shows a list of voice commands available to you.</dd>
<dt>Go home</dt>
<dd>Takes you back to the home screen</dd>
<dt>Show me ________</dt>
<dd>Will show you pictures of the requested item.</dd>
<dt>Remind me to ________</dt>
<dd>Add something to the reminders list.</dd>
<dt>Clear reminders</dt>
<dd>Clears out your reminders list.</dd>
<dt>Show map</dt>
<dd>Shows a map of your current city.</dd>
<dt>Show map of ________</dt>
<dd>Shows a map of the given location.</dd>
</dl>
</div>
</div>
<div class="colors animate-grow" ng-show="focus == 'colors'">
<div class="color-block" ng-repeat="color in colors" style="background-color:{{color}}"></div>
</div>
</div>
<!-- Debug Buttons -->
<div class="debug-info"><button ng-click="debug = true">Open Debug</button></div>
<div class="debug-info" ng-show="debug == true">
<button ng-click="focus = (focus == 'map')?'default':'map'">Map</button>
<button ng-click="focus = (focus == 'colors')?'default':'colors'">Colors</button>
<button ng-click="focus = (focus == 'commands')?'default':'commands'">Commands</button>
<button ng-click="debug = false">Close Debug</button>
<!-- Has results -->
<div ng-show="commands.results.length > 0">
<button class="btn btn-default" ng-click="commands.clearResults()">Clear</button>
<hr/>
<ul class="list-group">
<li class="list-group-item" ng-repeat="result in commands.results">
<span class="badge">{{ result.date | date : 'EEE MMM, yyyy hh:mm:ss a' }}</span>
{{ result.content }}
</li>
</ul>
</div>
</div>
<!-- Sleep cover -->
<div ng-show="focus == 'sleep'" class="sleep-cover fade"></div>
</body>
</html>