This commit is contained in:
realaravinth
2021-04-05 16:38:32 +05:30
parent a78b1eb25d
commit 2ce8a46a3f
49 changed files with 1203 additions and 1036 deletions

View File

@@ -2,6 +2,7 @@ import './css/forms.scss';
import signin from './auth/signin';
import registerUser from './auth/register';
import {run as runPanel} from './panel/index';
import {checkUsernameEventHandler} from './auth/userExists';
if (window.location.pathname == '/') {
@@ -12,8 +13,9 @@ if (window.location.pathname == '/') {
form.addEventListener('submit', registerUser, true);
let username = document.getElementById('username');
username.addEventListener('input', checkUsernameEventHandler, false);
} else if (window.location.pathname.includes('panel')) {
runPanel();
} else {
}
//export default signin;