-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview_2.html
114 lines (109 loc) · 3.78 KB
/
preview_2.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
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://bootswatch.com/amelia/bootstrap.min.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.SummitCountyparks').hide();
$('.CVNPparks').hide();
$('.CuyahogaCountyparks').hide();
$( "#accordion_bottom").accordion({collapsible: true, autoHeight: false});
$.ajax({
url: "http://api.census.gov/data/2010/sf1?get=P0010001&for=state:*&key=c494feb17269e3f3e0bba78162e9d8d260d7c406",
success: function(data) {
$('#map_div').html(data);
}
});
$('.showhide').change(function(){
if($('#' + this.id).is(':checked')) {
$("." + this.id + "parks").show();
} else {
$("." + this.id + "parks").hide();
}
});
});
</script>
<link rel="stylesheet" type="text/css" href="main.css"/>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="//libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
<![endif]-->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
<script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
<script>
<!--
$(document).ready(function() {
var map = L.map('map').setView([41.241667, -81.549722], 12);
L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png", {
attribution: 'Map data © OpenStreetMap contributors'
}).addTo(map);
cartodb.createLayer(map, {
type: 'cartodb',
options: {
table_name: 'census_blocks',
user_name: 'cfsc'
}
}).done(function(layer) {
map.addLayer(layer);
});
cartodb.createLayer(map, {
type: 'cartodb',
options: {
table_name: 'cvnp_trails',
user_name: 'cfsc'
}
}).done(function(layer) {
map.addLayer(layer);
});
});
-->
</script>
</head>
<body>
<div id="header">
<h1>Parkscore</h1>
</div>
<div id="content">
<div id="sidebar">
<div id="accordion_bottom">
<h3>Step One: Select Park System(s)</h3>
<div class="detail">
<input class="showhide" type="checkbox" id="CuyahogaCounty">
Cuyahoga County <br/>
<input class="showhide" type="checkbox" id="CVNP">
CVNP <br/>
<input class="showhide" type="checkbox" id="SummitCounty">
Summit County <br/>
</div>
<h3 style="margin-bottom:0px;">Step Two: Select Park(s)</h3>
<div id="parklist" class="detail" style="margin-top:0px;overflow:scroll;">
<span class="CuyahogaCountyparks"> Cuyahoga Park<br/> </span>
<span class="CVNPparks">CVNP Park<br/> </span>
<span class="SummitCountyparks">Summit County Park<br/></span>
All Parks in Selected Count(ies)y. <br/>
Park<br/>
Park<br/>
Park<br/>
Park<br/>
Park<br/>
</div>
<div style="text-align:center;vertical-align:bottom;"><br/>
<input type="button" value="Check Access By Park(s)">
<div>
<h2 style="margin-bottom:0px;margin-top:0px;">-OR-</h2>
LOG PARAMETERS
</div>
<input type="button" value="Check Access By Address">
</div>
</div>
</div>
<div id="map"></div>
<br style="clear:both"/>
</div>
</body>
</html>