PageSourceSearch

https://www.wisc.edu/js/redesign.5bdb7d4b8ba64bf098d10d2fb429f09f.js

js wisc.edu collected 2026-10-09 21:32:10 UTC 12,379 bytes, 1 lines download raw bytes

1var uw_utils={ready:function(e){if("function"==typeof e)return"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)},getURL:function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.timeout=3e3,n.onload=function(){var e;200<=n.status&&n.status<400?(e=JSON.parse(n.responseText),t(e)):console.log("XHR request did not return success.")},n.onerror=function(e){console.log("XHR request failed to connect")},n.send()},createElementFromHTML:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},imgLinks=("undefined"!=typeof module&&void 0!==module.exports&&(module.exports.ready=uw_utils.ready,module.exports.getURL=uw_utils.getURL,module.exports.createElementFromHTML=uw_utils.createElementFromHTML),uw_utils.ready(function(){var e=document.getElementById("uw-utility-menu-myuw"),t=document.querySelector("#uw-utility-menu-myuw > a"),n=document.getElementById("uw-utility-menu-myuw-ul");t.addEventListener("click",function(t){return t.preventDefault(),n.classList.toggle("uw-is-visible"),e.classList.toggle("is-active"),!1})}),uw_utils.ready(function(){var e=document.getElementById("uw-mobile-title-bar"),t=document.querySelector("body");e.addEventListener("click",function(e){return e.preventDefault(),t.classList.toggle("uw-mobile-menu-open"),!1})}),uw_utils.ready(function(){function e(e){return"uw-bottom-search-form"===e.getAttribute("id")}function t(e,t){var n=!1;return Array.prototype.forEach.call(t,function(t){t===e&&(n=!0)}),n}function n(e,t,n){var i,a=document.createElement("ul"),r=0,o="";a.classList.add("look-ahead-content"),a.classList.add("list-unstyled"),0==search_terms.length&&uw_utils.getURL("/js/uw_search.json?HASHKEY",function(e){search_terms=e}),1<=search_terms.length&&""!=n&&(t.innerHTML="",search_terms.forEach(function(e){e.keywords&&0<=e.keywords.toLowerCase().indexOf(n.trim().toLowerCase())&&r<5&&(r++,t.appendChild(a),url=e.url.startsWith("http")?e.url:"http://"+e.url,o='<li class="uw-look-ahead-item"><a id="uw-look-ahead-link-'+r+'" class="uw-look-ahead-link" href="'+url+'">'+e.title+"</a></li>",a.appendChild(uw_utils.createElementFromHTML(o)))})),0<r?(1<n.length&&"undefined"!=typeof gtag&&gtag("event","look_ahead_search",{send_to:gaTargets,search_query:n,look_ahead_count:r,search_form:e.getAttribute("id")}),a.appendChild(uw_utils.createElementFromHTML('<li id="uw-look-ahead-search-link-bottom" class="uw-look-ahead-item"><a id="uw-look-ahead-link-bottom" class="uw-look-ahead-link" href="/search/"><svg id="uw-icon-look-ahead-link" aria-hidden="true" viewBox="0 0 841 1024"><path style="fill: #008cba;" d="M841.143 548.571q0 30.857-21.143 52l-372 372q-22.286 21.143-52 21.143-29.143 0-51.429-21.143l-42.857-42.857q-21.714-21.714-21.714-52t21.714-52l167.429-167.429h-402.286q-29.714 0-48.286-21.429t-18.571-51.714v-73.143q0-30.286 18.571-51.714t48.286-21.429h402.286l-167.429-168q-21.714-20.571-21.714-51.429t21.714-51.429l42.857-42.857q21.714-21.714 51.429-21.714 30.286 0 52 21.714l372 372q21.143 20 21.143 51.429z"></path></svg>All People and Pages Results</a></li>')),t.classList.remove("is-hidden"),t.setAttribute("aria-hidden",!1),document.getElementById("uw-look-ahead-link-bottom").addEventListener("click",function(t){t.preventDefault(),e.submit()}),"undefined"!=typeof gtag&&(i=t.querySelectorAll(".uw-look-ahead-link"),[].forEach.call(i,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),i=n,a=this.getAttribute("href");gtag("event","lookahead_click",{send_to:gaTargets,link_url:a,link_text:t,search_query:i})})}))):t.innerHTML=""}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.indexOf(e,t=t||0)===t});for(var i=document.getElementsByClassName("uw-search-phrase"),a=document.getElementsByClassName("uw-search-form"),r=0;r<i.length;r++)(()=>{var o=i[r],l=i[r].nextElementSibling,c=a[r];o.addEventListener("focus",function(t){var i;l.classList.remove("is-hidden"),l.setAttribute("aria-hidden",!1),n(c,l,this.value),("none"!=window.getComputedStyle(document.getElementById("uw-mobile-title-bar")).display||e(c))&&"scroll"in window&&(i=(i=c.parentNode).getBoundingClientRect(),i=(window.pageYOffset||document.documentElement.scrollTop)+i.top,e(c)?i-=25:i+=5,window.scroll({top:i,left:0,behavior:"smooth"}))}),o.addEventListener("blur",function(e){""==this.value&&this.classList.add("uw-default-value")}),o.addEventListener("input",function(e){""==this.value?this.classList.add("uw-default-value"):this.classList.remove("uw-default-value"),n(c,l,this.value)}),c.addEventListener("keydown",function(e){var n=l.querySelectorAll("li"),i=l.querySelector("li:first-child a"),a=l.querySelector("li:last-child a");38==e.keyCode?(e.preventDefault(),o===document.activeElement?0<n.length&&a.focus():t(document.activeElement,l.querySelectorAll("a"))&&((a=document.activeElement.parentNode.previousSibling)&&0<a.childNodes.length?a.firstChild:o).focus()):40==e.keyCode?(e.preventDefault(),o===document.activeElement?0<n.length&&i.focus():t(document.activeElement,l.querySelectorAll("a"))&&((a=document.activeElement.parentNode.nextSibling)&&0<a.childNodes.length?a.firstChild:o).focus()):27==e.ke
1yCode&&t(document.activeElement,l.querySelectorAll("a"))&&o.focus()})})();var o=document.getElementById("uw-search-red-button"),l=document.getElementById("uw-top-search-form"),c=document.getElementById("uw-icon-search"),s=document.getElementById("uw-icon-close");function u(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);do{if(e.matches(t))return e}while(null!==(e=e.parentElement||e.parentNode)&&1===e.nodeType)}search_terms=[],o.addEventListener("click",function(e){var t;return e.preventDefault(),0==search_terms.length&&uw_utils.getURL("/js/uw_search.json?HASHKEY",function(e){search_terms=e}),(t=!l.classList.contains("is-transparent"))?l.classList.add("is-transparent"):l.classList.remove("is-transparent"),l.addEventListener("transitionend",function(){t||i[0].focus()}),"true"==this.getAttribute("aria-expanded")?(l.setAttribute("aria-hidden",!0),this.setAttribute("aria-expanded",!1)):(l.setAttribute("aria-hidden",!1),this.setAttribute("aria-expanded",!0)),c.classList.toggle("is-transparent"),s.classList.toggle("is-transparent"),!1}),document.querySelector("body").addEventListener("mousedown",function(e){if(u(e.target,"#uw-top-search-form")||u(e.target,"#uw-search-red-button-wrapper")||l.classList.contains("is-transparent")||o.click(),"A"!=e.target.nodeName&&"INPUT"!=e.target.nodeName)for(var t=document.getElementsByClassName("uw-look-ahead"),n=0;n<t.length;n++)t[n].classList.add("is-hidden"),t[n].setAttribute("aria-hidden",!0)}),""==document.querySelector("#uw-top-search-form .uw-search-phrase").value&&document.querySelector("#uw-top-search-form input").classList.add("uw-default-value")}),uw_utils.ready(function(){var e,t,n;"undefined"!=typeof gtag&&(document.querySelector("#uw-utility-menu-myuw > a").addEventListener("click",function(e){var t=document.title;document.getElementById("uw-utility-menu-myuw").classList.contains("is-active")?gtag("event","myuw_menu_open",{send_to:gaTargets,page_title:t}):gtag("event","myuw_menu_close",{send_to:gaTargets,page_title:t})}),n=document.querySelectorAll("#uw-main-menu .uw-menu li > a"),t=document.querySelectorAll("#uw-utility-menu > .uw-menu > li:not(.has-submenu) > a"),e=document.querySelectorAll("#uw-utility-menu-myuw-ul > li > a"),n=Array.prototype.slice.call(n),t=Array.prototype.slice.call(t),e=Array.prototype.slice.call(e),[].forEach.call(n,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),n=this.getAttribute("href");gtag("event","main_menu_click",{send_to:gaTargets,link_url:n,link_text:t})})}),[].forEach.call(e,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),n=this.getAttribute("href");gtag("event","myuw_menu_click",{send_to:gaTargets,link_url:n,link_text:t})})}),[].forEach.call(t,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),n=this.getAttribute("href");gtag("event","utility_menu_click",{send_to:gaTargets,link_url:n,link_text:t})})}),n=document.querySelectorAll("footer a"),[].forEach.call(n,function(e){e.addEventListener("click",function(e){var t=""!=this.textContent.trim()?this.textContent.trim():this.getAttribute("aria-label"),n=this.getAttribute("href");gtag("event","footer_link_click",{send_to:gaTargets,link_url:n,link_text:t})})}),e=document.querySelectorAll("main a"),[].forEach.call(e,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),n=this.getAttribute("href");gtag("event","main_body_click",{send_to:gaTargets,link_url:n,link_text:t})})}),t=document.querySelectorAll("#row-ctas a, #uw-hero-text a"),[].forEach.call(t,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),n=this.getAttribute("href");gtag("event","home_cta_click",{send_to:gaTargets,link_url:n,link_text:t})})}),n=document.querySelectorAll("#row-news a"),[].forEach.call(n,function(e){e.addEventListener("click",function(e){var t=this.textContent.trim(),n=this.getAttribute("href");gtag("event","on_campus_click",{send_to:gaTargets,link_url:n,link_text:t})})}),document.addEventListener("click",function(e){var t=e.target.closest(".accordion-trigger");t?gtag("event","click_accordion_header",{send_to:gaTargets,click_text:t.textContent.trim(),expanded:"true"===t.getAttribute("aria-expanded")}):e.target.closest(".accordions-expand")?gtag("event","click_expand_all_accordions",{send_to:gaTargets,click_text:"Expand all"}):e.target.closest(".accordions-collapse")&&gtag("event","click_expand_all_accordions",{send_to:gaTargets,click_text:"Collapse all"})}),UWMediaQuery)&&!0===UWMediaQuery.matches&&gtag("event","prefers_reduced_motion",{send_to:gaTargets,event_category:"Browser",event_label:"Prefers reduced motion"})}),document.querySelectorAll(".uw-img-link"));if(imgLinks)for(var i=0;i<imgLinks.length;i++)imgLinks[i].addEventListener("click",function(e){var t=this.querySelector("a");t&&(window.location=t.getAttribute("href"))});(()=>{var e,t=document.querySelector("html"),n=window.matchMedia("(min-width: 640px)").matches?.25:.05;t.classList.contains("uw-animate")&&(e=new IntersectionObserver(function(e,t){e.forEach(function(e){e.boun
1dingClientRect.top<0&&(e.target.classList.contains("uw-animate-el")||e.target.classList.add("uw-no-animate-el")),e.isIntersecting&&.5<e.intersectionRatio&&!e.target.classList.contains("uw-animate-el")?e.target.classList.add("uw-no-animate-el"):e.isIntersecting&&e.intersectionRatio>n&&!e.target.classList.contains("uw-no-animate-el")&&e.target.classList.add("uw-animate-el")})},{rootMargin:"0px",threshold:[0,n,.5]}),t=document.querySelectorAll(".uw-animate-children"),Array.prototype.forEach.call(t,function(t){e.observe(t)}))})(),uw_utils.ready(function(){var e=document.querySelectorAll(".wp-block-uw-blocks-uw-accordion-group");Array.prototype.forEach.call(e,function(e){var t=Array.prototype.slice.call(e.querySelectorAll(".wp-block-uw-blocks-uw-accordion")),n=e.querySelector(".accordions-expand"),i=e.querySelector(".accordions-collapse"),a={};try{a=JSON.parse(sessionStorage.getItem(e.id))||{}}catch(e){a={}}function r(e){return e.classList.contains("active")}function o(e,t){e.classList.toggle("active",t),e.querySelector(".accordion-trigger").setAttribute("aria-expanded",t?"true":"false"),a[e.id]=t}function l(){try{sessionStorage.setItem(e.id,JSON.stringify(a))}catch(e){}}function c(){var e=(a=t.filter(r).length)===t.length,a=0<a;n&&(n.classList.toggle("active",!e),n.disabled=e,n.setAttribute("aria-expanded",e?"true":"false")),i&&(i.classList.toggle("active",a),i.disabled=!a,i.setAttribute("aria-expanded",a?"true":"false"))}function s(){window.history.replaceState(null,""," ")}t.forEach(function(e){e.querySelector(".accordion-trigger").addEventListener("click",function(){var t=!r(e);o(e,t),t?window.history.replaceState(null,"","#"+e.id):s(),l(),c()})}),n&&n.addEventListener("click",function(){t.forEach(function(e){o(e,!0)}),s(),l(),c()}),i&&i.addEventListener("click",function(){t.forEach(function(e){o(e,!1)}),s(),l(),c()});var u=window.location.hash.slice(1),d=null;t.forEach(function(e){o(e,!!a[e.id]||e.id===u),e.id===u&&(d=e)}),l(),c(),d&&setTimeout(function(){d.scrollIntoView({behavior:"smooth"})},100)})});

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.