diff --git a/StartWebServer.bat b/StartWebServer.bat index b179f02..6cfaa1f 100644 --- a/StartWebServer.bat +++ b/StartWebServer.bat @@ -1,3 +1,3 @@ @ECHO OFF ECHO Starting Web Server... -python3 -m http.server \ No newline at end of file +python -m http.server \ No newline at end of file diff --git a/css/style.css b/css/style.css index 7721eb5..8053f68 100644 --- a/css/style.css +++ b/css/style.css @@ -1,3 +1,5 @@ +.news-item:nth-child(odd) {background: #CCC} + .accountbutton { display: inline-block; } diff --git a/help/assets/sendcompany.png b/help/assets/sendcompany.png new file mode 100644 index 0000000..d4439cb Binary files /dev/null and b/help/assets/sendcompany.png differ diff --git a/news.html b/news.html new file mode 100644 index 0000000..bb7564a --- /dev/null +++ b/news.html @@ -0,0 +1,87 @@ + + + + + Nokomis JROTC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + News + +
+
info
+
+
+
+ Nokomis JROTC + +
+
+
+
+
+
+
+
+ + + \ 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 = "

"+child.key+"

"+data.timestamp+"
"+data.content+"
" + document.getElementById("news-holder").appendChild(a); + }.bind(this)); + +}); +} + +// Firebase Scripts +// global read data and place on page function +function setData(ref, element, read1) { + var array = readData(ref, function(array) { + document.getElementById(element).innerHTML = array[read1] + }); +} + +function readData(ref, callback) { + var nextformation = firebase.database().ref(ref); + nextformation.on("value", function(data) { + var array = data.val(); + callback(array) + }); +} \ No newline at end of file diff --git a/ribbon/css/style.css b/ribbon/css/style.css index 27165a9..5e6f742 100644 --- a/ribbon/css/style.css +++ b/ribbon/css/style.css @@ -1,3 +1,7 @@ +.ribbon-center { + justify-content: center; +} + .ribbons-display { margin-left: auto; margin-right: auto; @@ -27,11 +31,11 @@ } .ribbons { - margin-right: auto; + margin-right: auto; margin-left: 0px; display: inline; } .ribbon_selector { margin: auto; -} \ No newline at end of file +} diff --git a/ribbon/index.html b/ribbon/index.html index cb9e25f..b2a6500 100644 --- a/ribbon/index.html +++ b/ribbon/index.html @@ -49,12 +49,12 @@
-
- +
+
- \ No newline at end of file +