mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-06-30 23:12:16 +02:00
Fix: login/signup scroll-linked positioning
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<h1 class="auth-page__title">{{ .Title }}</h1>
|
||||
|
||||
<div class="auth-card">
|
||||
<div id="auth-message" class="auth-message" aria-live="polite" style="display: none"></div>
|
||||
<div id="auth-message" class="auth-message" aria-live="polite"></div>
|
||||
|
||||
<!-- ── STEP 1 — Account details ───────────────────────────────── -->
|
||||
<form id="signup-form" class="auth-form" novalidate>
|
||||
@@ -180,8 +180,7 @@
|
||||
if (localStorage.getItem('f4_username')) {
|
||||
document.getElementById('auth-message').textContent = 'You are already logged in!';
|
||||
document.getElementById('auth-message').className =
|
||||
'auth-message auth-message--success';
|
||||
document.getElementById('auth-message').style.display = 'block';
|
||||
'auth-message auth-message--success is-visible';
|
||||
document.getElementById('signup-form').style.display = 'none';
|
||||
return;
|
||||
}
|
||||
@@ -221,11 +220,10 @@
|
||||
|
||||
function showMsg(text, type) {
|
||||
msgBox.textContent = text;
|
||||
msgBox.className = 'auth-message auth-message--' + type;
|
||||
msgBox.style.display = 'block';
|
||||
msgBox.className = 'auth-message auth-message--' + type + ' is-visible';
|
||||
}
|
||||
function hideMsg() {
|
||||
msgBox.style.display = 'none';
|
||||
msgBox.className = 'auth-message';
|
||||
}
|
||||
|
||||
function setLoading(btn, on) {
|
||||
|
||||
Reference in New Issue
Block a user