Minor Changes
This commit is contained in:
+25
-22
@@ -1,28 +1,31 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Reading Stuffs</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<title>Reading Stuffs</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<script src="js/script.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Niramit" rel="stylesheet">
|
||||
<style>
|
||||
body {font-family: 'Niramit', sans-serif;
|
||||
text-align: center;
|
||||
font-size: 42pt;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Niramit" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Niramit', sans-serif;
|
||||
text-align: center;
|
||||
font-size: 42pt;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="javascript:setData('commanderscup','alpha','Alpha')">
|
||||
<span id="alpha"> loading... </span>
|
||||
</body>
|
||||
</body>
|
||||
+25
-22
@@ -1,28 +1,31 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Reading Stuffs</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<title>Reading Stuffs</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<script src="js/script.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Niramit" rel="stylesheet">
|
||||
<style>
|
||||
body {font-family: 'Niramit', sans-serif;
|
||||
text-align: center;
|
||||
font-size: 42pt;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Niramit" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Niramit', sans-serif;
|
||||
text-align: center;
|
||||
font-size: 42pt;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="javascript:setData('commanderscup','bravo','Bravo')">
|
||||
<span id="bravo"> loading... </span>
|
||||
</body>
|
||||
</body>
|
||||
+32
-25
@@ -1,32 +1,39 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Reading Stuffs</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<title>Reading Stuffs</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<script src="js/script.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Niramit" rel="stylesheet">
|
||||
<style>
|
||||
body {font-family: 'Niramit', sans-serif;
|
||||
text-align: center;
|
||||
font-size: 19pt;
|
||||
}
|
||||
html, body { overflow: hidden; }
|
||||
</style>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Niramit" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Niramit', sans-serif;
|
||||
text-align: center;
|
||||
font-size: 19pt;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="formationOnLoad()">
|
||||
<div id="box">
|
||||
Loading...
|
||||
<div id="box">
|
||||
Loading...
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
+83
-87
@@ -1,116 +1,112 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Update JROTC Database</title>
|
||||
<script src="js/script.js"></script>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<script>
|
||||
// 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);
|
||||
</script>
|
||||
<title>Update JROTC Database</title>
|
||||
<script src="js/script.js"></script>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.5.3/firebase.js"></script>
|
||||
<script>
|
||||
function onLoad() {
|
||||
readData("commanderscup", function (data) {
|
||||
document.getElementById("alphacurrentpoints").innerHTML = data.Alpha
|
||||
document.getElementById("bravocurrentpoints").innerHTML = data.Bravo
|
||||
updatePage()
|
||||
setInterval(statusView(), 30000)
|
||||
});
|
||||
setKeyHandle("location",eventSend);
|
||||
setKeyHandle("alpha",cupSend);
|
||||
setKeyHandle("bravo",cupSend);
|
||||
setKeyHandle("customtime",cupSend)
|
||||
var x = document.getElementById("write-box")
|
||||
x.style.display = 'none'
|
||||
}
|
||||
var provider = new firebase.auth.GoogleAuthProvider();
|
||||
firebase.auth().signInWithPopup(provider).then(function(result) {
|
||||
// This gives you a Google Access Token. You can use it to access the Google API.
|
||||
var token = result.credential.accessToken;
|
||||
// The signed-in user info.
|
||||
var user = result.user;
|
||||
var x = document.getElementById("write-box")
|
||||
x.style.display = 'block'
|
||||
document.getElementById("customtimebox").style.display = 'none'
|
||||
document.getElementById("infobox").innerHTML = ""
|
||||
// ...
|
||||
}).catch(function(error) {
|
||||
// Handle Errors here.
|
||||
var errorCode = error.code;
|
||||
var errorMessage = error.message;
|
||||
// The email of the user's account used.
|
||||
var email = error.email;
|
||||
// The firebase.auth.AuthCredential type that was used.
|
||||
var credential = error.credential;
|
||||
// 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);
|
||||
</script>
|
||||
<script>
|
||||
function onLoad() {
|
||||
readData("commanderscup", function(data) {
|
||||
document.getElementById("alphacurrentpoints").innerHTML = data.Alpha
|
||||
document.getElementById("bravocurrentpoints").innerHTML = data.Bravo
|
||||
updatePage()
|
||||
setInterval(statusView(), 30000)
|
||||
});
|
||||
setKeyHandle("location", eventSend);
|
||||
setKeyHandle("alpha", cupSend);
|
||||
setKeyHandle("bravo", cupSend);
|
||||
setKeyHandle("customtime", cupSend)
|
||||
var x = document.getElementById("write-box")
|
||||
x.style.display = 'none'
|
||||
}
|
||||
var provider = new firebase.auth.GoogleAuthProvider();
|
||||
firebase.auth().signInWithPopup(provider).then(function(result) {
|
||||
// This gives you a Google Access Token. You can use it to access the Google API.
|
||||
var token = result.credential.accessToken;
|
||||
// The signed-in user info.
|
||||
var user = result.user;
|
||||
var x = document.getElementById("write-box")
|
||||
x.style.display = 'block'
|
||||
document.getElementById("customtimebox").style.display = 'none'
|
||||
document.getElementById("infobox").innerHTML = ""
|
||||
// ...
|
||||
}).catch(function(error) {
|
||||
// Handle Errors here.
|
||||
var errorCode = error.code;
|
||||
var errorMessage = error.message;
|
||||
// The email of the user's account used.
|
||||
var email = error.email;
|
||||
// The firebase.auth.AuthCredential type that was used.
|
||||
var credential = error.credential;
|
||||
console.log(errorCode)
|
||||
console.log(errorMessage)
|
||||
document.getElementById('infobox').innerHTML = 'ERROR: Permission Denied. Contact the S-6 to be granted permission.<br>Check to make sure that <a href="https://www.asus.com/us/support/FAQ/1007483/">popups are enabled.</a>'
|
||||
// ...
|
||||
});
|
||||
console.log(errorMessage)
|
||||
document.getElementById('infobox').innerHTML = 'ERROR: Permission Denied. Contact the S-6 to be granted permission.<br>Check to make sure that <a href="https://www.asus.com/us/support/FAQ/1007483/">popups are enabled.</a>'
|
||||
// ...
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="javascript:onLoad()">
|
||||
<br>
|
||||
<br>
|
||||
<div id="infobox">
|
||||
Please enable popups to login to update the Nokomis JROTC Database<br>
|
||||
Consult <a href="https://www.asus.com/us/support/FAQ/1007483/"> this website </a>for more information on how to enable popups on chrome.
|
||||
Please enable popups to login to update the Nokomis JROTC Database<br> Consult <a href="https://www.asus.com/us/support/FAQ/1007483/"> this website </a>for more information on how to enable popups on chrome.
|
||||
</div>
|
||||
<div id="write-box">
|
||||
Next Battalion Event Update:<br>
|
||||
Event Type:
|
||||
<select id="event" onchange="updatePage()">
|
||||
Next Battalion Event Update:<br> Event Type:
|
||||
<select id="event" onchange="updatePage()">
|
||||
<option value="FOR" selected>Formation</option>
|
||||
<option value="UNI">Uniform Only</option>
|
||||
<option value="CUS">Custom Message</option>
|
||||
</select><br>
|
||||
<div id="uniformbox">
|
||||
Uniform Type:
|
||||
<select id="uniformtype" onchange="updatePage()">
|
||||
<div id="uniformbox">
|
||||
Uniform Type:
|
||||
<select id="uniformtype" onchange="updatePage()">
|
||||
<option value="ACU" selected>ACU</option>
|
||||
<option value="ASU (Class A)">ASU CA</option>
|
||||
<option value="ASU (No Tie)">ASU (No Tie)</option>
|
||||
<option value="ASU (Class A)">ASU (Class A)</option>
|
||||
<option value="Class B">ASU (No Tie / Class B)</option>
|
||||
<option value="T-Shirt" >T-Shirt</option>
|
||||
</select><br></div>
|
||||
<div id="datebox">
|
||||
Date:
|
||||
<input type="date" id="date"><br></div>
|
||||
<div id="timebox">
|
||||
Time of Formation:
|
||||
<select id="time" onchange="timeChange()">
|
||||
<div id="datebox">
|
||||
Date:
|
||||
<input type="date" id="date"><br></div>
|
||||
<div id="timebox">
|
||||
Time of Formation:
|
||||
<select id="time" onchange="timeChange()">
|
||||
<option value="RTI" selected>RTI</option>
|
||||
<option value="Custom">Custom</option>
|
||||
</select>
|
||||
<br><span id="customtimebox">Custom Time Value:
|
||||
<br><span id="customtimebox">Custom Time Value:
|
||||
<input type="text" id="customtime"></span>
|
||||
</div>
|
||||
<div id="locationbox">
|
||||
Location (i.e Gym, etc):
|
||||
<input type="text" id="location"><br></div>
|
||||
</div>
|
||||
<div id="locationbox">
|
||||
Location (i.e Gym, etc):
|
||||
<input type="text" id="location"><br></div>
|
||||
<div id="messagebox">
|
||||
Custom Message:
|
||||
<input type="text" id="custommessage"><br></div>
|
||||
<input type="button" value="Update" onclick="eventSend()">
|
||||
<input type="button" value="Update" onclick="eventSend()">
|
||||
<br>
|
||||
<br>
|
||||
Current Message:<br>
|
||||
<br> Current Message:<br>
|
||||
<div id="box" style="border: 2px;border-color: black;">
|
||||
Loading...
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
Commanders Cup Points Update:<br>
|
||||
Alpha Companies Points (Current <span id="alphacurrentpoints">Loading...</span>):
|
||||
<input type="text" id="alpha"><br>
|
||||
Bravo Companies Points (Current <span id="bravocurrentpoints">Loading...</span>):
|
||||
<input type="text" id="bravo"><br>
|
||||
<input type="submit" value="Update" onclick="eventSend()">
|
||||
|
||||
<br>
|
||||
<br> Commanders Cup Points Update:<br> Alpha Companies Points (Current:<span id="alphacurrentpoints">Loading...</span>):
|
||||
<input type="text" id="alpha"><br> Bravo Companies Points (Current:<span id="bravocurrentpoints">Loading...</span>):
|
||||
<input type="text" id="bravo"><br>
|
||||
<input type="submit" value="Update" onclick="eventSend()">
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</body>
|
||||
Reference in New Issue
Block a user