hopefully deployment is better than dev

This commit is contained in:
Timothy Pidashev
2022-01-08 16:32:53 -08:00
parent c9385a50b8
commit 074f13683a
6 changed files with 248 additions and 29 deletions

View File

@@ -1,15 +1,9 @@
// Below function Executes on click of login button.
function validate(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
if ( username == "student" && password == "student.23264"){
// window.location = "editor.html"; // Redirecting to other page.
// properly redirect to editor.html
window.location.replace("https://timmypidashev.com/editor.html");
function login(username, password) {
if (username == 'student' && password == 'student.23264') {
setTimeout(function() { // delay the location.replace for one second for login animation
location.replace('assignments.html');
}, 1000);
} else {
return false;
}
else{
alert("Username/Password is incorrect");
return false;
}
}
}