-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (60 loc) · 2.42 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
<!DOCTYPE html>
<html lang="el-GR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ACS Points Plugin demo</title>
<link rel="stylesheet" href="./css/styles.css">
</head>
<body>
<!-- Checkout - Shipping options -->
<input type="text" value="Petrou Ralli 36-38" placeholder="Address" id="billing_address" />
<input type="text" value="Egaleo" placeholder="City" id="billing_city" />
<input type="text" value="12241" placeholder="Zipcode" id="billing_postcode" />
<button onclick="openMap();">
Επιλέξτε ένα ACS Point
</button>
<hr />
<!-- Map Pop Response -->
<div class="distance-to-point">...</div>
<hr />
<div class="locker-container"></div>
<!-- Map Popup -->
<div class="acs-sp-wrapper" style="visibility: hidden; opacity: 0;">
<div class="acs-sp-container">
<div class="acs-sp-header">
<img src="./icons/acs-courier-logo.png" alt="ACS Courier Logo" />
<span>Επιλέξτε το ACS Point που σας εξυπηρετεί</span>
</div>
<div class="acs-sp-body">
<div class="acs-sp-sidebar">
<div class="acs-sp-search-wrapper">
<input id="acs-sp-postcode-input" type="text" placeholder="Search..." />
<button id="acs-sp-postcode-search-trigger">Search</button>
</div>
<div class="acs-sp-sidebar-points-list-wrapper">
<div class="acs-sp-sidebar-points-list"></div>
</div>
</div>
<div class="acs-sp-sidebar-close-btn acs-sp-btn"></div>
<div class="acs-sp-close-btn acs-sp-btn"></div>
<div id="acs-sp-map" class="acs-sp-map"></div>
</div>
<div class="acs-sp-footer"></div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script>
<script src="./js/script.js"></script>
<script>
function findClosestLocker(){
postcodeSearch(
jQuery(elementInputPostcode).val(),
jQuery(elementInputAddress).val() + ',' + jQuery(elementInputCity).val(),
false
);
}
</script>
<script src="./js/markerclusterer.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=GOOGLEMAPSAPIKEY&libraries=geometry&callback=findClosestLocker"></script>
</body>
</html>