MCPcopy Index your code
hub / github.com/zhongsp/TypeScript / updateBorder

Function updateBorder

docs/book.js:687–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685 })();
686 (function controllBorder() {
687 function updateBorder() {
688 if (menu.offsetTop === 0) {
689 menu.classList.remove('bordered');
690 } else {
691 menu.classList.add('bordered');
692 }
693 }
694 updateBorder();
695 document.addEventListener('scroll', updateBorder, { passive: true });
696 })();

Callers 1

book.jsFile · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected