forked from bjorn2404/jQuery-Store-Locator-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo.html
50 lines (50 loc) · 1.94 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title>jQuery Store Locator with Google Maps API, Google Distance Matrix API, HTML5 GeoLocation & Google Maps KML file</title>
<link rel="stylesheet" type="text/css" href="css/map.min.css" />
</head>
<body>
<div id="store-locator-container">
<div id="form-container">
<div class="address">
<label>
We have identified your location as somewhere near this address:
</label>
<label id="lblAddress">
</label>
<label>
. If it's miles off, use the field provided to enter correct location.</label>
</div>
<form id="user-location" class="well form-search" method="post" action="#">
<div id="form-input">
<label for="address">
Enter Address or Post Code:</label>
<input type="text" id="address" name="address" value="" class="input-medium search-query" />
</div>
<div id="submit-btn">
<input type="submit" id="submit" name="submit" class="btn btn-warning" /></div>
<div class="error">
<label id="lblError"></label>
</div>
</form>
</div>
<div id="map-container">
<div id="loc-list">
<div id="loc-list-wrapper">
<ul id="list">
</ul>
</div>
</div>
<div id="map">
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
<script src="js/jquery.storelocator.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(() => { $('#map-container').storeLocator() })
</script>
</body>
</html>