-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyes.html
More file actions
165 lines (142 loc) · 7.94 KB
/
Copy pathyes.html
File metadata and controls
165 lines (142 loc) · 7.94 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<style>
.container {
position: relative;
width: 100%;
max-width: 1600px;
}
.container img {
width: 100%;
height: auto;
}
.container .btn {
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
background-color: #000;
color: white;
font-size: 16px;
padding: 0.8% 0.8%;
border: none;
/*cursor: pointer;*/
border-radius: 5px;
text-align: center;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light bg-light fixed-top" id="entireNavHeader"></nav>
<main role="main" class="container">
<div class="starter-template">
<BR> <BR>
<h1 style="text-align: center">Below is an absolutely undisputed unquestionable fact</h1>
<BR> <BR>
<style>
pre {font-size:4pt; letter-spacing:2px; line-height:3pt; font-weight:bold;}
img {
width: 90%;
height: auto;
}
</style>
<h1 id="bigOne"></h1>
<button onclick="duckFunction()">Ducks!</button>
<button onclick="ratFunction()">Rats!</button>
<br><br><br><br><br><br><br>
<button onclick="gusFunction()">Bruh...</button>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<h4> bruh </h3>
<br><br><br><br><br><br><br><br>
</div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-database.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyC_kt8C2WVY5-NelCH2368ISKJYCMgqrVw",
authDomain: "duckfatherwebsite.firebaseapp.com",
databaseURL: "https://duckfatherwebsite.firebaseio.com",
projectId: "duckfatherwebsite",
storageBucket: "duckfatherwebsite.appspot.com",
messagingSenderId: "378512363534",
appId: "1:378512363534:web:5d079ba167130bce74ec5f",
measurementId: "G-XN358D4C48"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
var bigOne = document.getElementById('bigOne');
var dbRef = firebase.database().ref().child('text');
dbRef.on('value', snap => bigOne.innerText = snap.val());
function duckFunction() {
firebase.database().ref().update({text: "Ducks are the best"});
}
function ratFunction() {
firebase.database().ref().update({text: "Rats are the best"});
}
function gusFunction() {
firebase.database().ref().update({text: "Bruh stop and just viiiiibe maaaaaaan"});
}
</script>
</main>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<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.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-database.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.17.1/firebase-analytics.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyC_kt8C2WVY5-NelCH2368ISKJYCMgqrVw",
authDomain: "duckfatherwebsite.firebaseapp.com",
databaseURL: "https://duckfatherwebsite.firebaseio.com",
projectId: "duckfatherwebsite",
storageBucket: "duckfatherwebsite.appspot.com",
messagingSenderId: "378512363534",
appId: "1:378512363534:web:5d079ba167130bce74ec5f",
measurementId: "G-XN358D4C48"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
// emergency navbar update!
// firebase.database().ref().update({Navbar:
//"<a class=\"navbar-brand\" href=\"/\"> <img src=\"favicon.ico\" class=\"d-inline-block align-top\" style=\"width: 34px; height: 34px;\"> Hail Duckfather? </a>"+
//"<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarsExampleDefault\" aria-controls=\"navbarsExampleDefault\" aria-expanded=\"false\" aria-label=\"Toggle navigation\"><span class=\"navbar-toggler-icon\"></span> </button> <div class=\"collapse navbar-collapse\" id=\"navbarsExampleDefault\"> <ul class=\"navbar-nav mr-auto\">"+
//"<li class=\"nav-item active\"><a class=\"nav-link\" href=\"index.html\">(Home)<span class=\"sr-only\">(current)</span></a> </li>"+
//"<li class=\"nav-item dropdown\"><a class=\"nav-link dropdown-toggle\" href=\"#\" id=\"dropdown01\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\"> (Feathers Descended From Some Passing Duck) </a> <div class=\"dropdown-menu\" id=\"dropdownPages\" aria-labelledby=\"dropdown01\">"+
//"<a class=\"dropdown-item\" href=\"SillySong.html\"> <img src=\"Referenced_Media/Feather.ico\" class=\"d-inline-block align-top\" style=\"width: 16px; height: 16px;\">   The Silly Song </a>" +
//"<a class=\"dropdown-item\" href=\"ThePen.html\"> <img src=\"Referenced_Media/Feather.ico\" class=\"d-inline-block align-top\" style=\"width: 16px; height: 16px;\">   The Pen </a>" +
//"<a class=\"dropdown-item\" href=\"TheSpyglass.html\"> <img src=\"Referenced_Media/Feather.ico\" class=\"d-inline-block align-top\" style=\"width: 16px; height: 16px;\">   The Spyglass </a>" +
//"<a class=\"dropdown-item\" href=\"DatabaseTesting.html\"> <img src=\"Referenced_Media/Feather.ico\" class=\"d-inline-block align-top\" style=\"width: 16px; height: 16px;\">   Fun and Games </a>" +
//"<a class=\"dropdown-item\" href=\"DuckScribbles.html\"> <img src=\"Referenced_Media/Feather.ico\" class=\"d-inline-block align-top\" style=\"width: 16px; height: 16px;\">   Duck Scratch (like chicken scratch but with ducks) </a>"+
//"</li>"+
//"<li class=\"nav-item dropdown\"><a class=\"nav-link dropdown-toggle\" href=\"#\" id=\"dropdown01\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\"> (The Great Quack) </a> <div class=\"dropdown-menu\" id=\"dropdownPages\" aria-labelledby=\"dropdown01\">"+
//"<a class=\"dropdown-item\" href=\"GreatQuack1.html\"> <img src=\"Referenced_Media/Feather.ico\" class=\"d-inline-block align-top\" style=\"width: 16px; height: 16px;\">   Great Quack 1 </a>" +
//"</ul> </form> </div>"
// });
var NavbarVar = document.getElementById('entireNavHeader');
var dbRefNavbar = firebase.database().ref().child('Navbar');
dbRefNavbar.on('value', snap => NavbarVar.innerHTML = snap.val());
</script>
</body>
</html>