-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathordertracking.html
101 lines (95 loc) · 2.18 KB
/
ordertracking.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>order tracker</title>
<link
rel="shortcut icon"
type="image/jpg"
href="https://media.glassdoor.com/sqll/2397264/strawberrynet-squarelogo-1561462036150.png"
/>
<script
src="https://kit.fontawesome.com/44e7379461.js"
crossorigin="anonymous"
></script>
<style>
body {
background-color: black;
}
#container {
background-color: gray;
width: 95%;
height: 550px;
margin: auto;
margin-top: 50px;
display: flex;
background-color: black;
}
#box2 {
width: 100%;
height: 550px;
border: 0;
}
</style>
</head>
<body>
<div class="wrapper"></div>
<div
style="
color: white;
font-size: 40px;
margin-left: 100px;
margin-top: 20px;
"
>
Order Tracking
</div>
<input
style="
width: 500px;
height: 30px;
border-radius: 5px;
margin-left: 600px;
border: 3px solid rgb(19, 19, 19);
font-size: 25px;
"
type="text"
id="city"
/>
<button
style="
width: 250px;
height: 40px;
border-radius: 10px;
background-color: rgb(151, 212, 240);
color: rgb(1, 66, 97);
font-size: 25px;
"
onclick="getWeather()"
>
Search
</button>
<div id="container"></div>
</body>
</html>
<script>
let key = "AIzaSyBIZFQsSD8lvHgB39M9gu5xWekPGwt9HKY";
let container = document.getElementById("container");
async function getWeather() {
container.innerHTML = [];
try {
let city = document.getElementById("city").value;
let box2 = document.createElement("iframe");
box2.setAttribute("id", "box2");
box2.setAttribute(
"src",
`https://www.google.com/maps/embed/v1/place?key=${key}&q=${city}`
);
container.append(box2);
} catch (err) {
console.log(err);
}
}
</script>