PageSourceSearch

https://www.abcdaracao.com.br/wp-content/themes/ciastore/template-…/functions/scrollnavbar-bottom.js?ver=1.0.0

js abcdaracao.com.br collected 2026-10-04 09:42:00 UTC 1,166 bytes, 34 lines download raw bytes

1let scroollPadrao = 100;
2let barStatus = false;
3window.onscroll = () => {
4    let navbar = document.querySelector('.scroll-header');
5    let logo = document.querySelector('.nav-brand');
6
7    let direcao = document.body.getBoundingClientRect().top;
8    let condicao = direcao > scroollPadrao ? false : true;
9    // scroollPadrao = direcao;
10
11    if(window.scrollY > 100 && condicao == true){
12        navbar.classList.add("fixed-top");
13        navbar.classList.add("animated");
14        navbar.classList.remove('fadeIn');
15        navbar.classList.add("slideInDown");
16        logo.classList.add('logo-main');
17        logo.classList.add('logo-min');
18
19        barStatus = true;
20    }
21    if(window.scrollY > 100 && condicao == false && barStatus == true){
22        navbar.classList.remove("fixed-top");
23        navbar.classList.remove("slideInDown");
24        logo.classList.remove('logo-main');
25        barStatus = false;
26    }
27    if(window.scrollY < 100){
28        navbar.classList.remove("fixed-top");
29        navbar.classList.remove("slideInDown");
30        logo.classList.remove('logo-min');
31        logo.classList.remove('logo-main');
32        barStatus = false;
33    }
34}

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.