+
+
+
+
+
+
+
+
+
+
+ Here is the list of the external services that this app employs, their function, and their URL. +
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/script.js b/js/script.js
index 4271264..05ce82f 100644
--- a/js/script.js
+++ b/js/script.js
@@ -1,7 +1,7 @@
function externalOnLoad() {
var isMobile = window.orientation > -1;
if (isMobile) {
- location.href = "https://lax18.github.io/WebJROTC/index.html"
+ location.href = "https://lax18.github.io/MobileJROTC/index.html"
}
console.log("[index.html] LOADED")
var data = readData("nextevent", function(data) {
diff --git a/news.html b/news.html
new file mode 100644
index 0000000..bb7564a
--- /dev/null
+++ b/news.html
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+ Help
+
+
+
+ Nokomis JROTC Admin Help
+Contents
+ ++ Account Login Information and External Services +
+ For security purposes, the account information cannot be listed here. However, the email for the accounts is nokomisarmyjrotc@gmail.com. + The password is the same as the one used on the computers in the JROTC office.+
+ Here is the list of the external services that this app employs, their function, and their URL. +
| Service Name | +Function | +URL | +
|---|---|---|
| Firebase | +Database, Authentication, and Backend Services | +Open | +
| LetReach | +Push Notification Service | +Open | +
| Wordpress | +Blog | +Open | +
+ Update Next Formation Event +
+ To update the next event display found on the homepage, follow the steps below. ++ 1. Go to the Admin Console. +
++ 2. Find the box as shown below. +
+
+ + 3. Fill in fields with information of the next formation. +
++ 4. Click "Preview" to see changes in the preview box. +
+
+ + 5. When satisfied with the results, press update to update homepage. +
+
+ + Update Company Values and Comments +
+ To update the commanders cup points and the comments, located on the company pages, follow the steps below. ++ 1. Go to the Admin Console. +
++ 2. Find the box as shown below. +
++ Choose the box that corresponds to the company that you wish to edit +
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/nscript.js b/nscript.js
new file mode 100644
index 0000000..a7dacbd
--- /dev/null
+++ b/nscript.js
@@ -0,0 +1,33 @@
+// onLoad Script to fetch and sort
+function externalOnLoad() {
+firebase.database().ref("news")
+ .orderByChild('timestamp')
+ .on('value', function(snapshot) {
+ this.data = [];
+
+ snapshot.forEach(function(child) {
+ console.log(child)
+ var data = child.val
+ var a = document.createElement("div")
+ a.innerHTML = "
+
+ News
+
+
+
+ info
+
+ Nokomis JROTC
+
+
+
+
+ "+child.key+"
"+data.timestamp+""+data.content+"
-
+
+