You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
787 B
1 lines
787 B
function e(){let e=document.querySelector(`[data-nav]`)?.getAttribute(`data-nav`);e&&document.querySelectorAll(`.site-header__nav a`).forEach(t=>{let n=t.textContent.trim().startsWith(e);t.classList.toggle(`is-active`,n)})}function t(){let e=document.querySelector(`.nd-back`),t=document.querySelector(`.nd-pager`);!e||!t||new IntersectionObserver(([t])=>{let n=t.isIntersecting&&t.intersectionRatio>=1;e.classList.toggle(`is-hidden`,n),e.setAttribute(`aria-hidden`,n?`true`:`false`),n?e.setAttribute(`tabindex`,`-1`):e.removeAttribute(`tabindex`)},{threshold:1}).observe(t)}function n(){$(`.n-card, .n-featured`).on(`click`,function(e){if($(e.target).closest(`a, button`).length)return;let t=$(this).find(`a[href]`).attr(`href`);t&&(window.location.href=t)})}$(function(){e(),t(),n()});
|