window.logout = function () {
fetch('/~/projects/login-system/logout', { method: 'POST' });
alert('Logged Out!')
location.href = "index.html"
}
// var confusionScore = 0
// var knowledgableScore = 0
// var newScore = 0
// var questions = 0
var submit = document.getElementById("submit")
submit.addEventListener("click", quizResults);
// var q1a1 = document.getElementById("q1a1");
// var q1a2 = document.getElementById("q1a2");
// var q1a3 = document.getElementById("q1a3");
// q1a1.addEventListener("click", knowledgable);
// q1a2.addEventListener("click", news);
// q1a3.addEventListener("click", confusion);
// var q2a1 = document.getElementById("q2a1");
// var q2a2 = document.getElementById("q2a2");
// var q2a3 = document.getElementById("q2a3");
// var q2a4 = document.getElementById("q2a4");
// q2a1.addEventListener("click", news);
// q2a2.addEventListener("click", knowledgable);
// q2a3.addEventListener("click", knowledgable);
// q2a4.addEventListener("click", confusion);
// var q3a1 = document.getElementById("q3a1");
// var q3a2 = document.getElementById("q3a2");
// var q3a3 = document.getElementById("q3a3");
// q3a1.addEventListener("click", knowlegable);
// q3a2.addEventListener("click", news);
// q3a3.addEventListener("click", confusion);
// function knowlegable() {
// knowlegableScore += 1;
// questions += 1
// }
// function news() {
// newScore += 1
// questions += 1
// }
// function confusion() {
// confusionScore += 1
// questions += 1
// }
// var result = document.getElementByClassName("result");
function quizResults() {
location.replace("info.html");
// if (questions >= 3) {
// updateResults()
// } else {
// alert(questions)
// alert("Finish all of the questions!")
// }
}
// function updateResults() {
// if (knowlegableScore >= 2) {
// result.innerHTML = "You seem to already know a lot! You should check out the Info tab!";
// } else if(confusionScore >= 2) {
// result.innerHTML = "There's tons to learn!You should check out the Info tab!";
// } else if(newScore >= 2) {
// result.innerHTML = "There's tons to learn!You should check out the Info tab!";
// } else {
// result.innerHTML = "Hmmm.. I can't decide.";
// }
// }