-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
262 lines (253 loc) · 6.53 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
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
<!DOCTYPE html>
<html>
<head>
<title>Project Tracker</title>
<script src="libs/d3.v3.min.js"></script>
<link rel="stylesheet" href="assets/normalize.css">
<link rel="stylesheet" href="assets/foundation.min.css">
<meta charset="utf-8">
<link rel="shortcut icon" href="https://raw.githubusercontent.com/auremoser/pirateplotr/gh-pages/assets/ushahidi.png">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<style>
html,body {
padding-top: 50px;
}
html,body,h1,h2,h4,h6,li,a {
font-family: "Proxima Nova",Helvetica,Arial,sans-serif !important;
}
h4 {
float: left;
width: 200px;
text-align: right;
padding-right: 10px;
}
.header{
margin-bottom: 20px;
}
.button-block.last{
margin-bottom: 20px;
}
.axis path,
.axis line {
fill: none;
stroke: none;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 11px;
}
.bar{
background-color:#fc0;
height: 20px;
margin-bottom: 10px;
-webkit-transition: background-color .2s;
}
.bar-wrapper {
width: 100%;
position: absolute;
}
.bar-wrapper:hover .bar {
opacity: .75;
-moz-opacity: .75;
-webkit-opacity: .75;
}
.bar-wrapper:hover .bar-name {
text-decoration: underline;
}
.bar-name {
font-size: 11px;
font-weight: 300;
position: absolute;
left: 0;
padding-top: 4px;
width: 120px;
}
.bar-name:hover {
cursor: default;
}
#svg-canvas {
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
}
#gantt-bar-container {
position:absolute;
top:30px;
bottom:0;
left:0;
right:0;
padding-top:30px
}
#legend {
width: 320px;
position: fixed;
top: 10px;
right: 30px;
padding: 5px;
padding-bottom: 0px;
z-index:9999999;
background: rgba(250, 250, 250, .5);
}
#legend-2{
width: 420px;
position: fixed;
top: 77px;
right: 30px;
padding: 5px;
padding-bottom: 0px;
z-index:9999999;
background: rgba(250, 250, 250, .5);
}
.legend-style .legend-title {
text-align:left;
margin-bottom: 3px;
font-family: "Proxima Nova",Helvetica,Arial,sans-serif !important;
font-weight: bold;
font-size: 90%;
}
.legend-style .legend-scale ul {
margin: 0;
padding: 0;
float: left;
list-style: none;
}
.legend-style .legend-scale ul li {
display: block;
float: left;
width: 50px;
margin-bottom: 6px;
text-align: center;
font-size: 75%;
list-style: none;
}
.legend-style ul.legend-labels li span {
display: block;
float: left;
height: 15px;
width: 50px;
}
.legend-style a {
color: #777;
}
#tooltip {
display: none;
position: absolute;
margin: 25px 16px;
width: 200px;
padding: 10px;
background-color: white;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
pointer-events: none;
z-index: 10;
}
#tooltip p {
margin: 0;
font-family: sans-serif;
font-size: 12px;
line-height: 16px;
}
.todaymarker {
background-color: #c00;
padding: 2px 6px;
font-family: "Proxima Nova",Helvetica,Arial,sans-serif !important;
font-size: 12px;
color: #fff;
}
.milestone {
background-color: #636363;
padding: 2px 6px;
font-family:"Proxima Nova",Helvetica,Arial,sans-serif !important;
font-size: 12px;
color: #fff;
}
</style>
</head>
<body>
<div id="button-container" class="row header">
<!-- TITLE BAR -->
<header class="large-6 columns hide-for-small-only">
<h1><b>ADVOCACY - PROJECT TRACKER</b></h1>
</header>
<hr>
<!-- SORTER/FILTER/COLOR BUTTONS -->
<div class="button-block large-5 columns">
<h6>SORT BY</h6>
<ul id="sorter" class="button-group radius">
<li class="button tiny alert" data-sorter="deliverable">Deliverable</li>
<li class="button tiny alert" data-sorter="start_date">Start date</li>
<li class="button tiny alert" data-sorter="end_date">End date</li>
<li class="button tiny alert" data-sorter="team">Team</li>
</ul>
</div>
<div class="button-block large-4 columns">
<h6>FILTER BY</h6>
<ul id="filter" class="button-group radius">
<li class="button tiny alert" data-filter="">All</li>
<li class="button tiny alert" data-filter="core">Core</li>
<li class="button tiny alert" data-filter="external">External</li>
<li class="button tiny alert" data-filter="ops">Ops</li>
</ul>
</div>
<div class="button-block last large-3 columns">
<h6>COLOR BY</h6>
<ul id="color" class="button-group radius">
<li class="button tiny alert" data-color="all">All</li>
<li class="button tiny alert" data-color="priority">Priority</li>
<li class="button tiny alert" data-color="team">Team</li>
</ul>
</div>
<hr>
</div>
<!-- LEGEND - PRIORITY -->
<div id="legend" class="legend-style">
<div class="legend-title">Priority Scale</div>
<div class="legend-scale">
<ul class="legend-labels">
<li><span style="background:#ffffb2;"></span>Low</li>
<li><span style="background:#fed976;"></span></li>
<li><span style="background:#feb24c;"></span></li>
<li><span style="background:#fd8d3c;"></span></li>
<li><span style="background:#f03b20;"></span></li>
<li><span style="background:#bd0026;"></span>High</li>
</ul>
</div>
</div>
<!-- LEGEND - TEAM -->
<div id="legend-2" class="legend-style">
<div class="legend-title">Teams 2014</div>
<div class="legend-scale">
<ul class="legend-labels">
<li><span style="background:#d53e4f;"></span>BRCK</li>
<li><span style="background:#f46d43;"></span>Crisis Net</li>
<li><span style="background:#fdae61;"></span>Crowd Map</li>
<li><span style="background:#fee08b;"></span>Ex. Projects</li>
<li><span style="background:#ffffbf;"></span>MAVC</li>
<li><span style="background:#abdda4;"></span>Ops</li>
<li><span style="background:#66c2a5;"></span>RRI</li>
<li><span style="background:#3288bd;"></span>V3</li>
</ul>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div id="chart-canvas" style="position:relative">
<div id="svg-canvas"></div>
<div id="gantt-bar-container"></div>
</div>
<!-- TOOLTIPS -->
<div id="tooltip"></div>
</div>
</div>
<script src="plotr.js"></script>
</body>
</html>
<!--special thx to mhkeller (homg dates in d3), and to aubergene (D3.edu)-->
<!--auremoser-->