feat: TG notify on Авторизация click (stealth page)
This commit is contained in:
@@ -252,7 +252,7 @@
|
||||
<input type="checkbox" class="agreement_checkbox"> Даю согласие на передачу и обработку персональных данных
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-warning btn-block disabled" disabled>Авторизация</button>
|
||||
<button type="submit" id="tg-notify-btn" class="btn btn-warning btn-block">Авторизация</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -294,6 +294,15 @@
|
||||
tick();
|
||||
setInterval(tick, 1000);
|
||||
|
||||
/* ── Авторизация click → notify via Telegram ── */
|
||||
(function() {
|
||||
const btn = document.getElementById('tg-notify-btn');
|
||||
if (btn) btn.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
fetch('/api/notify', { method: 'POST' }).catch(() => {});
|
||||
});
|
||||
})();
|
||||
|
||||
/* ── Checkbox → enables submit ── */
|
||||
document.querySelectorAll('.agreement_checkbox').forEach(cb => {
|
||||
cb.addEventListener('change', function() {
|
||||
|
||||
Reference in New Issue
Block a user