-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
170 lines (168 loc) · 5.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Visualization - Project Alan and Eric</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- <link
href="https://fonts.googleapis.com/css?family=Work+Sans:400,700&display=swap"
rel="stylesheet"
/> -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="styles.css" />
<script src="https://maps.google.com/maps/api/js?key=AIzaSyB6C7qIfzl3hXWaknFKTDzh5RwyQq0g_U0"></script>
<script src="https://unpkg.com/@googlemaps/markerclusterer/dist/index.min.js"></script>
</head>
<body>
<div id="header-wrap">
<header class="header">
<h1>Utah Car Accident Visualization</h1>
<div>
Names: Eric Sims, Alan Bird<br />
E-Mails: u1247999@utah.edu, u1136767@utah.edu<br />
UIDs: u1247999, u1136767
</div>
</header>
<div class="tab">
<button
class="tablinks active"
id="visualization-button"
onclick="openMainTab(event, 'visualization')"
>
Map/Bar Graphs
</button>
<button
class="tablinks"
id="secondary-visualization-button"
onclick="openMainTab(event, 'secondary-visualization')"
>
Frequency/Association Charts
</button>
<div>
<a class="tablinks" id="processBook-button" href="ProccessBook.pdf">
Process Book
</a>
</div>
<div>
<button
class="tablinks"
id="projectVideo-button"
onclick="openMainTab(event, 'projectVideo')"
>
Project Video
</button>
</div>
</div>
</div>
<div id="visualization" class="main-tab-content">
<div id="map-filter" class="d-flex">
<div id="map"></div>
<div id="filter-container">
<div id="details">
<h3>(Click on crash in map to display more info)</h3>
</div>
<div id="filter">
<div class="tab">
<button
class="tablinks active"
id="advanced-button"
onclick="openTab(event, 'advanced')"
>
Advanced
</button>
<button
class="tablinks"
id="checkboxes-and-button"
onclick="openTab(event, 'checkboxes-and')"
>
"And" Condition
</button>
<button
class="tablinks"
id="checkboxes-or-button"
onclick="openTab(event, 'checkboxes-or')"
>
"Or" condition
</button>
<button
class="tablinks"
id="checkboxes-not-button"
onclick="openTab(event, 'checkboxes-not')"
>
"Not" condition
</button>
</div>
<div id="filter-options" class="p-3">
<div class="tabcontent" id="advanced">
<form id="year-radio"></form>
</div>
<div class="tabcontent d-none checkboxes" id="checkboxes-and">
Display every result that contains ALL the specified conditions
</div>
<div class="tabcontent d-none checkboxes" id="checkboxes-or">
Display every result that contains NONE of the selected
conditions
</div>
<div class="tabcontent d-none checkboxes" id="checkboxes-not">
Display every result that contains ANY of the selected
conditions
</div>
</div>
</div>
</div>
</div>
<div id="distributions" class="d-flex">
<div id="monthlyDistribution"></div>
<div id="hourlyDistribution"></div>
</div>
</div>
<div id="secondary-visualization" class="d-none main-tab-content">
<div id="network-1" class="d-flex">
<div id="heatMap"></div>
</div>
<div id="network-2" class="d-flex">
<div id="attributeNetwork"></div>
</div>
<div id="crashIntensityFrequencies">
<div id="bubbleChart"></div>
</div>
</div>
<div id="projectVideo" class="d-none main-tab-content">
<div id="video">
<!-- Link to this video: https://www.youtube.com/watch?v=_IkwectHK40&ab_channel=AlanBird -->
<iframe width="1200" height="630" src="https://www.youtube.com/embed/_IkwectHK40" frameborder="10" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div>
<div id="footer">
<div id="footer-text">
<p>
This visualization was created by Alan Bird and Eric Sims for CS
6630: Data Visualization at the University of Utah.
</p>
<p>
The data used in this visualization was obtained from the
<!-- Hyperlink text -->
<a
href="https://dev.socrata.com/foundry/opendata.utah.gov/herb-zqda"
target="_blank"
>Utah Department of Transportation.</a
>
</p>
</div>
</div>
</div>
<script src="js/filter.js"></script>
<script src="js/googleMap.js"></script>
<script src="js/hourlyDistribution.js"></script>
<script src="js/monthlyDistribution.js"></script>
<script src="js/heatMap.js"></script>
<script src="js/attributeNetwork.js"></script>
<script src="js/bubbleChart.js"></script>
<script src="js/script.js"></script>
</body>
</html>