This repository was archived by the owner on Apr 11, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.htm
More file actions
274 lines (262 loc) · 10.4 KB
/
index.htm
File metadata and controls
274 lines (262 loc) · 10.4 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html ng-app="hereathelp">
<head>
<meta charset="utf-8">
<title ng-bind="'APP_ID' | translate">Here@Help</title>
<!-- Core styles -->
<link rel="stylesheet" type="text/css" href="lib/style/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="lib/style/font-awesome/css/font-awesome.min.css">
<!-- Helper libs -->
<script type="text/javascript" src="lib/script/underscore/underscore-min.js"></script>
<script type="text/javascript" src="lib/script/angular/angular.min.js"></script>
<!-- UI scripts -->
<script type="text/javascript" src="lib/script/angular/ui-bootstrap-tpls-0.11.0.min.js"></script>
<script type="text/javascript" src="lib/script/angular/angular-ui-router/angular-ui-router.min.js"></script>
<script type="text/javascript" src="lib/script/angular/angular-translate/angular-translate.min.js"></script>
<!-- Map scripts -->
<link rel="stylesheet" type="text/css" href="lib/script/leaflet/leaflet.css">
<script type="text/javascript" src="lib/script/leaflet/leaflet.js"></script>
<style type="text/css">
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: 100%;
padding-top: 70px;
padding-bottom: 8px;
}
.navbar-brand .app-logo {
position: relative;
bottom: 25%;
max-width: 144px;
}
#dashboard-map {
height: 400px;
}
.area-map {
height: 400px;
}
</style>
</head>
<body>
<header class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar"
ng-click="navbarCollapsed = !navbarCollapsed">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" ui-sref="items" ng-click="hideItem()">
<img class="app-logo" src="app/images/Here@Help%20alt%20monochrome.png"
alt="{{ 'APP_ID' | translate }}">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar" collapse="!navbarCollapsed">
<ul class="nav navbar-nav">
<li ng-class="isState('dashboard') ? 'active' : ''"><a ui-sref="dashboard" ng-click="navbarCollapsed = false">Dashboard</a>
</li>
<li ng-class="isState('items') ? 'active' : ''"><a ui-sref="items" ng-click="navbarCollapsed = false">Stream</a>
</li>
</ul>
<form class="navbar-form navbar-left" role="search" ng-if="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</div>
</header>
<div style="height: 100%">
<div style="height: 100%;" class="container-fluid" ng-hide="!isState('items')">
<div class="row hidden-xs " style="height: 100%;">
<div class="col-sm-6" style="height: 100%; overflow-y: auto;">
<div class="panel panel-default" ng-repeat="item in items">
<div class="panel-heading">
Icons
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-3">
Disaster
</div>
<div class="col-xs-9 text-right">
<time ng-bind="item.created_at"></time>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<h2><a href="" ng-click="showItem(item.id)" ng-bind="item.location.nameString"></a></h2>
</div>
<div class="col-xs-6 text-right">
Alive: {{ item.est_alive }} | Dead: {{ item.est_dead }}
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6" style="height: 100%; overflow-y: auto;" ng-hide="currentItem == null">
<div>
<div>
<div class="row">
<div class="col-xs-3">
Disaster
</div>
<div class="col-xs-9 text-right">
<time ng-bind="currentItem.created_at"></time>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<h2 ng-bind="currentItem.location.nameString"></h2>
</div>
<div class="col-xs-6 text-right">
Alive: {{ currentItem.est_alive }} | Dead: {{ currentItem.est_dead }}
</div>
</div>
</div>
<tabset justified="false" type="pills">
<tab heading="Area">
<div id="area-map" class="area-map"></div>
</tab>
<tab heading="Needs">
<tabset justified="false">
<tab ng-repeat="needCat1 in currentItem.needs">
<tab-heading ng-if="needCat1.value == 1 || needCat1.children.length > 0">
{{ needCat1.title }}
</tab-heading>
<ul>
<li ng-repeat="needCat2 in needCat1.provision" ng-if="needCat2.value == 1 || needCat2.children.length > 0">
<h2 ng-bind="needCat2.name"></h2>
<ul ng-if="needCat2.children !== undefined">
<li ng-repeat="needCat3 in needCat2.children" ng-if="needCat3.value == 1 || needCat3.children.length > 0">
<h3 ng-bind="needCat3.name"></h3>
<ul ng-if="needCat3.children !== undefined">
<li ng-repeat="needCat4 in needCat3.children" ng-if="needCat4.value == 1 || needCat4.children.length > 0">
<h4 ng-bind="needCat4.name"></h4>
<ul ng-if="needCat4.children !== undefined">
<li ng-repeat="needCat5 in needCat4.children" ng-if="needCat5.value == 1 || needCat5.children.length > 0">
<h5 ng-bind="needCat5.name"></h5>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</tab>
</tabset>
</tab>
</tabset>
</div>
</div>
</div>
<div class="row visible-xs">
<div class="col-xs-12" ng-hide="currentItem != null">
<div class="panel panel-default" ng-repeat="item in items">
<div class="panel-heading">
Icons
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-3">
Disaster
</div>
<div class="col-xs-9 text-right">
<time ng-bind="item.created_at"></time>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<h2><a href="" ng-click="showItem(item.id)" ng-bind="item.location.nameString"></a></h2>
</div>
<div class="col-xs-6 text-right">
Alive: {{ item.est_alive }} | Dead: {{ item.est_dead }}
</div>
</div>
</div>
</div>
</div>
<div class="col-xs-12" ng-hide="currentItem == null">
<div>
<div>
<div class="row">
<div class="col-xs-3">
Disaster
</div>
<div class="col-xs-9 text-right">
<time ng-bind="currentItem.created_at"></time>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<h2 ng-bind="currentItem.location.nameString"></h2>
</div>
<div class="col-xs-6 text-right">
Alive: {{ currentItem.est_alive }} | Dead: {{ currentItem.est_dead }}
</div>
</div>
</div>
<tabset justified="false" type="pills">
<tab heading="Area">
<div id="area-map-mobile" class="area-map"></div>
</tab>
<tab heading="Needs">
<tabset justified="false">
<tab ng-repeat="needCat1 in currentItem.needs">
<tab-heading ng-if="needCat1.value == 1 || needCat1.children.length > 0">
{{ needCat1.title }}
</tab-heading>
<ul>
<li ng-repeat="needCat2 in needCat1.provision" ng-if="needCat2.value == 1 || needCat2.children.length > 0">
<h2 ng-bind="needCat2.name"></h2>
<ul ng-if="needCat2.children !== undefined">
<li ng-repeat="needCat3 in needCat2.children" ng-if="needCat3.value == 1 || needCat3.children.length > 0">
<h3 ng-bind="needCat3.name"></h3>
<ul ng-if="needCat3.children !== undefined">
<li ng-repeat="needCat4 in needCat3.children" ng-if="needCat4.value == 1 || needCat4.children.length > 0">
<h4 ng-bind="needCat4.name"></h4>
<ul ng-if="needCat4.children !== undefined">
<li ng-repeat="needCat5 in needCat4.children" ng-if="needCat5.value == 1 || needCat5.children.length > 0">
<h5 ng-bind="needCat5.name"></h5>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</tab>
</tabset>
</tab>
</tabset>
</div>
</div>
</div>
</div>
<div class="container-fluid" ng-hide="!isState('dashboard')">
<div class="row">
<div class="col-xs-12">
<div class="jumbotron">
<h1>{{ items.length }}
<small>places needing assistance</small>
</h1>
<div id="dashboard-map"></div>
</div>
</div>
</div>
</div>
</div>
<!-- App scripts -->
<script type="text/javascript" src="app/script/services.js"></script>
<script type="text/javascript" src="app/script/controllers.js"></script>
<script type="text/javascript" src="app/script/app.js"></script>
</body>
</html>