-
Notifications
You must be signed in to change notification settings - Fork 1
/
mscript.js
32 lines (32 loc) · 1.2 KB
/
mscript.js
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
function alphaCompanyOnLoad() {
// Initialize Firebase
var config = {
apiKey: "AIzaSyB0keF26uKYDOR2o-8HYkgoOGWhsPyHdkg",
authDomain: "jrotc-database.firebaseapp.com",
databaseURL: "https://jrotc-database.firebaseio.com",
projectId: "jrotc-database",
storageBucket: "jrotc-database.appspot.com",
messagingSenderId: "787128694744"
};
firebase.initializeApp(config);
setData("company","alphacomments","alphacomments");
readData("company", function(data) {
document.getElementById("alphacurrentpoints").innerHTML = data.alphapoints
});
}
function bravoCompanyOnLoad() {
// Initialize Firebase
var config = {
apiKey: "AIzaSyB0keF26uKYDOR2o-8HYkgoOGWhsPyHdkg",
authDomain: "jrotc-database.firebaseapp.com",
databaseURL: "https://jrotc-database.firebaseio.com",
projectId: "jrotc-database",
storageBucket: "jrotc-database.appspot.com",
messagingSenderId: "787128694744"
};
firebase.initializeApp(config);
setData("company","bravocomments","bravocomments");
readData("company", function(data) {
document.getElementById("bravocurrentpoints").innerHTML = data.bravopoints
});
}