PageSourceSearch

https://equal.com/wp-content/themes/bistrocustom/assets/js/code-min.js?ver=1789923414

js equal.com collected 2026-09-24 22:39:08 UTC 13,830 bytes, 1 lines download raw bytes

1function preventAnchorScroll(){const e=$(window),n=function(){e.scrollTop(0)};window.location.hash&&e.one("scroll",n),$((function(){setTimeout((function(){e.off("scroll",n)}),1e3)}))}preventAnchorScroll(),$(document).ready((function(){const e=$("body"),n=$(window),t=$("html"),o=$("header");n.width();$.fn.isOnScreen=function(e="default"){var t={top:n.scrollTop(),left:n.scrollLeft()};t.right=t.left+n.width(),t.bottom=t.top+n.height();var o=t.bottom-t.top,s=this.offset();s.right=s.left+this.outerWidth(),s.bottom=s.top+this.outerHeight();var i=!1;if("default"===e)i=t.bottom>s.top&&t.top<s.bottom;else if("center"===e){var a=.25*o,l=t.top+a;i=t.top+3*a>s.top&&l<s.bottom}else if("top"===e){i=(c=t.top+o/2)>s.top&&t.top<s.bottom}else if("bottom"===e){var c=t.top+o/2;i=t.bottom>s.top&&c<s.bottom}return i};const s=$("#banner-x");if(s.length>0&&s.click((function(e){e.preventDefault();const n=new Date;$(this).parents(".layout--banner").fadeOut(),document.cookie="bannerX=true;expires="+(n.getTime()+864e5)+";SameSite=Secure;path=/"})),o.hasClass("header--sticky")&&o.hasClass("header--sticky-hide")){const t="on"===e.attr("accordion"),s=o.find(".header--secondary");let i=n.scrollTop();window.addEventListener("scroll",(function(){var e=o.outerHeight(),a=s.outerHeight(),l=window.innerHeight+Math.round(window.scrollY)>=document.body.offsetHeight,c=n.scrollTop()<3*e,r=$("body").hasClass("layout--closing")||$("body").hasClass("layout--on");if(!l&&!t&&!r){const e=window.pageYOffset||document.documentElement.scrollTop;c?o.removeClass("scroll--up scroll--down"):e>i?(o.css("transform","translate(0px, -"+a+"px)"),o.addClass("scroll--down").removeClass("scroll--up")):e<i&&(o.css("transform","translate(0, 0)"),o.addClass("scroll--up").removeClass("scroll--down")),i=e<=0?0:e}}),!1)}const i=o.find(".icon--mobile"),a=$(".nav--mobile[nav-type='overlay']"),l=$(".nav--mobile[nav-type='sidebar']"),c=$("#menu--mobile-main");function r(){i.addClass("closed"),e.removeClass("nav--mobile-on layout--on"),e.off("keydown",E),o.find(".dropdown.open .sub-menu").css("display","none"),o.find(".open").removeClass("open"),o.find(".menubutton[aria-expanded=true]").attr("aria-expanded",!1),e.addClass("layout--closing"),setTimeout((()=>{e.removeClass("layout--closing")}),500),a.fadeOut(100),l.removeClass("nav--mobile-sidebar-on")}i.click((function(){$(this).hasClass("closed")?($(this).removeClass("closed"),e.addClass("nav--mobile-on layout--on"),e.on("keydown",E),a.length?a.fadeIn(100).css("display","flex"):l.length&&l.addClass("nav--mobile-sidebar-on")):r()})),n.resize((function(){n.width()>800&&r()}));const d=$("button.icon--search"),u=$("button.button--close-search"),f=$("#search--form.search--dropdown");d.length&&f.length&&(d.click((function(){f.addClass("search--form-open"),f.removeAttr("inert"),e.addClass("layout--on")})),u.click((function(){f.removeClass("search--form-open"),f.attr("inert","true"),e.removeClass("layout--on"),e.addClass("layout--closing"),setTimeout((()=>{e.removeClass("layout--closing")}),500)}))),f.on("keydown",(function(e){if("Escape"===e.key&&(e.preventDefault(),$(".icon--search.active").trigger("click")),"Tab"===e.key&&!1===e.shiftKey){const n=$(".icon--search.active"),t=$(this).find(".button--search").is(":focus"),o=!$(this).find(".search--results-list").is(":empty"),s=o?$(this).find(".search--results-container .search--items .item:last-of-type .card"):null;(t&&!o||o&&s.find(" a, button").last().is(":focus"))&&(e.preventDefault(),n.focus())}})),o.find(".logo").on("keydown",(function(e){"Tab"===e.key&&!0===e.shiftKey&&$(this).is(":focus")&&$("body").hasClass("layout--on")&&(e.preventDefault(),f.find("a,button").last().focus())}));var h,m=$('header .nav--social a[href="#worldwide"]'),p=$(".worldwide--popup");m.length>0&&p.length>0&&(m.on("click",(function(e){e.preventDefault(),p.addClass("open").fadeIn()})),p.on("click",".worldwide--overlay, .worldwide--close",(function(e){e.preventDefault(),p.removeClass("open").fadeOut()}))),document.querySelectorAll("video").length&&(h="body + div",new Promise((e=>{if(document.querySelector(h))return e(document.querySelector(h));const n=new MutationObserver((t=>{document.querySelector(h)&&(n.disconnect(),e(document.querySelector(h)))}));n.observe(document,{childList:!0,subtree:!0})}
1))).then((e=>{e.shadowRoot&&e.remove()}));const g=$(".social--share");if(g.length){const e=g.data("type"),n=g.find("#share-url");if("menu"===e){const e=g.find(".share-menu");g.mouseenter((function(){e.fadeIn()})).mouseleave((function(){e.fadeOut()})).on("focusout",(function(){const n=$(this);setTimeout((function(){n.find(":focus").length||e.fadeOut()}),0)})).click((function(){e.fadeToggle()})),e.on("keydown",(function(e){"Escape"===e.key&&($(this).fadeOut(),$(this).siblings(".share-menu-btn").focus())}))}n.click((function(t){if(t.preventDefault(),navigator.clipboard.writeText(window.location.href),"menu"!==e){const e=$("#copied-confirmation");e.css("display","inline-block"),setTimeout((function(){e.css("display","none")}),2e3)}else n.html(n.html().replace("Copy link","Copied!")),setTimeout((function(){g.find(".share-menu").fadeOut()}),1e3),setTimeout((function(){n.html(n.html().replace("Copied!","Copy link"))}),1500);t.stopPropagation()}))}$(".module--video .module--image-object, .module--video .play-icon").click((function(){if(!$(this).parent(".fancy--vid-wrapper").length){const e=$(this).siblings(".module--video-object:not(.video-loop)"),n=e.find("video"),t=$(this).siblings(".embed-wrapper");if(n.length)n.trigger("play");else if(t.length){const e=t.find("iframe");e.attr("src",e.attr("src")+"&autoplay=1&muted=1")}$(this).add($(this).siblings().not([e[0],t[0]])).fadeOut()}}));var b=$(".bistro-lang-switcher.dropdown");b.length>0&&(b.find("button.wgcurrent").on("click",(function(e){b.toggleClass("open")})),document.addEventListener("click",(function(e){$(e.target).hasClass(".wgcurrent")||0!==$(e.target).closest(".bistro-lang-switcher.dropdown").length||b.removeClass("open")})));const v=$("#icon--scroll");e.is('[animation-scroll="on"]')&&(v.click((function(){t.add(e).animate({scrollTop:e.offset().top},700)})),n.scroll((function(){document.body.scrollTop>600||document.documentElement.scrollTop>600?v.addClass("visible"):v.removeClass("visible")}))),$((function(){$('a[href*="#"]:not([href="#"])').click((function(n){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){let n=$(this.hash);if(n=n.length?n:$("[name="+this.hash.slice(1)+"]"),n.length){0!==$(this).closest(".nav--mobile-on").length&&r();let s=75;return o.hasClass("header--sticky")&&(s+=o.outerHeight()),t.add(e).animate({scrollTop:n.offset().top-s},700),!1}}}))})),$((function(){if(document.location.hash){const n=$(document.location.hash);n.length&&t.add(e).animate({scrollTop:n.offset().top-$("header").outerHeight()},700)}})),$(document).on("click",'.search--build .search--heading a[href*="#"]:not([href="#"])',(function(o){let s=t.add(e),i=50;search_header=$(this).closest("#search--form"),0!==search_header.length&&(s=search_header,i=125,n.width&&(i=215));var a=$(this).closest(".nav--mobile");0!==a.length&&(s=a.find(".nav-container"),i=125);var l=$(this.hash);if((l=l.length?l:$("[name="+this.hash.slice(1)+"]")).length){var c=l[0].offsetTop-i;return s.animate({scrollTop:c},700),!1}})),$(".scroll--icon").each((function(){$(this).click((function(){const n=$(this).closest("section").next("section");t.add(e).animate({scrollTop:n.offset().top-75},700)}))}));const y=$(".module.module--nav-block.faqs-nav");if(y.length>0){const e=y.find(".button-container .btn");e.length>0&&(y.find(".button-container .btn:first-of-type").addClass("active"),e.on("click",(function(n){n.preventDefault(),$(this).hasClass("active")||(e.removeClass("active"),$(this).addClass("active"))})))}const w=$(".splide:not(.splide--custom)");function C(e,n){function t(){$(n.Elements.root).find(".container--splide-pag .slide-numbers span").html(`${e.index+1}/${e.length}`)}return{mount:function(){$(n.Elements.root).hasClass("splide--fade")||t(),e.on("move",t)}}}function k(e,n){function t(){const e=$(n.Elements.root),t=e.find(".item.is-active figcaption").html();e.find(".caption-gal").html(t||"")}return{mount:function(){t(),e.on("active",t)}}}w.length&&(Splide.defaults={type:"loop",speed:2e3,perPage:1,perMove:1,snap:!0,omitEnd:!0,focusableNodes:"a:not([aria-hidden]), button, textarea, input, select, iframe",breakpoints:{767:{perPage:1,fixedWidth:!1,fixedHeight:!1}}},w.each((function(){const e=new Splide(this);let n={},t={};$(this).hasClass("has-numbers")&&($(this).hasClass("splide--fade")&&$(this).find(".container--splide-pag .slide-numbers span").text("1/"+$(this).find(".splide__slide").length),t.number=C),$(this).find(".caption-gal").length&&(t.caption=k);const o=e.root.querySelector(".progress-bar");o&&e.on("mounted move",(function(){const n=e.Components.Controller.getEnd()+1,t=Math.min((e.index+1)/n,1);o.style.width=String(100*t)+"%"})),e.on("pagination:mounted",(function(){const e=$(".splide__pagination"),n=e.attr("data-pag-color");
1e.find(".splide__pagination__page").css("background",n)})),jQuery.isEmptyObject(n)?e.mount(t):e.mount(t,n),$(this).hasClass("fancybox")&&"function"==typeof Fancybox&&Fancybox.bind(".splide__slide:not(.splide__slide--clone) [data-fancybox]",{})})));const T=$(".module.masonry--on");T.length&&T.each((function(e){const n=$(this).find(".items");n.length&&n.masonry({itemSelector:".item",columnWidth:".item--sizer",gutter:".item--gutter-sizer",percentPosition:!0})}));if($("body[animation-fade]").length){const e=$(".module.animation--true"),t=$(".module.animation--true .items .item");setTimeout((function(){e.not(".animation--on").each((function(e){$(this).isOnScreen("top")&&$(this).addClass("animation--on")})),t.not(".animation--item-on").each((function(e){$(this).isOnScreen("top")&&$(this).addClass("animation--item-on")}))}),10),n.scroll((function(){e.not(".animation--on").each((function(e){$(this).isOnScreen("center")&&$(this).addClass("animation--on")})),t.not(".animation--item-on").each((function(e){$(this).isOnScreen("center")&&$(this).addClass("animation--item-on")}))}))}function x(e,n){if(e.length<=0)return;const t=e.attr("aria-label");let o=t;!0===n?(o=t.replace("show","hide"),e.addClass("open")):(o=t.replace("hide","show"),e.removeClass("open")),e.attr({"aria-expanded":n,"aria-label":o})}function D(e,n){e.find("li .menubutton").click((function(){const e=$(this).siblings(".sub-menu.dropdown-menu"),t=e.hasClass("open");x($(this),!t),t?e.removeClass("open"):e.addClass("open"),n||e.slideToggle()}))}$(".skip-links a").click((function(){const e=$(this).attr("href");$(e).attr("tabindex","-1").focus()}));const S=$("#menu--desktop-main");function E(e){const n=o.find(".column--header .logo"),t=$(".nav--mobile .icon--search"),s=$(".nav--mobile .nav--social"),a=o.find(".nav--top-mobile");"Escape"!==e.key||$(e.target).parents(".sub-menu.dropdown-menu").length?"Tab"===e.key&&e.shiftKey?n.is(":focus")?(e.preventDefault(),t.length?t.focus():s.length?s.find("li:last-of-type a").focus():a.length?a.find("li:last-of-type a").focus():c.find("> li:last-of-type a").focus()):i.is(":focus")&&(e.preventDefault(),n.focus()):"Tab"===e.key&&(n.is(":focus")?(e.preventDefault(),i.focus()):t.length&&t.is(":focus")||!t.length&&s.length&&s.find("li:last-of-type a").is(":focus")||!t.length&&!s.length&&a.length&&a.find("li:last-of-type a").is(":focus")?(e.preventDefault(),n.focus()):t.length||s.length||a.length||!c.find("li:last-of-type a").is(":focus")||(e.preventDefault(),n.focus())):r()}D(S,!0),S.find(".sub-menu.dropdown-menu").each((function(){const e=$(this);e.on("focusout",(function(){setTimeout((function(){$(":focus").closest(e).length<=0&&($siblingBtns=e.siblings(".menubutton"),e.removeClass("open"),x($siblingBtns,!1))}),0)}))})),S.find("li.dropdown").on("mouseenter mouseleave",(function(e){const n=$(e.currentTarget).find("> ul.sub-menu.dropdown-menu"),t=n.hasClass("open");"mouseenter"!==e.type||t?"mouseleave"===e.type&&t&&(x(n.siblings(".menubutton"),!1),n.removeClass("open")):(x(n.siblings(".menubutton"),!0),n.addClass("open"))})),D(c,!1),S.add(c).on("keydown",(function(e){const n=$(this).find(":focus").parent(),t=n.parent(".sub-menu.dropdown-menu"),o="menu--mobile-main"===$(this).attr("id");let s="";s=t.length?t.siblings(".menubutton"):n.find("> .menubutton"),"Escape"===e.key&&t.length?(t.removeClass("open"),s.focus(),o&&(x(s,!1),t.slideToggle())):o&&"Tab"===e.key&&t.length?t.find("li:last-of-type a").is(":focus")&&!e.shiftKey?(e.preventDefault(),n.parents(".menu-item").next("li").find("> a").focus()):e.shiftKey&&t.find("li:first-of-type a").is(":focus")&&(e.preventDefault(),s.focus()):"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),function(e,n){const t=n.next(),o=e.is(":focus");if(e.length&&o&&"true"==e.attr("aria-expanded"))n.find("> .sub-menu > li:first > a").focus();else if(e.length&&o){const e=t.find("> a"),n=t.find(".menubutton");e.length?e.focus():n.length?n.focus():t.next().find("> a").focus()}else n.hasClass("dropdown")?e.focus():t.find("> a").focus()}(s,n)):"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),function(e,n){const t=n.prev(),o=t.find(".menubutton");if(e.length&&e.is(":focus"))n.find("> a").length?n.find("> a").focus():o.length?o.focus():t.prev().find("> a").focus();else if(t.hasClass("dropdown"))t.find(".menubutton").focus();else if(t.hasClass("no-link")){const e=n.prevAll(".has-link, .no-link.dropdown").eq(0);e.hasClass("dropdown")?e.find(".menubutton").focus():e.find("a").focus()}else t.find("> a").focus()}(s,n)):"End"!==e.key&&"Home"!==e.key||(e.preventDefault(),function(e,n,t){const o=(n.length?n:t).find("> li");let s="";
1"Home"===e?s=o.first():"End"===e&&(s=o.last()),s.find("> a").length?s.find("> a").focus():s.find("> button").focus()}(e.key,t,$(this)))}))}));

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.