diff --git a/app/static/js/login.js b/app/static/js/login.js index f8a7902ddca382139b2ad592bb88a19b66557016..cdc17a56f29d9f20ff51c634f9d307f997528f7f 100644 --- a/app/static/js/login.js +++ b/app/static/js/login.js @@ -1,16 +1,4 @@ -// Login form validation -document.addEventListener('DOMContentLoaded', function() { - const loginForm = document.getElementById('loginForm'); - - if (loginForm) { - loginForm.addEventListener('submit', function(e) { - const username = document.getElementById('username').value; - const password = document.getElementById('password').value; - - if (!username || !password) { - e.preventDefault(); - alert('Please enter both username and password'); - } - }); - } -}); \ No newline at end of file +// Initialization for ES Users +import { Input, initMDB } from "mdb-ui-kit"; + +initMDB({ Input }); \ No newline at end of file diff --git a/app/templates/js/scripts.js b/app/static/js/scripts.js similarity index 100% rename from app/templates/js/scripts.js rename to app/static/js/scripts.js diff --git a/app/templates/js/login.js b/app/templates/js/login.js deleted file mode 100644 index cdc17a56f29d9f20ff51c634f9d307f997528f7f..0000000000000000000000000000000000000000 --- a/app/templates/js/login.js +++ /dev/null @@ -1,4 +0,0 @@ -// Initialization for ES Users -import { Input, initMDB } from "mdb-ui-kit"; - -initMDB({ Input }); \ No newline at end of file