-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (104 loc) · 3.8 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
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<title>Store Locator Exercise</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<script type="text/javascript" src="resources/plugin/jquery/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="resources/app/css/app.css" />
<script type="text/javascript" src="resources/app/js/app.js"></script>
<link rel="stylesheet" type="text/css" href="resources/plugin/simple-accordion/style.css" />
<script type="text/javascript" src="resources/plugin/simple-accordion/script.js"></script>
<script type="text/javascript" src="resources/plugin/canvasjs/canvasjs.min.js"></script>
</head>
<body>
<div id="map"></div>
<div id="data-panel">
<div class="data-panel-title">
<img id="favicon" width="280px" src="resources/app/images/favicon.gif"></img>
<div><label>Store Locator Exercise</label></div>
</div>
<div class="data-panel-fake-location">
Store locations are limited in this demo and are mostly located in Cebu, Philippines.
You may use a proxy or <a href='#' id='btn-fake-location' data-fk-lat='10.317343' data-fk-lng='123.9117123'>use this fake location</a>
</div><br/>
<ul class="accordion">
<li>
<a class="toggle" href="#">
<img id="favicon" width="16px" src="resources/app/images/location.png"></img>
<span class="data-panel-options">Directions</span><hr/>
</a>
<ul class="inner">
<div class="data-panel-direction">
<label>Origin (i.e., your location) </label>
<div><input id="inp-direction-origin" type="text" readonly="readonly" /></div>
</div>
<div class="data-panel-direction">
<label>Destination </label>
<div><select id="sel-direction-destination-est"></select></div>
</div><br/>
<div>
<div id="data-panel-text-directions"></div>
</div>
</ul>
</li>
<!--<li>
<a class="toggle" href="#">
<img id="favicon" width="16px" src="resources/app/images/filter.png"></img>
<span class="data-panel-options">Filters</span><hr/>
</a>
<ul class="inner">
<div class="data-panel-filters-est-type">
<label>Establishment Type</label><br/>
</div>
<div class="data-panel-filters-specialties">
<label>Specialties</label><br/>
</div>
</ul>
</li>-->
<li>
<a class="toggle" href="#">
<img id="favicon" width="16px" src="resources/app/images/tools.png"></img>
<span class="data-panel-options">Tools</span><hr/>
</a>
<ul class="inner default">
<div style="display:none;">
<input id="option-show-visits" type="checkbox" checked="checked" /> Customer Visits
</div>
<div>
<button id="btn_inspect_loc">Get stores within</button>
<input id="tf_inspect_loc_radius" type="number" value="800" /> m radius
<div id="inspect_loc_details">
<div><b>Number of Stores:</b> <span id="inspect_loc_count"></span></div>
<div><b>Establishments (From Your Location):</b> <span id="inspect_loc_est"></span></div>
</div>
</div>
<div id="tools-charts-area">
</div>
<script>
$(function(){
$('#tools-charts-area').load('pages/crosshair-chart.html');
});
</script>
</ul>
</li>
</ul>
</div>
<script type="text/javascript">
function initApp() {
ng = new NgExer();
ng.initMap({lat: 10.3170726, lng: 123.8907623});
ng.loadRestaurants();
ng.initRestaurantsStats();
ng.showDataPanel();
ng.showFilterEstablishments();
ng.showFilterSpecialties();
ng.initToolInspectLocationByRadius({lat: 10.3158271, lng: 123.9059329});
//ng.initDirectionOrigin();
ng.initDirectionDestination();
ng.initCurrentLocation(null);
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAsUBfqJUwAaKUPIYCNRuz0VbXljkI4KpY&libraries=geometry&callback=initApp"></script>
</body>
</html>