-
Notifications
You must be signed in to change notification settings - Fork 347
/
index.html
57 lines (48 loc) · 1.7 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
<!DOCTYPE HTML>
<html>
<head>
<title>Adding and querying example</title>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<!-- Firebase -->
<script type="module">
import { initializeApp } from 'https://www.gstatic.com/firebasejs/9.8.4/firebase-app.js'
import { getDatabase, ref, push } from 'https://www.gstatic.com/firebasejs/9.8.4/firebase-database.js'
</script>
<!-- GeoFire -->
<script src="https://cdn.firebase.com/libs/geofire/6.0.0/geofire.min.js"></script>
<!-- Custom JS -->
<script src="js/queryBuilder.js" defer></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="css/queryBuilder.css">
</head>
<body>
<!-- Contribution -->
<p>Contributed by <a id="firebaseRef" href="https://github.com/stefek99" target="_blank">@stefek99</a></p>
<!-- Add fish -->
<form id="addfish">
<label>
Lat: <input id="addlat" type="number" step="any" min="-90" max="90" required>
</label>
<label>
Lon: <input id="addlon" type="number" step="any" min="-180" max="180" required>
</label>
<input type="submit" value="add fish">
</form>
<!-- Query fish -->
<form id="queryfish">
<label>
Lat: <input id="querylat" type="number" step="any" min="-90" max="90" required>
</label>
<label>
Lon: <input id="querylon" type="number" step="any" min="-180" max="180" required>
</label>
<label>
Radius: <input id="queryradius" type="number" step="any" min="0" max="40000" required>
</label>
<input type="submit" value="query">
</form>
<!-- Message log -->
<div id="log"></div>
</body>
</html>