PageSourceSearch

https://sempreodonto.com.br/resources/js/chat-trigger.js

js sempreodonto.com.br collected 2026-10-01 14:12:03 UTC 701 bytes, 17 lines download raw bytes

1// Aciona o chatbot (Typebot) ao clicar na div .chat do rodape.
2// Usa a API publica window.Typebot, exposta automaticamente pela lib do chatbot.
3// Nao modifica nem reinicializa o Typebot - apenas alterna (toggle) a janela.
4//https://docs.typebot.com/deploy/web/html-javascript - Documentação para consulta no futuro caso precise
5document.addEventListener('DOMContentLoaded', function () {
6  var chat = document.querySelector('.chat');
7  if (!chat) return;
8
9  // Indica visualmente que e clicavel
10  chat.style.cursor = 'pointer';
11
12  chat.addEventListener('click', function () {
13    if (window.Typebot && typeof window.Typebot.toggle === 'function') {
14      window.Typebot.toggle();
15    }
16  });
17});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.