-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery.html
More file actions
executable file
·14 lines (14 loc) · 1.03 KB
/
query.html
File metadata and controls
executable file
·14 lines (14 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<script type="text/javascript" src="https://api.piperpal.com/location/json.php?service=Books&glat=60&glon=10&radius=50"></script>
</head>
<body>
<script type="text/javascript">
const obj = JSON.parse(locations);
for (i=0; i < obj.locations.length; i++) {
document.write("<option value="" + obj.locations[i].name + ""><b>" + obj.locations[i].name + "</b> (<u>" + obj.locations[i].distance + "</u>)" + " <i>" + obj.locations[i].service + "</i></option>");
document.write("<p>" + obj.locations[i].distance + "</p><form method='GET' action='https://www.piperpal.com/'><input type='text' name='name' placeholder='' value='" + obj.locations[i].name + "'/><input type='hidden' name='glat' value='" + obj.locations[i].glat + "' /><input type='hidden' name='glon' value='" + obj.locations[i].glon + "'/><span id='geopher'></span><select name='service'><option selected value='" + obj.locations[i].service + "'></option></select><input type='submit' value='Search' />");
}
</script>
</body>
</html>