-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsurvey-page-results.html
115 lines (109 loc) · 3.78 KB
/
survey-page-results.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
<!-- <!DOCTYPE html> -->
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Resident Web Use Results</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="main.css" />
<script src="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="//code.jquery.com/jquery-1.11.2.min.js" charset="utf-8"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="turf.min.js"></script>
<script src="regression.js"></script>
<script src="tabletop.js"></script>
<script src="map.js"></script>
<script src="lib.js"></script>
<script src="survey-results.js"></script>
<script src="census-reporter.js"></script>
</head>
<body>
<p id="status">Hold on…</p>
<div class="container">
<div id="survey-map" ></div>
<div id="recommendation-map"></div>
</div>
<h3>Regressions:</h3>
<ol id="regressions">
</ol>
<p>(largest to smallest)</p>
<h3>Response Languages:</h3>
<ul>
<li><span id="english">—</span> English</li>
<li><span id="spanish">—</span> Spanish</li>
<li><span id="chinese">—</span> Chinese</li>
<li><span id="vietnamese">—</span> Vietnamese</li>
</ul>
<h3>Web Usage:</h3>
<ul>
<li><span id="computer-at-home">—</span> Computer at home</li>
<li><span id="cell-phone">—</span> Cell phone</li>
<li><span id="computer-at-work">—</span> Computer at work</li>
<li><span id="public-computer">—</span> Public computer</li>
<li><span id="friend-computer">—</span> Friend’s computer</li>
</ul>
<script>
surveyResults = ResidentResearch.surveyResults();
surveyResults.init();
</script>
<script id="response-popup" type="text/template">
<div id="response-content" class="clearfix">
<div class="header">
<h3>{tractName}</h3>
</div>
<div class="detail-row detail-housing-income clearfix">
<div class="detail housing clearfix">
<h4>
<i class="fa fa-home"></i>
<span cass="text">{rentalPercentage}<span class="percentage">%</span></span>
</h4>
<p class="label">rental percentage</p>
</div>
<div class="detail income clearfix">
<h4>
<i class="fa fa-usd"></i>
<span cass="text">{income}</span>
</h4>
<p class="label">per capita income</p>
</div>
</div>
<div class="detail-row detail-population-response clearfix">
<div class="detail population clearfix">
<h4>
<i class="fa fa-male"></i>
<span cass="text">{population}</span>
</h4>
<p class="label">population</p>
</div>
<div class="detail responses clearfix">
<h4>
<i class="fa fa-envelope"></i>
<span cass="text">{round}{responses}</span>
</h4>
<p class="label">response{responsePlural}</p>
</div>
</div>
<div class="detail-row last detail-population-segregation clearfix">
<ul class="clearfix">
<li>
<h4>{white}<span>%</span></h4>
<p class="label">White</p>
</li>
<li>
<h4>{black}<span>%</span></h4>
<p class="label">Black</p>
</li>
<li>
<h4>{asian}<span>%</span></h4>
<p class="label">Asian</p>
</li>
<li>
<h4>{hispanic}<span>%</span></h4>
<p class="label">Hispanic</p>
</li>
</ul>
</div>
</div>
</script>
</body>
</html>