-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (71 loc) · 3.3 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
<!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>Google Place API</title>
<link rel="stylesheet" href="icofont/icofont.min.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a href="index.html" class="navbar-brand"><h1><i class="icofont-location-pin"></i> Google Places API</h1></a>
<button class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#menu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a href="index.html" class="nav-link"><i class="icofont-location-pin"></i> Home</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid mt-5">
<div class="row">
<div class="col-md-12 text-center">
<h1>Find The Distance Between Two Places</h1>
<p class="h4 text-primary">This App will you Calculate your Traveling Distance</p>
</div>
</div>
<div class="row">
<div class="col-md-6 mx-auto">
<form>
<div class="my-3">
<label for="from" class="fw-bold h5">From</label>
<div class="input-group">
<span class="input-group-text"><i class="icofont-street-view"></i></span>
<input type="text" id="from" class="form-control form-control-lg" placeholder="Please enter your place of Origin">
</div>
</div>
<div class="my-3">
<label for="from" class="fw-bold h5">Destination</label>
<div class="input-group">
<span class="input-group-text"><i class="icofont-location-pin"></i></span>
<input type="text" id="to" class="form-control form-control-lg" placeholder="Please enter your place of Destination">
</div>
</div>
</form>
<div class="my-3 text-center">
<button class="btn btn-info btn-lg" onclick="return calcRoute();"><i class="icofont-map-pins"></i> Search</button>
</div>
</div>
</div>
</div>
<div class="container-fluid mb-5 h4">
<div class="row">
<div class="col-md-12 text-center" id="googleMap"></div>
</div>
<div class="row mt-5">
<div class="col-md-6 mx-auto" id="output"></div>
</div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=GOOGLE_MAPS_API_KEY"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>