diff --git a/editor.html b/editor.html new file mode 100644 index 0000000..32f95c0 --- /dev/null +++ b/editor.html @@ -0,0 +1 @@ +hi \ No newline at end of file diff --git a/js/python/login.js b/js/python/login.js index 0c21cf0..9c50443 100644 --- a/js/python/login.js +++ b/js/python/login.js @@ -1,6 +1,15 @@ -$("#login-button").click(function(event){ - event.preventDefault(); - -$('form').fadeOut(500); -$('.wrapper').addClass('form-success'); -}); \ No newline at end of file +// 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"); + return false; + } + else{ + alert("Username/Password is incorrect"); + return false; + } +} diff --git a/login.html b/login.html index 146be2a..4991dd0 100644 --- a/login.html +++ b/login.html @@ -12,9 +12,9 @@

Login

- - - + + +
@@ -32,4 +32,6 @@ - \ No newline at end of file + + + \ No newline at end of file