Added Blog

This commit is contained in:
nicholaspease18
2019-09-16 17:22:24 -04:00
parent 2df4838ae0
commit 33ca7d9f78
4 changed files with 12 additions and 26 deletions
+8 -2
View File
@@ -157,12 +157,18 @@
<td>
<div class="mdl-card mdl-shadow--2dp">
<div class="mdl-card__title" style="text-align: center;margins: auto">
Push Notification
External Resources
</div>
<div class="mdl-card__actions" style="text-align: center;margins: auto">
Push Notifications<br>
Login with NokomisJROTC Google Account to Push Notifications<br>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" onclick="window.open('https://app.letreach.com/5d5daebbddb25e461d8b465c');">
Open Notification Manager
</button><br><br>
Nokomis JROTC Blog<br>
Login with NokomisJROTC Google Account to add blog post
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect" onclick="window.open('https://wordpress.com/block-editor/post/nokomisjrotc992024420.wordpress.com');">
New Blog Post
</button>
</div>
</div>
@@ -201,7 +207,7 @@
<input type="button" onclick="addAdmin();" value="Add Admin"></td>
<td style="width: 85%">
<div>
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp sign-table" id="emails" style="overflow: scroll">
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp" id="emails" style="overflow: scroll;width: 100%">
</table>
</div>
</td>
-4
View File
@@ -23,10 +23,6 @@
}
.sign-table {
width: 100%;
}
.ad2hs-prompt {
background-color: green;
color: white;
+4 -4
View File
@@ -204,14 +204,14 @@
<td>
<div class="signups mdl-card mdl-shadow--2dp">
<div class="mdl-card__title mdl-card--expand">
<h2 class="mdl-card__title-text">Sign Ups</h2>
<h2 class="mdl-card__title-text">Blog</h2>
</div>
<div class="mdl-card__supporting-text">
Access digital sign up sheets here.
Access Nokomis JROTC's Blog here!
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="signups/index.html" class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
View Activities
<a href="https://nokomisjrotc992024420.wordpress.com/" class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
View Blog
</a>
</div>
</div>
-16
View File
@@ -1,19 +1,3 @@
// Get List of SignUps
function signUpList() {
database = firebase.database().ref("signup");
database.once('value', function(snapshot) {
snapshot.forEach(function(child) {
firebase.database().ref("signup/" + child["key"]).on('value', function(data) {
var data1 = data.val();
var a = document.createElement("tr");
a.innerHTML = "<td class='mdl-data-table__cell--non-numeric no-under' id='sign-name'><a href='"+data1["link"]+"'>"+child["key"]+"</a></td><td class='mdl-data-table__cell--non-numeric' id='sign-date'>"+data1["date"]+"</td><td class='mdl-data-table__cell--non-numeric no-under' id='sign-info'><a href='"+data1["infolink"]+"'>Info</a></td>"
document.getElementById("table-body").appendChild(a)
componentHandler.upgradeAllRegistered();
});
});
});
}
function externalOnLoad() {
var isMobile = window.orientation > -1;
if (isMobile) {