-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht1-commute-mode.html
More file actions
190 lines (163 loc) · 7.77 KB
/
t1-commute-mode.html
File metadata and controls
190 lines (163 loc) · 7.77 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
<!DOCTYPE html>
<html>
<head>
<title>T1: Commute Mode</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
--> <link href="css/app.css" rel="stylesheet" media="screen">
<!--<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />-->
<link href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.common.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.default.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.dataviz.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.dataviz.default.min.css" rel="stylesheet" />
<!-- <link type="text/css" rel="stylesheet" href="https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css" media="all" />
--> <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/3.13/themes/css/cartodb.css" />
<style type="text/css">
#map {
height: 300px;
width: 500px;
}
</style>
</head>
<body>
<div id="T1-T2-A + Data"><div style="padding-left:10px;padding-bottom:10px;padding-top:10px;"><div id="countySelect"> </div></div><div id="areaChart_T1-T2-A" style="width:100%;height:85%"> </div></div>
<div id="T1-T2-B">
<div class="row">
<div class="col-lg-12">
<nav class="navbar navbar-default map-navbar">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
<ul class="nav navbar-nav map-nav">
<li><a id="autoButton" class="btn btn-primary btn-fix button-mode">Drive Alone</a></li>
<li><a id="carpoolButton" class="btn btn-primary btn-fix button-mode">Carpool</a></li>
<li><a id="transitButton" class= "btn btn-primary btn-fix button-mode active"> Transit</a></li>
<li><a id="walkingButton" class="btn btn-primary btn-fix button-mode">Walk</a></li>
<li><a id="bikingButton" class="btn btn-primary btn-fix button-mode">Bike</a></li>
<li><a id="otherButton" class="btn btn-primary btn-fix button-mode">Other</a></li>
<li><a id="teleworkButton" class="btn btn-primary btn-fix button-mode">Telecommute</a></li>
<li><a id="homeButton" class="btn btn-primary btn-fix active going-home"><span class="glyphicon glyphicon-arrow-right"></span> Home</a></li>
<li><a id="workButton" class="btn btn-primary btn-fix going-work"><span class="glyphicon glyphicon-arrow-right"></span> Work</a></li>
</ul>
</div>
</nav>
</div>
</div> <!-- end nav row -->
<div class="row">
<div class="col-md-12" id="mode-map-container">
<div class="row">
<div class="col-sm-8">
<div id="map" class="map"></div>
</div>
<div class="col-sm-4" style="background: #fff;" id="T1-T2-B-sidebar">
<div id="T1-T2-B-chart-wrapper">
<div id="T1-T2-B-chart2">
<div id="T1-T2-B-chart3">
<h4>Top Cities for Taking Transit</h4>
<div class="row">
<div class="col-sm-6">
<h6>1. San Francisco 24%</h6>
<h6>2. Berkeley 21%</h6>
<h6>3. Palo Alto 18%</h6>
<h6>4. San Rafael 17%</h6>
<h6>5. Oakland 17%</h6>
</div>
<div class="col-sm-6">
<h6>6. Emeryville 16%</h6>
<h6>7. San Ramon 16%</h6>
<h6>8. South San Francisco 15%</h6>
<h6>9. Alameda 15%</h6>
<h6>10. Walnut Creek 14%</h6>
</div>
</div>
</div>
</div>
<p id="select-location-prompt">Select a location on the map for more information.</p>
<div id="T1-T2-B-chart" style="height: 300px; display: none;"></div>
</div>
</div>
</div> <!-- end map row -->
</div>
</div>
<div class="row">
<div class="col-sm-12">
<p>
<a href="#" class="make-map-fullscreen">Increase map size</a>
<a href="#" class="reduce-map-size" style="display:none">Reduce map size</a>
</p>
</div>
</div><!-- end zoom in row -->
</div>
<script type="text/template" id="tract-template">
#t3t4tractdata {
[zoom >= 12] {
<% _.each(range, function(value, i) { %>
['<%= field %>' > <%= value %>] {
polygon-fill: <%= colors[i] %>;
polygon-opacity: 0.8;
line-width: 0.5;
line-color: #fff;
}
<% }); %>
}
}
</script>
<script type="text/template" id="city-template">
<%= selector %> {
[zoom < <%= maxzoom %>] {
<% _.each(range, function(value, i) { %>
['<%= field %>' > <%= value %>] {
polygon-fill: <%= colors[i] %>;
polygon-opacity: 0.8;
line-width: 0.5;
line-color: #fff;
}
<% }); %>
}
}
</script>
<script>
var drivealone;
var geojson;
var citydata;
var citysearchdata = [];
var countysearchdata = [];
var layersymbols;
var geocodelayer;
var citycombo;
var cityinfo;
</script>
<pre id="dump">
</pre>
<div class="row"><div id="T1-T2-C"><div id="T1-T2-C-chart" style="width:100%;height:85%"> </div></div></div>
<!-- libraries -->
<script src="http://code.jquery.com/jquery.js"></script>
<!--<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>-->
<!--<script type="text/javascript" src="https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js"></script>-->
<script src="http://libs.cartocdn.com/cartodb.js/v3/3.13/cartodb.js"></script>
<script src="http://cdn-geoweb.s3.amazonaws.com/esri-leaflet/1.0.0-rc.3/esri-leaflet.js"></script>
<script src="http://cdn.kendostatic.com/2014.1.528/js/kendo.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.5.0/lodash.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/2.9.13/bluebird.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<!-- From MTC server -->
<script src="http://dev-mtc-vital-signs.pantheon.io/sites/all/themes/vitalsigns/js/geocities.js"></script>
<script src="http://dev-mtc-vital-signs.pantheon.io/sites/all/themes/vitalsigns/js/geocounties.js"></script>
<script src="http://dev-mtc-vital-signs.pantheon.io/sites/all/themes/vitalsigns/js/colors.js"></script>
<script src="http://dev-mtc-vital-signs.pantheon.io/sites/all/themes/vitalsigns/js/science.v1.min.js"></script>
<script src="http://dev-mtc-vital-signs.pantheon.io/sites/all/themes/vitalsigns/js/select2.min.js"></script>
<link type="text/css" rel="stylesheet" href="http://dev-mtc-vital-signs.pantheon.io/sites/all/themes/vitalsigns/stylesheets/select2.css" media="all" />
<script src="js/viz/t1loader.js"></script>
<script src="js/viz/tracts.js"></script>
<script src="js/viz/t1t2.js"></script>
<script src="js/viz/t1t2a.js"></script>
<script src="js/viz/t1t2b.js"></script>
<script src="js/viz/t1t2c.js"></script>
</body>
</html>