-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (104 loc) · 4.37 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
114
115
116
117
118
<!DOCTYPE html>
<!--
Copyright (c) 2015 Kasra Faghihi. All rights reserved.
(with the exception of
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html ng-app="PersonalWatchfaceApp">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<meta name="description" content="Personal Watchface" />
<title>Personal Watchface</title>
<script src="js/dateformat.js"></script>
<script src="js/xml2json.min.js"></script>
<script src="js/chart.js"></script>
<script src="js/angular.js"></script>
<script src="js/angular-visibility-change.js"></script>
<script src="js/main.js"></script>
<script src="js/news_service.js"></script>
<script src="js/weather_service.js"></script>
<script src="js/hardware_service.js"></script>
<script src="js/notice_controller.js"></script>
<script src="js/normal_mode_controller.js"></script>
<script src="js/sport_mode_controller.js"></script>
<script src="js/counter_mode_controller.js"></script>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/font-awesome.min.css">
</head>
<body>
<div class="screen" id="normalScreen" ng-controller="NormalModeCtrl" ng-init="visible = true" ng-show="visible == true">
<div class="screen-back">
<canvas id="weather_chart" class="graph"></canvas>
</div>
<div class="screen-front">
<div class="date_text" ng-bind="date"></div>
<div class="time_text" ng-bind="time"></div>
<div class="data_text">
<div class="data_item">
</div>
<div class="data_item" ng-style="{'color':batteryColor}">
<i id="battery_icon" ng-class="batteryIconClass"></i><br>
<span ng-bind="battery"></span><span class='small_text'>%</span>
</div>
<div class="data_item">
</div>
</div>
<p class="news_text" ng-bind="newsItem" ng-click="nextNewsItem()"></p>
</div>
<div class="screen-nav">
<div class="right-button" ng-click="nextScreen()"><i class="fa fa-chevron-right"></i></div>
</div>
</div>
<div class="screen" id="sportScreen" ng-controller="SportModeCtrl" ng-show="visible == true">
<div class="screen-back">
<canvas id="sport_chart" class="graph"></canvas>
</div>
<div class="screen-front">
<div class="data_text">
<div class="data_item" ng-style="{'color':heartrateColor}">
<i class="fa fa-heartbeat"></i><br>
<span ng-bind="heartrate"></span><span class='small_text'>bpm</span>
</div>
<div class="data_item" ng-style="{'color':batteryColor}">
<i id="battery_icon" ng-class="batteryIconClass"></i><br>
<span ng-bind="battery"></span><span class='small_text'>%</span>
</div>
<div class="data_item" ng-style="{'color':speedColor}">
<i class="fa fa-tachometer"></i><br>
<span ng-bind="speed"></span><span class='small_text'>km/h</span>
</div>
</div>
<div class="timer_text" ng-style="{'color':timerColor}" ng-click="updateTimerState()" ng-bind="timer"></div>
<div class="sport_toggle_button" ng-click="toggle()">{{toggleName}}</div>
</div>
<div class="screen-nav">
<div class="left-button" ng-click="prevScreen()"><i class="fa fa-chevron-left"></i></div>
<div class="right-button" ng-click="nextScreen()"><i class="fa fa-chevron-right"></i></div>
</div>
</div>
<div class="screen" id="counterScreen" ng-controller="CounterModeCtrl" ng-show="visible == true">
<div class="screen-back">
</div>
<div class="screen-front">
<div class="counter_increase_button" ng-click="count = count + 1">ADD</div>
<div class="counter_reset_button" ng-click="count = 0">{{count}}</div>
<div class="counter_decrease_button" ng-click="count = count - 1">SUB</div>
</div>
<div class="screen-nav">
<div class="left-button" ng-click="prevScreen()"><i class="fa fa-chevron-left"></i></div>
</div>
</div>
<div class="backgroundScreen" id="noticeBackground" ng-controller="NoticeCtrl" ng-init="visible = false" ng-show="visible == true">
<div class="circle"></div>
</div>
</body>
</html>