MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / myFunction

Function myFunction

client/src/component/Navbar.jsx:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 const sticky = navbar.offsetTop;
56
57 function myFunction() {
58 if (window.pageYOffset >= sticky) {
59 setIsScrolled(true);
60 navbar.classList.add("sticky");
61 } else {
62 setIsScrolled(false);
63 navbar.classList.remove("sticky");
64 }
65 }
66
67 if (window.pageYOffset >= sticky) {
68 setIsScrolled(true);

Callers 1

NavbarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected