-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvolunteer.html
98 lines (89 loc) · 4.66 KB
/
volunteer.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
<!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">
<title>Volunteer Page</title>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/5.5.8/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/firebaseui/3.1.1/firebaseui.js"></script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/6.6.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.6.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.6.1/firebase-auth.js"></script>
<script src="src/utils/firebase.js"></script>
<script src="src/utils/alertSystem.js"></script>
<!--Leaflet imports-->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og=="
crossorigin=""></script>
<!--Mapbox imports-->
<link rel='stylesheet' href='https://api.mapbox.com/mapbox.js/v3.2.0/mapbox.css'/>
<script src='https://api.mapbox.com/mapbox.js/v3.2.0/mapbox.js'></script>
<!--jQuery imports-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<nav class="navbar navbar-light navbar-default navbar-expand-md fixed-top" id="mainNav">
<a href="#" class="navbar-brand" id="brand">SafeBike</a>
<button class="navbar-toggler" data-toggle="collapse" data-target="#navLinks" aria-label="Toggle-navbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navLinks">
<ul class="navbar-nav">
<li class="nav-item"><a href="aboutPage.html" class="nav-link">About</a></li>
<li class="nav-item" id="logOutButton"><a href="#" class="nav-link">Logout</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="shadow" id="map-container">
<div id="mapid"></div>
<div class="col text-center">
<div class="my-5" id="req-info">
<p>(There are no current requests for help. <br> Participant requests will automatically appear here.)</p>
</div>
<button class="btn shadow-sm mb-4" id="btn-accept" disabled="disabled">Accept Request</button>
<button class="btn shadow-sm mb-4" id="btn-complete" disabled="disabled">Complete Request</button>
</div>
</div>
</div>
<script>
firebase.auth().onAuthStateChanged(firebaseUser => {
if (firebaseUser) {
console.log(firebaseUser);
btnLogOut.style.display = "inline";
btnLogin.style.display = 'none';
btnSignUp.style.display = 'none';
} else {
btnLogOut.style.display = "none";
btnLogin.style.display = 'inline';
btnSignUp.style.display = 'inline';
console.log("Not logged in")
}
});
</script>
<script>
$("#btn-accept").on('click', replaceAccept);
function replaceAccept() {
$('#btn-accept').hide();
$('#btn-complete').show();
}
</script>
<!-- additional style, map imports -->
<script src="public/js/map.js"></script>
<!--Leaflet routing machine import-->
<script src="public/js/leaflet-routing-machine.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>