diff options
| author | Pitu <[email protected]> | 2017-01-17 17:24:20 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-17 17:24:20 -0300 |
| commit | e466f85a4e5fa7097b5657b2f30df55dad5d2589 (patch) | |
| tree | f405e17d86361281f3baf292d88e81f1f50cd6cb /public | |
| parent | Removed unused columns on mobile (diff) | |
| download | host.fuwn.me-e466f85a4e5fa7097b5657b2f30df55dad5d2589.tar.xz host.fuwn.me-e466f85a4e5fa7097b5657b2f30df55dad5d2589.zip | |
Made dashboard not load up login by default
Diffstat (limited to 'public')
| -rw-r--r-- | public/css/style.css | 2 | ||||
| -rw-r--r-- | public/js/panel.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/public/css/style.css b/public/css/style.css index b8d69ee..9130e29 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -81,7 +81,7 @@ img.logo { height: 200px; margin-top: 20px; } PANEL ------------------ */ -section#dashboard { display: none } +section#auth, section#dashboard { display: none } section#auth input { background: rgba(0, 0, 0, 0); } section#auth input, section#auth a { border-left: 0px; diff --git a/public/js/panel.js b/public/js/panel.js index df977cb..27af9f8 100644 --- a/public/js/panel.js +++ b/public/js/panel.js @@ -5,6 +5,7 @@ panel.token = localStorage.admintoken; panel.preparePage = function(){ if(!panel.token){ + document.getElementById('auth').style.display = 'flex'; document.getElementById('tokenSubmit').addEventListener('click', function(){ panel.verifyToken(document.getElementById('token').value); }); |