PageSourceSearch

https://jewinthecity.com/wp-content/themes/jewinthecity/js/parts/part-header.js?ver=1.0.0

js jewinthecity.com collected 2026-10-02 06:23:24 UTC 2,978 bytes, 1 lines download raw bytes

1"use strict";jQuery(document).ready((function(e){let i={isAppleDevice:()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),removeFixed(){e("html").removeClass("html-fixed")},addFixed(){e("html").addClass("html-fixed")}};var d,n,o,s;function a(){let i=e(".header");e(window).scrollTop()>=(window.innerWidth>=992?40:1)?e(i).addClass("header-scrolled"):e(i).removeClass("header-scrolled")}function t(){e(window).width()>991?(e(".header").removeClass("header-opened"),e(".header-mobile-menu").removeClass("opened"),e(".header__nav").css({display:"flex"}),i.removeFixed()):(!e(".header-mobile-menu").hasClass("opened")&&window.innerWidth<=991&&e(".header__nav").css({display:"none"}),e(".header-mobile-menu").hasClass("opened")&&window.innerWidth<=500?e(".header__nav").css({display:"block"}):e(".header-mobile-menu").hasClass("opened")&&window.innerWidth>500&&e(".header__nav").css({display:"grid"}))}e(".header-search-mobile-toggle").click((function(i){i.preventDefault(),e(this).toggleClass("search-opened"),e(this).hasClass("search-opened")?(e(".header-search-mobile").slideDown(200),e(".header-search-mobile").find(".header-search-mobile--input").focus()):e(".header-search-mobile").slideUp(200)})),function(){let i={scriptExecuted:!1,windowIsTabletMobile:!1};e(window).on("resize scroll load",(function(){window.innerWidth<=991?i.windowIsTabletMobile=!0:i.windowIsTabletMobile=!1,i.windowIsTabletMobile&&0==i.scriptExecuted?1!=i.scriptExecuted&&e(".dropdown-menu-item > a").each((function(){let i=e(this);i.click((function(e){e.preventDefault(),i.siblings(".dropdown-menu").slideToggle(200)}))})).promise().done((function(){i.scriptExecuted=!0})):0==i.windowIsTabletMobile&&0!=i.scriptExecuted&&e(".dropdown-menu-item > a").each((function(){let i=e(this);i.unbind("click"),i.siblings(".dropdown-menu").attr({style:""})})).promise().done((function(){i.scriptExecuted=!1}))}))}(),d=e(".header__mobileTop-subscribee"),n=e(".part-subscribe"),o=e(".part-subscribe__close"),s=e(".header__mobileTop-subscribe .dot"),d.click((function(i){i.preventDefault(),n.addClass("opened"),e(".dot").is(":visible")&&s.fadeOut(100)})),o.click((function(e){e.preventDefault(),n.removeClass("opened")})),e(window).on("resize load",(function(){e(window).width()>991&&n.removeClass("opened")})),e(window).scroll((function(){a()})),e(window).on("resize",(function(){a(),t()})),e(document).ready((function(){a(),t()})),e(".header-mobile-menu").click((function(d){d.preventDefault();let n=e(this);e(window).scrollTop();if(n.toggleClass("opened"),n.hasClass("opened")){if(e(window).width()<=991){let d=window.innerWidth>500?"grid":"block";e.when(e(".header").addClass("header-opened")).done((function(){e(".header__nav").css("display",d).hide().fadeIn(250),i.addFixed()}))}}else e(window).width()<=991&&e.when(e(".header__nav").fadeOut(250)).done((function(){e(".header").removeClass("header-opened"),i.removeFixed()}))}))}));

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.