PageSourceSearch

https://www.tcm10.com.br/script/script.js

js tcm10.com.br collected 2026-10-10 01:17:35 UTC 1,421 bytes, 54 lines download raw bytes

1 const modal = document.getElementById('meuModal');
2        const botaoFechar = document.getElementById('fecharModal');
3
4        document.addEventListener('DOMContentLoaded', () => {
5            modal.classList.add('active');
6        });
7
8        function fecharModal() {
9            modal.classList.remove('active');
10        }
11
12        botaoFechar.addEventListener('click', fecharModal);
13
14        modal.addEventListener('click', (evento) => {
15            if (evento.target === modal) {
16                fecharModal();
17            }
18        });
19
20function moveCarousel(direction) {
21    const strip = document.getElementById('carouselStrip');
22    const cardWidth = strip.querySelector('.program-card').offsetWidth + 20; 
23
24    strip.scrollBy({
25        left: direction * cardWidth,
26        behavior: 'smooth'
27    });
28}
29
30function moveCarousel2(direction) {
31    const strip = document.getElementById('carouselStrip2');
32    const cardWidth = strip.querySelector('.program-card').offsetWidth + 20; 
33
34    strip.scrollBy({
35        left: direction * cardWidth,
36        behavior: 'smooth'
37    });
38}
39
40let carouselInterval;
41const TEMPO_CONTAGEM = 3000;
42function startAutoPlay() {
43    stopAutoPlay(); 
44    
45    carouselInterval = setInterval(() => {
46        moveCarousel(1);
47    }, TEMPO_CONTAGEM);
48}
49
50function stopAutoPlay() {
51    clearInterval(carouselInterval);
52}
53
54startAutoPlay();

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.