-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
107 lines (94 loc) · 3.79 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
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
<meta charset="utf-8">
<title>beSafe application</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="./css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="./css/style.css">
<script src="./js/bootstrap.js"></script>
<script src="./js/jquery-3.3.1.js"></script>
<script src="js/Scripts.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.11.0/firebase.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDJBRLlLUFRR39Os-bkWvpPKL8WZkjMhEQ&callback=initMap"></script>
<link href="https://fonts.googleapis.com/css?family=Armata" rel="stylesheet">
</head>
<body>
<div class="ct" id="t1">
<div class="ct" id="t2">
<div class="ct" id="t3">
<div class="ct" id="t4">
<section>
<ul>
<a href="#"><img src="img/sos.png" style="max-width:70%;height:auto;padding-top:13%;"></a>
<hr>
<a href="#t1">
<li class="icon fa fa-home"></li>
</a>
<hr>
<a href="#t2">
<li class="icon fa fa-edit"></li>
</a>
<hr>
<a href="#t3" onclick="showMap()">
<li class="icon fa fa-map-marker"></li>
</a>
<hr>
<a href="#t4">
<li class="icon fa fa-map"></li>
</a>
</ul>
<div class="page" id="p1">
<div class="logo">
<a href="#t1">
<img src="img/logo.png" style="max-width:100%">
</a>
<div class="primary-button" style="padding-top:5%">
<a href="#t2">Submit accident</a>
</div>
</div>
</div>
<div class="page" id="p2">
<div class="container">
<h5 id="msgSent" class="alert alert-success" style="display:none;"></h5>
<h2 style="padding-top:3%"> Submit accident form</h2>
<hr>
<form id="description_form" action="" method="post">
<label for="Select-Section">Accident type:</label>
<br>
<select id="Select-Section">
<option class="select">Car accident</option>
<option class="select">Lost item accident</option>
<option class="select">Murder accident</option>
<option class="select">Theft accident</option>
</select>
<br>
<label for="POST-name">Description:</label>
<textarea name="description" class="form-control" id="POST-name" cols="40" rows="5" placeholder="Type description of accident"></textarea>
</form>
<button id="submit-button" onclick="sendFirebaseData();formMsgSend();handleMarkerInsert();">Submit</button>
</div>
</div>
<div class="page" id="p3">
<div id="map" style="width: 95%; height: 100%;"></div>
</div>
<div class="page" id="p4">
<iframe style="border-style:none;" src="https://www.google.com/maps/d/embed?mid=1-yxXTD0GSoUBICFycJuykiqFd3p83Lo9" width="100%"
height="100%"></iframe>
</div>
</section>
</div>
</div>
</div>
</div>
<script>
InitFirebase();
getFirebaseData();
handleMarkerInsert();
function showMap() {
getFirebaseData();
handleMarkerInsert();
}
</script>
</body>
</html>