-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojector-news.html
100 lines (86 loc) · 5.29 KB
/
projector-news.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
<!doctype html>
<html lang="en" ng-app="huedisplay" ng-controller="AppCtrl">
<head>
<meta charset="utf-8">
<title>SmartHome Projector</title>
<link href="https://fonts.googleapis.com/css?family=Catamaran:700,400,300" rel="stylesheet">
<link rel="stylesheet" href="css/owfont-regular.min.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/lights.css">
<link rel="stylesheet" href="css/tv.css">
<link rel="stylesheet" href="css/circle.css">
<link rel="stylesheet" href="css/ipad.css" media="(min-width: 1024px)">
<link rel="stylesheet" href="css/overwrites.css">
<link rel="stylesheet" href="css/projector-news.css">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular-animate.js"></script>
<!-- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular-touch.js"></script> -->
<script src="js/config.js"></script>
<script src="js/global-functions.js"></script>
<script src="js/app-projector-news.js"></script>
<script src="js/time.controller.js"></script>
<script src="js/news.controller.js"></script>
<script src="js/netatmo.controller.js"></script>
<!-- <script src="js/overview.controller.js"></script> -->
<!-- <script src="vendor/angular-ui-switch.min.js"></script> -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/pe-icon-7-stroke.css">
<!-- Optional - Adds useful class to manipulate icon font display -->
<link rel="stylesheet" href="css/helper.css">
<style>
html, body {
cursor: none;
overflow: hidden;
}
/* div#outerDiv {
transform: scaleX(-1);
transform-origin: center center;
} */
</style>
</head>
<body ng-style="bodyStyle" ng-keydown="handleKeyDown($event)">
<div id="outerDiv">
<div id="news" ng-controller="NewsCtrl">
<img ng-src="{{image}}" />
<div class="headline">{{title}}</div>
<div class="top"></div>
</div>
<div id="time" ng-controller="TimeCtrl" ng-show="state == 0" class="funky-show-hide">
<div class="clock blend-show-hide top-right" ng-show="substate == 0">{{time | date:'HH:mm'}}</div>
<div class="date blend-show-hide top-right" ng-show="substate == 1">{{time | date:'dd.MM.yyyy'}}</div></div>
<div id="netatmo" ng-controller="NetatmoCtrl">
<div class="funky-show-hide slide" ng-show="state == 1">
<div class="description blend-show-hide top-left" ng-show="state == 1">Innen</div>
<div id="inside" class="tempView">
<div class="temp blend-show-hide top-right" ng-show="substate == 2"><span ng-bind-html="inside.Temperature | number:1 | smallDecimal | trust"></span><span class="grad">°C</span><span class="trend" ng-class="{'pe-7s-angle-up':inside.temp_trend=='up','pe-7s-angle-down':inside.temp_trend=='down','pe-7s-angle-right':inside.temp_trend=='stable'}"></span></div>
<div class="co2 subvalue blend-show-hide top-right" ng-show="substate == 3">{{inside.CO2 | number:0}}<span class="grad">ppm</span></div>
<div class="humidity subvalue blend-show-hide top-right" ng-show="substate == 4">{{inside.Humidity | number:0}}<span class="grad">%</span></div>
</div>
</div>
<div class="funky-show-hide slide" ng-show="state == 2">
<div class="description blend-show-hide top-left" ng-show="state == 2">Außen</div>
<div id="outside top-left" class="tempView">
<div class="temp blend-show-hide top-right" ng-show="substate == 5"><span ng-bind-html="outside.Temperature | number:1 | smallDecimal | trust"></span><span class="grad">°C</span><span class="trend" ng-class="{'pe-7s-angle-up':outside.temp_trend=='up','pe-7s-angle-down':outside.temp_trend=='down','pe-7s-angle-right':outside.temp_trend=='stable'}"></span></div>
<div class="pressure subvalue blend-show-hide top-right" ng-show="substate == 6">{{inside.Pressure | number:0}}<span class="grad">mbar</span></div>
<div class="humidity subvalue blend-show-hide top-right" ng-show="substate == 7">{{outside.Humidity | number:0}}<span class="grad">%</span></div>
</div>
</div>
<div class="blend-show-hide slide" ng-show="state == 3">
<div class="weather"><i class="owf" ng-class="weatherIcon"></i></div>
</div>
<div class="funky-show-hide slide" ng-show="state == 4">
<div class="forecast clearfix">
<div class="day blend-show-hide" ng-show="substate == $index+9" ng-class="'day'+$index" ng-repeat="day in forecast | limitTo:7">
<div>{{day.dt*1000 | date:'EEE, dd.MM.' | dayTranslate }}</div>
<!-- <div>{{day.dt*1000 | date:'dd.MM.' }}</div> -->
<div class="icon"><i class="owf" ng-class="'owf-'+day.weather[0].id"></i></div>
<div class="temp">{{day.temp.day | number:0 }}°</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>