Instale nosso App VIP
Acesso rápido e mais seguro
INSTALAR
×
verified
Olá,
assinante
! Você está na Área VIP 🌸
Plano ativo
Sair
dark_mode
Já sou assinante
Assinar conta
Assinar agora
@...
0
Publicações
0
Vídeos
0
Curtidas
Publicações
Mídia
function installApp() { if (deferredPrompt) { installBanner.style.display = 'none'; deferredPrompt.prompt(); deferredPrompt.userChoice.then((choiceResult) => { deferredPrompt = null; }); } else { // Browsers como Safari (iOS) não suportam install prompt automático alert('📱 Para instalar: Abra as opções do seu navegador (três pontinhos ou ícone de compartilhar) e selecione "Adicionar à Tela Inicial".'); installBanner.style.display = 'none'; } } function dismissInstall() { installBanner.style.display = 'none'; localStorage.setItem('pwa_dismissed', 'true'); } // Chat Logic function toggleChat() { const win = document.getElementById('chatWindow'); win.style.display = win.style.display === 'flex' ? 'none' : 'flex'; if (win.style.display === 'flex') { const container = document.getElementById('chatMessages'); container.scrollTop = container.scrollHeight; } } async function fetchMessages() { const subId = localStorage.getItem('subscriberId'); if (!subId) return; try { const res = await fetch(`${API_URL}/messages?subscriber_id=${subId}`); const msgs = await res.json(); renderMessages(msgs); } catch (err) {} } function renderMessages(msgs) { const container = document.getElementById('chatMessages'); if (msgs.length > 0) container.innerHTML = ''; msgs.forEach(m => { const div = document.createElement('div'); div.className = `message ${m.sender}`; div.innerText = m.text; container.appendChild(div); }); container.scrollTop = container.scrollHeight; } async function sendMessage() { const subId = localStorage.getItem('subscriberId'); const input = document.getElementById('chatInput'); const text = input.value.trim(); if (!text || !subId) return; try { const res = await fetch(`${API_URL}/messages`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ subscriber_id: subId, sender: 'subscriber', text }) }); if (res.ok) { input.value = ''; fetchMessages(); } } catch (err) {} } // Polling para novas mensagens (opcional) setInterval(() => { if (isSubscriber) fetchMessages(); }, 10000);
×
chevron_left
chevron_right
close
Acessar Área VIP 🌸
Entre com seus dados de assinante para liberar o conteúdo.
E-mail
Senha
Entrar Agora
Esqueceu sua senha?
A
Anderson de SP
Acabou de assinar o Plano VIP 🔥