PageSourceSearch

https://westwingwriters.com/wp-content/themes/bistrotheme/assets/js/code-min.js?ver=21034541481

js westwingwriters.com collected 2026-09-30 16:49:14 UTC 3,816 bytes, 1 lines download raw bytes

1function preventAnchorScroll(){var e=function(){$(window).scrollTop(0)};window.location.hash&&$(window).one("scroll",e),$((function(){setTimeout((function(){$(window).off("scroll",e)}),1e3)}))}preventAnchorScroll(),$(document).ready((function(){$.fn.isOnScreen=function(){var e=$(window),o={top:e.scrollTop(),left:e.scrollLeft()};o.right=o.left+e.width(),o.bottom=o.top+e.height();var t=this.offset();return t.right=t.left+this.outerWidth(),t.bottom=t.top+this.outerHeight(),!(o.right<t.left||o.left>t.right||o.bottom<t.top||o.top>t.bottom)};var e=$(".fixed-scrolling .top-banner").height()+$(".fixed-scrolling .top-bar").height()+$(".fixed-scrolling header").height();$(".fixed-scrolling-margin").height(e),$(window).scrollTop()>100&&$(".head-nav-wrapper").addClass("sticky-active"),$(window).on("scroll",(function(){$(window).scrollTop()>100?$(".head-nav-wrapper").addClass("sticky-active"):$(".head-nav-wrapper").removeClass("sticky-active")})),$("header button.navbar-toggle").click((function(){$(this).toggleClass("closed"),$("body").toggleClass("menu"),$("header .collapsed-menu.overlay").fadeToggle(200),$("header .collapsed-menu.sidebar").toggleClass("open")})),$(window).resize((function(){$(window).width()>768&&($("body").removeClass("menu"),$("header button.navbar-toggle").addClass("closed"),$("header .collapsed-menu.overlay").fadeOut(200),$("header .collapsed-menu.sidebar").removeClass("open"),$("header .collapsed-menu.drop").removeClass("show"))})),$(".search-btn .svg-btn-wrapper").click((function(){$("#search-form").fadeIn(200)})),$(".close-btn .svg-btn-wrapper").click((function(){$("#search-form").fadeOut(200)})),$("#gform_1 .gform_footer").addClass("btn"),$(window).scroll((function(){var e=-.3*$(document).scrollTop()+"px";$("#hero .parallax-scroll img").css({bottom:e}),$(".parallax-scroll-all .module .bg-wrapper").each((function(){if($(this).isOnScreen()){var e=$(window).scrollTop()+$(window).height(),o=$(this).height(),t=($(this).find("img").height()-o)*((e-$(this).offset().top)/(Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)+o));$(this).find("img").css("transform","translate(-50%, "+t+"px)")}}))})),$("#scroll-top-btn").click((function(){$("html, body").animate({scrollTop:$("body").offset().top},700)})),$(window).scroll((function(){document.body.scrollTop>600||document.documentElement.scrollTop>600?$("#scroll-top-btn").addClass("visible"):$("#scroll-top-btn").removeClass("visible")})),$((function(){$('a[href*="#"]:not([href="#"])').click((function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=$(this.hash);if((e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length)return $("html, body").animate({scrollTop:e.offset().top-75},700),!1}}))})),$((function(){if(document.location.hash){var e=$(document.location.hash);$("html, body").animate({scrollTop:e.offset().top-75},700)}})),$(".module--accordion-block .accordion-item .label").click((function(){var e=$
1(this).closest(".accordion-item");e.toggleClass("open"),e.find(".content").slideToggle()}));const o=$(".splide:not(.splide--custom)");if(o.length&&(Splide.defaults={type:"loop",speed:2e3,perPage:1,perMove:1,gap:"1rem",snap:!0,omitEnd:!0,focusableNodes:"a:not([aria-hidden]), button, textarea, input, select, iframe"},o.each((function(){const e=new Splide(this);let o={},t={};jQuery.isEmptyObject(o)?e.mount(t):e.mount(t,o)}))),$("#gform_2").length){let e=$(".gchoice").last(),o=e.children("input[type='text']");"Other"==o.val()&&o.val(""),o.attr("placeholder","Other"),e.click((function(){o.attr("disabled")&&(o.removeAttr("disabled").focus(),$(this).children("input[type='radio']").prop("checked",!0))}))}var t="calc(100vh - "+$(".head-nav-wrapper").height()+"px)";$("#hero.full-height-home-hero").css("min-height",t)}));

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.