-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
63 lines (57 loc) · 2.37 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="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/style.css">
<title>Distance Between Two Cities</title>
</head>
<body>
<div class="header">
<div class="row">
<h1>Calculate driving distance between two cities</h1>
</div>
</div>
<div class="container">
<form>
<!-- Location 1 -->
<div class="row">
<div class="location-label">
<label>Origin: </label>
</div>
<div class="location-input">
<input type="text" id="location-1" name="origin" placeholder="Enter a start location...">
</div>
</div>
<!-- Location 2 -->
<div class="row">
<div class="location-label">
<label>Destination: </label>
</div>
<div class="location-input">
<input type="text" id="location-2" name="destination" placeholder="Enter a last location...">
</div>
</div>
<!-- Submit button -->
<div class="row">
<button class="button" type="button" onclick="clearRoute();">Clear</button>
<button class="button" type="button" onclick="calcRoute();">Submit</button>
</div>
<!-- Stats table -->
<div id="output" class="result-table"></div>
</form>
<div class="container-map" id="google-map"></div>
</div>
</div>
<!-- Footer with dynamic year change -->
<div class="footer">
<p>Created for educational purposes.<br><a target="_blank" href="https://www.anesmulalic.com">Anes Mulalic | <script type="text/javascript">
document.write(new Date().getFullYear());
</script></a></p>
</div>
</body>
<script src="https://maps.googleapis.com/maps/api/js?key="enter-your-key"&libraries=places"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="js/main.js"></script>
</html>