-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
203 lines (188 loc) · 9.57 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Tasking Manager Dashboard</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width' />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-datetimepicker.css" />
<link rel="stylesheet" href="src/leaflet/leaflet.css" />
<link rel="stylesheet" href="src/leaflet.label/leaflet.label.css" />
<link rel="stylesheet" type="text/css" href="src/dc/dc.css">
<link rel="stylesheet" href="css/main_new.css" />
</head>
<body onload="init();">
<!-- barre en haut de l'écran -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<!-- bouton qui n'apparaît que sur petit écran quand le menu est collapsed -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#tab-controls" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- titre de la barre de navigation -->
<a href="http://www.cartong.org/" target="_blank" class="navbar-left hidden-xs"><img src="images/cartong_logo.png" alt="CartONG logo"></a>
<a href="http://www.missingmaps.org/" target="_blank" class="navbar-left hidden-xs"><img src="images/mm_logo.png" alt="Missing Maps logo"></a>
<!-- deux versions selon la taille de l'écran -->
<span class="navbar-brand visible-xs">Mapathon Dashboard</span>
<span class="navbar-brand hidden-xs">Mapathon Task Manager Dashboard</span>
</div>
<a href="https://github.com/CartONG-staff/mapathon_dashboard" class="hidden-xs btn btn-success btn-xs" id="contribute" target="_blank">Contribute on GitHub</a>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-4 col-sm-push-8 underlined-sm">
<div id="tab-controls" class="navbar-collapse collapse" aria-expanded="false">
<ul class="nav navbar-nav">
<li class="visible-xs"><a href="https://github.com/CartONG-staff/mapathon_dashboard"><i>Contribute on GitHub</i></a><hr></li>
<li><a href="#" onClick="openForm(); return false;">Change current task</a></li>
<!-- <li><a href="#" class="js-close-form">Close task</a></li>
<li><a href="#">Add new task</a></li>
-->
</ul>
</div><!--/.tab-controls -->
</div>
<div class="col-xs-12 col-sm-8 col-sm-pull-4 no-padding">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#tab0"># …</a></li>
<li><a data-toggle="tab" href="#tab1"># …</a></li>
<li><a data-toggle="tab" href="#tab2"># …</a></li>
<li><a data-toggle="tab" href="#tab3"># …</a></li>
</ul>
</div>
</div><!-- /row -->
<div class="row">
<div class="col-xs-12 no-padding tab-content">
<div id="tab0" class="tab-pane fade in active"><!-- Filled by templates #form-template and #task-template -->
<div class="js-dashboard">
<h3>Welcome to the Task Manager Dashboard !</h3>
<p>Please choose a task number and date and you will get all the details below.</p><br/>
</div>
</div>
<div id="tab1" class="tab-pane fade"><!-- Filled by templates #form-template and #task-template --></div>
<div id="tab2" class="tab-pane fade"><!-- Filled by templates #form-template and #task-template --></div>
<div id="tab3" class="tab-pane fade"><!-- Filled by templates #form-template and #task-template --></div>
<!-- TEMPLATES -->
<template id="form-template">
<div class="col-xs-12 underlined-sm js-task-choice">
<div class="row form-group">
<div class="col-xs-2 col-sm-3 bottom-column">
<label class="float-left">Task ID : </label>
<input type="number" class="form-control restricted-width float-left js-tasknumber">
</div>
<div class="col-xs-5 col-sm-3 bottom-column">
<label class="float-left">Start Date: </label>
<div class="input-group restricted-width float-left datetimepicker1">
<input type='text' class="form-control js-startdate" />
<span class="input-group-addon" data-toggle="tooltip" title="Double click for current date and time.">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="col-xs-5 col-sm-3 bottom-column">
<label class="float-left"><input type="checkbox" class="checkbox-inline disabled" value="" onClick="toggleEndDate();"> End Date: <i>(to come)</i></label>
<div class="input-group restricted-width float-left datetimepicker2">
<input type='text' class="form-control js-enddate"/>
<span class="input-group-addon" data-toggle="tooltip" title="Double click for current date and time.">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="col-xs-10 col-sm-3 bottom-column">
<a href="#" class="btn btn-link" onClick="closeForm(); return false;" role="button">✖</a>
<a href="#" class="btn btn-default" onClick="loadDashboard(); return false;"role="button">Go</a>
</div>
</div>
</div>
<script type="text/javascript">dateTimePick();</script>
</template><!-- /#form-template" -->
<template id="task-template">
<div class="js-dashboard">
<div class="col-xs-12 col-sm-5 col-sm-push-7">
<div class="row">
<div class="col-xs-12 js-map"></div>
</div>
<div class="row">
<div class="col-md-12 js-progress_bars">
<h4>Task progression</h4>
<div class="progress">
<div id="validated_bar" class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" style="width:0%">
Validated
</div>
<div id="done_bar" class="progress-bar progress-bar-warning progress-bar-striped active" role="progressbar" style="width:0%">
Done
</div>
</div>
</div>
</div><!-- /row -->
</div><!-- /col -->
<div class="col-xs-12 col-sm-7 col-sm-pull-5">
<div class="row border-green">
<div class="col-xs-12 js-task_title" data-tabname=""></div>
<div class="col-xs-12 js-task_date"></div>
</div><!-- /row -->
<div class="row">
<div class="col-xs-6">
<div class="row">
<div class="col-xs-12 js-buildings_id border-cyan">
<h4 id="nb_buildings"> buildings</h4>
</div>
<div class="col-xs-12 js-landuse_id border-red">
<h4 id="area_landuse"> km² of landuse</h4>
</div>
<div class="col-xs-12 graph_area_class js-graph_area border-red"></div>
</div>
</div>
<div class="col-xs-6 border-orange">
<div class="row">
<div class="col-xs-12 js-highways_id">
<h4 id="km_highways"> km of roads</h4>
</div>
<div class="col-xs-12 js-map_length"></div>
<div class="col-xs-12 js-graph_highways"></div>
</div>
</div>
</div><!-- /row -->
</div><!-- /col -->
</div><!-- /.js-dashboard -->
</template><!-- /#task-template -->
<!-- END TEMPLATES -->
</div><!-- /col -->
</div><!-- /row -->
</div>
<!-- TODO logos class="visible-xs" -->
<!-- Modal -->
<div class="modal fade" id="loading_modal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Please wait...</h1>
</div>
<div class="modal-body">
<div class="progress">
<div id="loading_bar" class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar">Loading...
<span class="sr-only">Loading data</span>
</div>
</div>
</div>
</div>
</div>
</div><!-- /modal -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="src/d3/d3.min.js"></script>
<script src="src/moment.js"></script>
<script src="src/bootstrap-datetimepicker.js"></script>
<script src="src/leaflet/leaflet.js"></script>
<script src="src/osmtogeojson.js"></script>
<script src="src/turf/turf.min.js"></script>
<script src="src/leaflet.label/leaflet.label.js"></script>
<script type="text/javascript" src="src/crossfilter/crossfilter.js"></script>
<script type="text/javascript" src="src/dc/dc.js"></script>
<script src="src/app_new.js"></script>
</body>
</html>