PageSourceSearch

https://production2.leeds.ac.uk/jaducdn/site/javascript/uol-anchor-to-accordion.min.js?v=1789464161

js leeds.ac.uk collected 2026-09-24 07:58:48 UTC 1,642 bytes, 1 lines download raw bytes

1var debug=0;var dc="color: #b552d1; font-weight: bold";function openAccordion(hash){const anchorElement=document.getElementById(hash);if(anchorElement){const contentDiv=anchorElement.closest(".uol-accordion__content");if(debug)console.log("%cFound content div:",dc,contentDiv);if(contentDiv){const accordionDiv=contentDiv.closest(".uol-accordion");if(debug)console.log("%cFound accordion div:",dc,accordionDiv);if(accordionDiv){contentDiv.classList.add("uol-accordion__content--expanded");contentDiv.style.opacity=1;contentDiv.style.visibility="visible";contentDiv.style.maxHeight="100%";const accordionButton=accordionDiv.querySelector(".uol-accordion__btn");if(accordionButton){accordionButton.setAttribute("aria-expanded","true");if(debug)console.log("%caria-expanded set to true on button:",dc,accordionButton)}else{if(debug)console.error("Accordion button not found.")}setTimeout(()=>{accordionDiv.scrollIntoView({behavior:"smooth",block:"start"})},1)}else{if(debug)console.error("Accordion div not found.")}}else{if(debug)console.error("Content div not found.")}}else{if(debug)console.error("Anchor element with matching id not found.")}}window.addEventListener("load",()=>{const hash=location.hash?location.hash.substring(1):null;if(debug)console.log("%cLink loaded with hash:",dc,hash);if(hash){setTimeout(()=>{openAccordion(hash)},300)}document.addEventListener("click",function(event){if(event.target.tagName==="A"&&event.target.getAttribute("href")?.startsWith("#")){const clickedHash=event.target.getAttribute("href").substring(1);if(debug)console.log("%cAnchor clicked with hash:",dc,clickedHash);openAccordion(clickedHash)}})});

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.