PageSourceSearch

https://www.nokiafederal.com/wp-content/cache/min/1/wp-content/themes/Divi-child/script.js?ver=1790585135

js nokiafederal.com collected 2026-10-04 03:54:09 UTC 4,441 bytes, 11 lines download raw bytes

1jQuery(document).ready(function($){$("#main-header #mobile_menu.et_mobile_menu .menu-item-has-children > a, #et-boc header .et_mobile_menu .menu-item-has-children > a").each(function(){if($(this).siblings('.sub-menu-toggle').length===0){$("<div class='sub-menu-toggle'></div>").insertBefore($(this))}});$(document).on("click","#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle, #et-boc header .et_mobile_menu .sub-menu-toggle",function(){$(this).toggleClass("popped")})});(function($){$(function(){var $slider=$('#home-banner .et_pb_slider');var $diviControls=$slider.find('.et-pb-controllers a');var $nav=$('#home-banner-nav');var $items=$nav.find('.hero-nav-item');if(!$slider.length||!$diviControls.length||!$nav.length||$items.length<2)return;var DURATION=12000;var timer=null;function goTo(index){index=Math.max(0,Math.min(index,$diviControls.length-1));$diviControls.eq(index).trigger('click')}
2function getActiveIndex(){var i=$slider.find('.et-pb-controllers a.et-pb-active-control').index();return(i>=0)?i:0}
3function resetBars(){$items.removeClass('is-active');$items.find('.hero-nav-bar').each(function(){this.style.transitionDuration='0ms';this.style.width='0%'})}
4function animateBar(index){var $bar=$items.eq(index).find('.hero-nav-bar');$bar[0].style.transitionDuration='0ms';$bar[0].style.width='0%';$bar[0].offsetHeight;$bar[0].style.transitionDuration=DURATION+'ms';$bar[0].style.width='100%'}
5function setActive(index){resetBars();$items.eq(index).addClass('is-active');animateBar(index)}
6function startAutoplay(){stopAutoplay();timer=setInterval(function(){var i=getActiveIndex();var next=(i+1)%$diviControls.length;goTo(next)},DURATION)}
7function stopAutoplay(){if(timer)clearInterval(timer);timer=null}
8$items.on('click',function(){var index=parseInt($(this).attr('data-slide'),10);if(!isNaN(index))goTo(index)});var target=$slider.find('.et-pb-controllers').get(0);if(target){var obs=new MutationObserver(function(){var i=getActiveIndex();setActive(i)});obs.observe(target,{attributes:!0,subtree:!0,attributeFilter:['class']})}
9setActive(getActiveIndex());startAutoplay();$slider.add($nav).on('mouseenter',stopAutoplay).on('mouseleave',startAutoplay)})})(jQuery);(function initToc(){const tocNav=document.querySelector("#tocNav");if(!tocNav)return;const content=document.querySelector("#main-content")||document.querySelector("#content")||document.body;const headings=[...content.querySelectorAll("h2")].filter(h=>h.textContent.trim().length>0&&!h.closest(".toc")&&!h.closest(".et_pb_code_inner")&&!h.closest(".footer-cta"));if(!headings.length)return;const used=new Set();const slugify=(txt)=>txt.trim().toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-");for(const h of headings){let base=h.id||slugify(h.textContent);let id=base;let i=2;while(used.has(id)||(document.getElementById(id)&&document.getElementById(id)!==h)){id=`${base}-${i++}`}
10h.id=id;used.add(id)}
11tocNav.innerHTML=headings.map(h=>`<a class="toc__item toc__item--h2" href="#${h.id}">${h.textContent.trim()}</a>`).join("");const headerOffset=80;tocNav.addEventListener("click",(e)=>{const a=e.target.closest("a");if(!a)return;e.preventDefault();const el=document.getElementById(a.getAttribute("href").slice(1));if(!el)return;const y=el.getBoundingClientRect().top+window.scrollY-headerOffset;window.scrollTo({top:y,behavior:"smooth"});history.replaceState(null,"",`#${el.id}`)});const links=[...tocNav.querySelectorAll("a")];const linkById=new Map(links.map(a=>[a.getAttribute("href").slice(1),a]));const observer=new IntersectionObserver((entries)=>{const visible=entries.filter(e=>e.isIntersecting).sort((a,b)=>b.intersectionRatio-a.intersectionRatio)[0];if(!visible)return;links.forEach(a=>a.classList.remove("is-active"));linkById.get(visible.target.id)?.classList.add("is-active")},{threshold:[0.2,0.5,0.8],rootMargin:`-${headerOffset + 16}px 0px -60% 0px`,});
11headings.forEach(h=>observer.observe(h))})();jQuery(function($){$('.post-meta, .freshy-meta').each(function(){var html=$(this).html();html=html.replace(/\|\s*,\s*/g,'| ');html=html.replace(/,\s*<\/p>/g,'</p>');html=html.replace(/,\s*(<a\b[^>]*>)/g,'$1');html=html.replace(/,\s*,/g,',');$(this).html(html)})});document.addEventListener('DOMContentLoaded',function(){const links=document.querySelectorAll('.market-anchor-links a');links.forEach(link=>{link.addEventListener('click',function(){links.forEach(l=>l.classList.remove('active'));this.classList.add('active')})})})

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.