-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (48 loc) · 2.33 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Google Maps JavaScript API</title>
<script src="https://d35z3p2poghz10.cloudfront.net/ecwid-sdk/js/1.2.5/ecwid-app.js"></script>
<link rel="stylesheet" href="https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.2.2/ecwid-app-ui.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://d35z3p2poghz10.cloudfront.net/ecwid-sdk/css/1.3.6/ecwid-app-ui.css"/>
<script src="https://d35z3p2poghz10.cloudfront.net/ecwid-sdk/css/1.3.6/ecwid-app-ui.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<script>
// Initialize the application
EcwidApp.init({
app_id: "custom-app-34771331-1", // your client_id
autoloadedflag: true,
autoheight: true
});
// Get the store ID and access token
var storeData = EcwidApp.getPayload();
var storeId = storeData.store_id;//dont know if i have to add this
var accessToken = storeData.access_token;
var language = storeData.lang;
if (storeData.public_token !== undefined){
var publicToken = storeData.public_token;
}
if (storeData.app_state !== undefined){
var appState = storeData.app_state;
}
// do something...
</script>
<body>
<label for="">Billing Name: <input id="name" type="text" placeholder="Name" ></label><br>
<label for="">Address: <input id="map-search" class="controls" id="controls" type="text" placeholder="Search Box" size="88"></label><br>
<label for="">Lat: <input type="text" class="latitude" id="lat"></label>
<label for="">Long: <input type="text" class="longitude" id="long"></label>
<label for="">City <input type="text" class="reg-input-city" id="city" placeholder="City"></label>
<button type="submit" onclick="onsub()">Done</button>
<div id="map-canvas"></div>
<script src="javascript.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAU0efUPl-GXQtfzXWH-eDKQgdn5PrO-wo&libraries=places&callback=initialize"></script>
</body>
</html>