-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.html
44 lines (40 loc) · 1.41 KB
/
map.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
<!DOCTYPE html>
<html>
<head>
<title>Interactive Map</title>
<link rel="stylesheet" href="style.css">
<style>
#map {
height: 550px;
width: 100%;
}
</style>
</head>
<body>
<div class="nav-container">
<a href="index.html">
<img src="media/content/pictures/G_logo.jpg" alt="Logo" style="width:50px;height:50px;">
</a>
</div>
<h1>Virtual Vandalism</h1>
<div id="map"></div>
<div id="contextMenu" style="display: none; position: absolute; z-index: 5;">
<ul>
<li id="addPin">Submit New Pin</li>
</ul>
</div>
<div id="pinForm" style="display: none; position: absolute; z-index: 5;">
<form id="submitPinForm" action="https://formspree.io/f/mpzvarwd" method="POST" enctype="multipart/form-data">
<input type="hidden" id="pinLat" name="pinLat">
<input type="hidden" id="pinLng" name="pinLng">
Vandaliser: <input type="text" id="pinAuthor" name="pinAuthor" required><br>
Description: <input type="text" id="pinDescription" name="pinDescription" required><br>
<input type="submit" value="Submit Pin">
</form>
</div>
<script src="map.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDXWSMtQocX4GVqpqb7Afxr7XD04woP510&callback=initMap">
</script>
</body>
</html>