-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
134 lines (114 loc) · 7.43 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<html lang="en" ng-app="Wabby">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Tab - Wabby</title>
<!-- Favicon -->
<link rel="icon" ng-href="{{ '/assets/img/favicon.png' }}">
<link href='https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc.5/angular-material.min.css' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,400italic' rel='stylesheet' type='text/css'>
<link href='/assets/css/style.css' rel='stylesheet' type='text/css'>
<link href='/assets/css/fonts.css' rel='stylesheet' type='text/css'>
<!-- Angular -->
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js' type='text/javascript'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular-route.min.js' type='text/javascript'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular-animate.min.js' type='text/javascript'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular-aria.min.js' type='text/javascript'></script>
<!-- Angular Material -->
<script src='https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc.5/angular-material.min.js' type='text/javascript'></script>
<!-- Moment -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js' type='text/javascript'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.4/moment-timezone.min.js' type='text/javascript'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular-moment/1.0.0-beta.6/angular-moment.min.js' type='text/javascript'></script>
<!-- Angular Cache -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular-cache/4.6.0/angular-cache.min.js' type='text/javascript'></script>
<script src='/js/app.js' type='text/javascript'></script>
<script src='/js/config.js' type='text/javascript'></script>
<script src='/js/preloader.js' type='text/javascript'></script>
<!-- Controller -->
<script src='/js/main.controller.js' type='text/javascript'></script>
<!-- Services -->
<script src='/js/forecast.service.js' type='text/javascript'></script>
<script src='/js/unsplash.service.js' type='text/javascript'></script>
</head>
<body ng-controller="MainController" layout="column" ng-cloak>
<md-content layout="row" flex="100" ng-if="image === null">
<div layout="column" flex="100" layout-align="center center">
<img ng-src="{{ '/assets/img/wabby.png' }}" width="75" height="75">
</div>
</md-content>
<md-content layout="row" flex="100" ng-if="image !== null">
<div id="image-container" layout="column" flex="60" ng-style="{'background':'transparent url(' + image + ') no-repeat', 'background-size': 'cover'}"></div>
<div layout="column" flex="40">
<!-- City, country, date and hour -->
<div layout="row" flex="20" layout-align="center center" class="mt-20">
<div layout="column" flex="90" layout-align="center center">
<div>
<h2 ng-class="color" ng-bind="greetings"></h2>
</div>
</div>
</div>
<!-- Temperature and icon -->
<div layout="row" flex="50" layout-align="center center">
<div layout="column" flex="90">
<div layout="row" layout-align="start center">
<div layout="column" flex="35" layout-align="start start">
<div>
<h1 ng-class="color">
<span ng-bind="(currently.temperature | number:0)"></span>
<span class="degree">°</span>
</h1>
</div>
</div>
<div layout="column" flex="45" layout-align="start start">
<div class="large-icon">
<img class="large-icon" ng-src="{{ '/assets/img/' + color + '/' + currently.icon + '.svg' }}">
</div>
</div>
<div layout="column" flex="20" layout-align="start start">
<div layout="row">
<div>
<img class="small-icon vertical-center" ng-src="{{ '/assets/img/' + color + '/umbrellas.svg' }}"> <span class="vertical-center" ng-bind="(currently.precipProbability * 100 | number:0) + '%'"></span>
</div>
</div>
<div layout="row" class="mt-20 mb-20">
<div>
<img class="small-icon vertical-center" ng-src="{{ '/assets/img/' + color + '/windsock.svg' }}"> <span class="vertical-center" ng-bind="(currently.windSpeed * 18 / 5 | number:0) + ' km/h'"></span>
</div>
</div>
<div layout="row">
<div>
<img class="small-icon vertical-center" ng-src="{{ '/assets/img/' + color + '/cloudy.svg' }}"> <span class="vertical-center" ng-bind="(currently.cloudCover * 100 | number:0) + '%'"></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Forecast -->
<div layout="row" flex="30" layout-align="center center">
<div layout="column" flex="90">
<div layout="row" flex="100" layout-align="start center">
<div layout="column" flex layout-align="center center" ng-repeat="daily in forecast.data" ng-if="$index < 5">
<div>
<h3 ng-bind="moment(daily.time, 'X').format('ddd')"></h3>
</div>
<div>
<img class="medium-icon" ng-src="{{ '/assets/img/' + color + '/' + daily.icon + '.svg' }}">
</div>
<div>
<h3>
<span ng-bind="(daily.temperatureMin | number:0) + '° / '" class="text-muted"></span>
<span ng-bind="(daily.temperatureMax | number:0) + '°'"></span>
</h3>
</div>
</div>
</div>
</div>
</div>
</div>
</md-content>
</body>
</html>