forked from firebase/geofire-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (55 loc) · 1.89 KB
/
Copy pathindex.html
File metadata and controls
68 lines (55 loc) · 1.89 KB
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
<!DOCTYPE HTML>
<html>
<head>
<title>GeoFire fish2 Example</title>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-database.js"></script>
<!-- RSVP -->
<script src="https://unpkg.com/rsvp@3.1.0/dist/rsvp.min.js"></script>
<!-- GeoFire -->
<script src="https://cdn.firebase.com/libs/geofire/5.0.1/geofire.min.js"></script>
<!-- Custom JS -->
<script src="js/fish2.js" defer></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="css/fish2.css">
</head>
<body>
<div id="fishViewer">
<div id="outsideGeoQuery">
<p>Outside geo query</p>
<p id="fish0Outside">Fish 0</p>
<p id="fish1Outside">Fish 1</p>
<p id="fish2Outside">Fish 2</p>
<p id="fish3Outside">Fish 3</p>
</div>
<div id="insideGeoQuery">
<p>Inside geo query</p>
<p id="fish0Inside">Fish 0</p>
<p id="fish1Inside">Fish 1</p>
<p id="fish2Inside">Fish 2</p>
<p id="fish3Inside">Fish 3</p>
</div>
</div>
<div id="fishControls">
<p>Move</p>
<select id="fishSelect">
<option value="fish0">Fish 0</option>
<option value="fish1">Fish 1</option>
<option value="fish2">Fish 2</option>
<option value="fish3">Fish 3</option>
</select>
<select id="locationSelect">
<option value="inside">inside</option>
<option value="outside">outside</option>
<option value="within">within</option>
</select>
<p>of query</p>
<input id="moveFishButton" type="button" value="Move Fish" />
</div>
<!-- Cancel "key_moved" callback button -->
<input id="cancelKeyMovedCallbackButton" type="button" value="Cancel 'key_moved' callback" />
<!-- Message log -->
<div id="log"></div>
</body>
</html>