-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (96 loc) · 2.83 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hover Geofencing Tool</title>
<link rel="icon" type="image/png" href="./favicon.png"/>
<link rel="stylesheet" href="css/style.css">
</head>
<body onload="initialize()">
<table>
<tr>
<td class="top" colspan="5">
<div id="map-canvas"></div>
</td>
</tr>
<tr>
<td class="left" colspan="1"></td>
<td class="left" colspan="3">
<h1>Geofencing tool</h1>
</td>
<td class="middle" colspan="1">
<input id="search-input" type="text" placeholder="Go to Coordiates" onblur="search()" />
</td>
</tr>
<tr>
<td class="left">
<label>Variant:</label>
</td>
<td colspan="4" class="middle">
<select id="variant" onchange="update()">
<option value="POLYGON" selected>POLYGON</option>
<option value="CIRCLE">CIRCLE</option>
</select>
</td>
</tr>
<tr>
<td class="left">
<label>Name:</label>
</td>
<td colspan="4" class="middle">
<input type="text" id="name" placeholder="Name" onchange="update()" />
</td>
</tr>
<tr>
<td class="left">
<label>Description:</label>
</td>
<td colspan="4" class="middle">
<textarea id="description" placeholder="Description" onchange="update()"></textarea>
</td>
</tr>
<tr>
<td class="left">
<label>Radius:</label>
</td>
<td colspan="4" class="middle">
<input type="number" id="radius" placeholder="Radius" onchange="update()" />
</td>
</tr>
<tr>
<td class="left">
<label>Category:</label>
</td>
<td colspan="4" class="middle">
<select id="category" onchange="update()">
<option value="EXERCISE" selected>EXERCISE</option>
<option value="CULTURE">CULTURE</option>
<option value="EDUCATION">EDUCATION</option>
<option value="SOCIAL">SOCIAL</option>
</select>
</td>
</tr>
<tr>
<td class="left" colspan="1">
<button id="clipboard-btn" onclick="copyToClipboard(document.getElementById('coordinates').innerHTML)">Copy to
Clipboard</button>
</td>
<td class="middle" colspan="4">
<textarea id="coordinates"></textarea>
</td>
</tr>
<tr>
<td class="left" colspan="1">
<button id="generate-btn" onclick="update()"> Generate query</button>
</td>
<td class="middle" colspan="4">
<textarea id="graphql"></textarea>
</td>
</tr>
</table>
<script src='https://maps.googleapis.com/maps/api/js?key=AIzaSyDOPVj0MtADLTZH1BzD3xzIJ3HjLDN5UB8&v=3.exp&sensor=false&libraries=geometry'></script>
<script src="js/moveToHelper.js"></script>
<script src="js/maphelper.js"></script>
<script src="js/index.js"></script>
</body>
</html>