-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
102 lines (95 loc) · 5.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dc/2.1.8/dc.css" />
<link href="https://fonts.googleapis.com/css?family=Special+Elite" rel="stylesheet">
<link rel="stylesheet" href="dwcdn/css/bootstrap.min.css">
<link rel="stylesheet" href="dwcdn/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/style.css" type="text/css" />
<title>F.B.I Crime Data Explorer</title>
</head>
<body>
<header><h1>CRIME VS ETHNICITY CHARTING</h1></header><br><br>
<div class="container fbi_api_container">
<div class="row">
<div class="col-sm-2 col-sm-offset-5">
<button id='fbi_api' class="btn btn-default btn-xl"><a href='https://crime-data-explorer.fr.cloud.gov/proxy/swagger-ui.html' target='_blank'>FBI API</a></button>
</div>
</div>
</div><br><br>
<div class="row crimetype">
<h2 id='first_step'>FIRST STEP: CHOOSE A FELONY</h2><br>
<button class="btn btn-default btn-xl" onclick="startParty('rape', 'Rape');">Rape</button>
<button class="btn btn-default btn-xl" onclick="startParty('arson','Arson');">Arson</button>
<button class="btn btn-default btn-xl" onclick="startParty('violent-crime', 'Violent crimes');">Violent crimes</button>
<button class="btn btn-default btn-xl" onclick="startParty('robbery','Robbery');">Robbery</button>
<button class="btn btn-default btn-xl" onclick="startParty('homicide','Homicide');">Homicide</button>
<button class="btn btn-default btn-xl" onclick="startParty('property-crime','Property crimes');">Property crimes</button>
<button class="btn btn-default btn-xl" onclick="startParty('burglary','Burglary');">Burglary</button>
<button class="btn btn-default btn-xl" onclick="startParty('larceny','Larceny');">Larceny</button>
<button class="btn btn-default btn-xl" onclick="startParty('aggravated-assault','Aggravated assaults');">Aggravated assaults</button>
</div>
<div class="row">
<div class="container">
<h2 id ='second_step' class ="form one">SECOND STEP: CHOOSE ETHNICITY AND YOU MAY SPECIFY A YEAR</h2><br>
<div id='general_form' class="container col-sm-4 form one">
<h3>F.B.I <span id="titleCrime"></span> Data Search</h3>
<form id="crimeForm" class="">
<strong>Year (1991-2016):</strong>
<input style="color: black;" type="number" name="year" id="year_input" min="1991" max="2016"></input><br>
<strong>Choose Ethnicity:</strong><br>
<div id='crimediv'>
</div>
</form>
<button id='searchbtn' class=" btn btn-default btn-xs" onclick="afterhours();">Search</button>
</div>
<div id="containerComposite" class=" col-sm-4">
<div id="composite-chart"></div>
</div>
<div id="containerPiechart"class="col-sm-4 display_none">
<div id="pie-chart-count"></div>
</div>
</div>
</div>
<div class="row">
<div class="container">
<div id="bar_chart_container" class="col-sm-4">
<div id="bar-chart"></div>
</div>
<div id='big_scores'class="col-sm-4 bigScores">
<div id="underThePieChartOffendersCount"></div>
<div id="underThePieChartVictimsCount"></div>
</div>
<div class="col-sm-4">
<div id="containerResults" class="results">
<p>Offenders:</p>
<div id="resultsOffenders"></div>
<p>Total Crimes:</p>
<div id="totalCountOffenders"></div>
<p>Victims:</p>
<div id="resultsVictims"></div>
<p>Total Crimes:</p>
<div id="totalCountVictims"></div>
</div>
</div>
</div>
</div>
<div class="container reset_btn_container">
<div class="row">
<div class="col-sm-2 col-sm-offset-5">
<button id="reset_btn" class="btn btn-default btn-xl" onclick="reset();">RESET</button>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.12/crossfilter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dc/2.1.8/dc.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/queue-async/1.0.7/queue.js"></script>
<script type="text/javascript" src="dwcdn/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="dwcdn/js/bootstrap.min.js"></script>
<script type="text/javascript" src="fbiApi.js"></script>
</body>
</html>