forked from Devsoc-BPGC/Events-Web-Interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sponsors.html
78 lines (67 loc) · 2.83 KB
/
sponsors.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sponsors</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles/sponsors.css">
</head>
<body>
<h1 class="text-center text-primary">Our Sponsors</h1><br>
<!--Edit Sponsor-->
<div class="container-fluid text-center div-mod ">
<!--'sponsors-data' div fills with the sponsors retrieved from firebase database in real-time-->
<div id="sponsors-data" class="row div-mod" >
</div>
</div>
<br>
<br>
<br>
<!-- Add sponsor-->
<div id="add-new-div" class="container div-mod well text-center" style="display: none;">
<input type="button" class="btn btn-primary" id="add-sponsor-btn" value="Add New Sponsor">
<br><br>
<div id="add-new-sponsor">
<label>Sponsor Name</label><br>
<input type="text" id="add-sponsor-name"><br>
<label>Sponsor Link</label><br>
<input type="text" id="add-sponsor-link"><br>
<label>Sponsor Logo</label><br>
<input type="button" class="btn btn-primary" id="add-sponsor-logo"
value="Add sponsor logo" onclick="getSponsorLogo()"><br><br>
<img id="add-sponsor-preview" class="img-responsive img-1" src="" alt="Sponsor Logo" style="display: none;"><br><br>
<div id="save-sponsor-progress-bar" class="progress" style="display: none;">
<div id="uploader" class="progress-bar progress-bar-success"
role="progressbar" aria-valuenow="0"aria-valuemin="0" aria-valuemax="100" style="width:0%">0%
</div>
</div>
<br>
<input type="button" class="btn btn-primary" id="add-sponsor-save"
value="Save" onclick="addSponsorToDatabase()">
</div>
</div>
<!-- firebase-app.js is mandatory -->
<!-- Include the others as required-->
<!--NOTE: This part must come before any user defined scripts-->
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-storage.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBR3KJwIcHkWjTewBD3A2aaRmFeptykmtk",
authDomain: "events-f6847.firebaseapp.com",
databaseURL: "https://events-f6847.firebaseio.com",
projectId: "events-f6847",
storageBucket: "events-f6847.appspot.com",
messagingSenderId: "1007225187624"
};
firebase.initializeApp(config);
</script>
<!--Include user defined scripts here-->
<script type="text/javascript" src="scripts/sponsors.js"></script>
</body>
</html>