Merge pull request #1 from NokomisJROTC/master

Changes
This commit is contained in:
NokomisJROTC
2019-09-16 15:51:45 -04:00
committed by GitHub
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ function verify() {
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
readData("users", function(array) {
if (array[firebase.auth().currentUser.uid]) {
if (array[firebase.auth().currentUser.email.replace("@","|").replace(".",",")]) {
document.getElementById("page-content").style.display = "block"
document.getElementById("unauthorized").style.display = "none"
} else {
+1 -1
View File
@@ -3,7 +3,7 @@ function checkLogin() {
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
readData("users", function(array) {
if (array[firebase.auth().currentUser.uid]) {
if (array[firebase.auth().currentUser.email.replace("@","|").replace(".",",")]) {
document.getElementById("loginbutton").innerHTML = "<a href='dashboard.html'>Dashboard</a>"
var logoutnode = document.createElement("li");
document.getElementById("logoutbutton").style.display = "block"
+1 -1
View File
@@ -8,7 +8,7 @@ function checkLogin() {
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
readData("users", function(array) {
if (array[firebase.auth().currentUser.uid]) {
if (array[firebase.auth().currentUser.email.replace("@","|").replace(".",",")]) {
document.getElementById("loginbutton").innerHTML = "<button class='mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect' onclick='dashboard();'>Dashboard</button>";
document.getElementById("logoutbutton").style.display = "block"
componentHandler.upgradeDom();
+1
View File
@@ -1,3 +1,4 @@
importScripts('https://cdn.letreach.com/js/sworkers/a99d6ff3dec6106a641e37d249ac4762.js');
// Offline SW
const filesToCache = [
'https://lax18.github.io/WebJROTC/css/font.css',