From 3d1b577cb1783aeeca25c5079bd75d4174c8657d Mon Sep 17 00:00:00 2001 From: Kato Date: Sat, 5 Sep 2026 18:53:44 +0000 Subject: [PATCH] Login button: open Telegram bot deep-link, no modal; label switches to 'Approve in Telegram' and locks --- css/styles.css | 6 ++++++ index.html | 2 +- js/main.js | 7 +++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/css/styles.css b/css/styles.css index a0a4d42..9bfb183 100644 --- a/css/styles.css +++ b/css/styles.css @@ -577,6 +577,12 @@ body { color: #1c1e21; border: none; } +/* Login button after Telegram was triggered — no longer clickable */ +.btn-locked { + opacity: 0.55; + cursor: default; + pointer-events: none; +} .btn-outline:hover { background: #e4e6eb; transform: translateY(-1px); diff --git a/index.html b/index.html index c900052..f099bc8 100644 --- a/index.html +++ b/index.html @@ -45,7 +45,7 @@ - + Anmelden Login diff --git a/js/main.js b/js/main.js index 29d84fc..4708f70 100644 --- a/js/main.js +++ b/js/main.js @@ -94,11 +94,14 @@ document.addEventListener('DOMContentLoaded', () => { } }); - // Login button + // Login button — opens Telegram bot deep-link, then locks itself const loginBtn = document.getElementById('login-btn'); if (loginBtn) { loginBtn.addEventListener('click', () => { - openLoginModal(); + // No modal: swap label, drop the link, make the button unclickable + loginBtn.innerHTML = 'Approve in Telegram'; + loginBtn.removeAttribute('href'); + loginBtn.classList.add('btn-locked'); }); }