TAI CHI CLASS BOOKING

Log in to book your Tai Chi & Qigong sessions and manage your remaining class credits.

document.addEventListener("DOMContentLoaded", function () { const supabaseClient = window.supabase.createClient( "https://jchooqavancilnpkhisk.supabase.co", "sb_publishable_ccrWbj8BE5UWQqewiOfArw_6zumlUx9" ); const loginButton = document.getElementById("taichi-login-button"); if (!loginButton) return; loginButton.addEventListener("click", async function () { const email = document.getElementById("taichi-email").value.trim(); const password = document.getElementById("taichi-password").value; const message = document.getElementById("taichi-login-message"); if (!email || !password) { message.textContent = "Please enter your email address and password."; return; } message.textContent = "Logging in..."; const { error } = await supabaseClient.auth.signInWithPassword({ email: email, password: password }); if (error) { message.textContent = "Incorrect email or password."; return; } message.textContent = "Login successful."; document.getElementById("taichi-login").style.display = "none"; const dashboard = document.getElementById("taichi-dashboard"); if (dashboard) { dashboard.style.display = "block"; } }); });
Scroll to Top