From 66333ad8c1ec04185476327c620d96f512bfd023 Mon Sep 17 00:00:00 2001 From: nicholaspease18 Date: Tue, 22 Oct 2019 09:15:00 -0400 Subject: [PATCH] Added Company Pages to Mobile App --- index.html | 4 +- malpha.html | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++ mbravo.html | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++ mscript.js | 32 ++++++++++++++ 4 files changed, 270 insertions(+), 2 deletions(-) create mode 100644 malpha.html create mode 100644 mbravo.html create mode 100644 mscript.js diff --git a/index.html b/index.html index 30b770f..c9e22cd 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ Information about Alpha Company is located here.
- + Enter
@@ -168,7 +168,7 @@ Information about Bravo Company is located here.
- + Enter
diff --git a/malpha.html b/malpha.html new file mode 100644 index 0000000..58f78fe --- /dev/null +++ b/malpha.html @@ -0,0 +1,118 @@ + + + + Nokomis JROTC - Alpha Company + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + Alpha Company + +
+
+
+
+

+ Alpha Company +

+ + + + + + + + + + +
+
+
+ Documents: +
+
+ +
+
+
+
+
+ Event: +
+
+ +
+
+
+
+
+ Company Information and Commanders Comments: +
+
+
No Comment.


+ Current Commanders Cup Points:
+

+
+ Loading... +

+
+
+
+
+
+ + + \ No newline at end of file diff --git a/mbravo.html b/mbravo.html new file mode 100644 index 0000000..976dedc --- /dev/null +++ b/mbravo.html @@ -0,0 +1,118 @@ + + + + Nokomis JROTC - Bravo Company + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + Bravo Company + +
+
+
+
+

+ Bravo Company +

+ + + + + + + + + + +
+
+
+ Documents: +
+
+ +
+
+
+
+
+ Event: +
+
+ +
+
+
+
+
+ Company Information and Commanders Comments: +
+
+
No Comment.


+ Current Commanders Cup Points:
+

+
+ Loading... +

+
+
+
+
+
+ + + \ No newline at end of file diff --git a/mscript.js b/mscript.js new file mode 100644 index 0000000..b16c5ee --- /dev/null +++ b/mscript.js @@ -0,0 +1,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 + }); +} \ No newline at end of file -- 2.52.0