-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (90 loc) · 3.66 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
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
<!DOCTYPE html>
<html lang="en" dirs="ltr">
<head>
<meta charset="utf-8">
<script type="text/javascript" src= "script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script async src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBovKy8txAWzKMLCP0SPRZBot_VGRPRQgU&callback=initMap"></script>
<title>Fearless Footsteps</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="CSS/styles.css">
<link href='https://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
/* Style the input fields */
.autocomplete-container {
margin: 20px;
}
input[type="text"] {
width: 300px;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
}
</style>
</head>
<body>
<!-- <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBovKy8txAWzKMLCP0SPRZBot_VGRPRQgU&callback=initMap" async defer></script> -->
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #ff87ab">
<a class="navbar-brand" href="">Fearless Footsteps!</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="about.html">About Us!</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.html">Find A Map!</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact Us!</a>
</li>
<li class="nav-item">
<a class="nav-link" href="donate.html">Donate Now!</a>
</li>
</ul>
</div>
</nav>
<br />
<div style = "text-align:center">
<h1>Welcome to Fearless Footsteps!</h1>
<h5>Please enter your starting location and ending location below to calculate the
safest route possible!</h5>
</div>
<br />
<br />
<div style = "height: 500px; width: 500px,left:80px" id="map">
</div>
<div class="autocomplete-container">
<label for="start" style = "margin-left: 150px">Start Location:</label>
<input type="text" id="start" placeholder="Enter start location">
<label for="end" style = "margin-left: 300px">End Location:</label>
<input type="text" id="end" placeholder="Enter end location">
</div>
<script>
// Initialize Google Places Autocomplete for start and end inputs
function initializeAutocomplete() {
var startInput = document.getElementById('start');
var endInput = document.getElementById('end');
var autocompleteStart = new google.maps.places.Autocomplete(startInput);
var autocompleteEnd = new google.maps.places.Autocomplete(endInput);
}
// Load the Google Maps Places library and initialize autocomplete
google.maps.event.addDomListener(window, 'load', initializeAutocomplete);
</script>
<br />
<div id="controls" style = "margin-left: 700px">
<button onclick="handleRouteCalculation()", id="calculate-route-btn">Calculate Route</button>
</div>
<br />
<br />
<br />
<p style = "margin-left: 390px" id="new-paragraph"></p>
<br />
<br />
<br />
</body>
</html>