-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
169 lines (154 loc) · 6.37 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>UFO Finder</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/superhero/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link rel="stylesheet" href="static/css/style.css">
</head>
<body>
<div class="wrapper">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">Welcome
<img class="nav-ufo" src="static/images/ufopeaceout.png" height='30' width="20">
</a>
</div>
</div>
</nav>
<div class="hero text-center">
<h1>UFO Sightings</h1>
<p>The Truth is Out Here!</p>
</div>
<div class="container">
<div class="row margin-top-50">
<div class="col-md-2">
<aside class="filters">
<div class="panel panel-default">
<div class="panel-heading">Filter Search</div>
<div class="panel-body">
<form>
<div class="form-group">
<ul class="list-group" id="datefilters">
<li class="filter list-group-item">
<label for="date">Enter a Date</label>
<input class="form-control" id="datetime" type="text" placeholder="1/13/2010">
</li>
</ul>
</div>
<button id="filter-btn-date" type="submit" class="btn btn-default">Filter by Date </button>
</form>
</div>
<div class="panel-heading"></div>
<div class="panel-body">
<form>
<div class="form-group">
<ul class="list-group" id="cityfilters">
<li class="filter list-group-item">
<label for="date">Enter a City</label>
<input class="form-control" id="cityname" type="text" placeholder="benton">
</li>
</ul>
</div>
<button id="filter-btn-city" type="submit" class="btn btn-default">Filter by City </button>
</form>
</div>
<div class="panel-heading"></div>
<div class="panel-body">
<form>
<div class="form-group">
<ul class="list-group" id="statefilters">
<li class="filter list-group-item">
<label for="state">Enter a State</label>
<input class="form-control" id="statename" type="text" placeholder="nj">
</li>
</ul>
</div>
<button id="filter-btn-state" type="submit" class="btn btn-default">Filter by State </button>
</form>
</div>
<div class="panel-heading"></div>
<div class="panel-body">
<form>
<div class="form-group">
<ul class="list-group" id="countryfilters">
<li class="filter list-group-item">
<label for="country">Enter a Country</label>
<input class="form-control" id="countryname" type="text" placeholder="us">
</li>
</ul>
</div>
<button id="filter-btn-country" type="submit" class="btn btn-default">Filter by Country </button>
</form>
</div>
<div class="panel-heading"></div>
<div class="panel-body">
<form>
<div class="form-group">
<ul class="list-group" id="shapefilters">
<li class="filter list-group-item">
<label for="shape">Enter a Shape</label>
<input class="form-control" id="shapename" type="text" placeholder="circle">
</li>
</ul>
</div>
<button id="filter-btn-shape" type="submit" class="btn btn-default">Filter by Shape </button>
</form>
</div>
</div>
</aside>
</div>
<div class="col-md-10">
<div id="table-area" class="">
<table id="ufo-table" class="table table-striped">
<thead>
<tr>
<th class="table-head">Date</th>
<th class="table-head">City</th>
<th class="table-head">State</th>
<th class="table-head">Country</th>
<th class="table-head">Shape</th>
<th class="table-head">Duration</th>
<th class="table-head">Comments</th>
</tr>
</thead>
<tbody id="target-table-display"></tbody>
</table>
</div>
</div>
</div>
</div>
<footer class="footer">
<span class="bottom">UFO Sightings</span>
</footer>
</div>
<!----script>
function myFunction() {
// Declare variables
var input, filter, table, tr, td, i, txtValue;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
// Loop through all table rows, and hide those who don't match the search query
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[0];
if (td) {
txtValue = td.textContent || td.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.11.0/d3.js"></script>
<script src="static/js/data.js"></script>
<script src="static/js/app.js"></script>
</body>
</html>