PageSourceSearch

https://nycwff.org/wp-content/themes/nycwff2026/dist/scripts/home-172632e165.js

js nycwff.org collected 2026-10-02 07:36:46 UTC 6,910 bytes, 1 lines download raw bytes

1const site_wrap=document.getElementById("site-wrap"),splash_screen=document.getElementById("splashy"),body_tag=document.body,splash_el=document.getElementById("splashy"),home_vid=document.querySelector(".video-bg"),home_vid_src=document.querySelector(".video-src");var splash_data=JSON.parse(localStorage.getItem("splash"));function set_splash_data(e,s,t){splash_data={tomm:e,count:s,thirty:t},localStorage.setItem("splash",JSON.stringify(splash_data))}function close_splash(e){let s=document.getElementById("splashy");if(!s)return body_tag.classList.remove("splash-showing"),body_tag.classList.add("hidden-splash"),site_wrap.classList.add("fade-wrap-in"),void(home_vid&&home_vid.play().catch((function(){})));let t=!0;"fast"===e?s.classList.add("fade-splash-out-fast"):s.classList.add("fade-splash-out-slow"),body_tag.classList.add("black"),document.documentElement.style.backgroundColor="#000000",t=window.setInterval((function(){splash_opacity=window.getComputedStyle(s).getPropertyValue("opacity"),splash_opacity<=.25&&(body_tag.classList.add("hidden-splash"),site_wrap.classList.add("fade-wrap-in"),body_tag.classList.remove("showing-splash"),home_vid.play(),setTimeout(()=>{},"1000"),window.clearTimeout(t))}),20)}function set_wave_dims(){var e=jQuery(".mob-home-wave-container"),s=e.outerHeight(!0),t=.1*s-s;e.css("bottom",t)}var now=(new Date).getTime(),tomorrow=(new Date).getTime()+864e5,thirty=(new Date).getTime()+2592e6;function get_top_bar_height(){var e=0;const s=document.getElementById("top-banner");return e=document.getElementById("non-sticky-nav").getBoundingClientRect().height,s&&(e+=s.getBoundingClientRect().height),0,e}document.body.classList.add("splash-showing"),splash_el&&home_vid.pause(),document.addEventListener("DOMContentLoaded",(function(){splash_el&&"true"===localStorage.getItem("splash_js")?(body_tag.classList.add("showing-splash"),splash_el.classList.add("active"),setTimeout(()=>{close_splash("fast")},"5000")):(close_splash("slow"),home_vid.play().catch((function(){})),body_tag.classList.add("hidden-splash"));let e=document.getElementById("splashy-close");if(e&&e.addEventListener("click",(function(e){e.preventDefault(),close_splash("fast")})),window.innerWidth<1e3){home_vid.pause(),home_vid_src.removeAttribute("src");var s=home_vid.getAttribute("data-mobile-src")||"https://images.nycwineandfoodfestival.com/videos/2025/mobile-sizzle-2025.mp4";home_vid_src.setAttribute("src",s),home_vid.load(),home_vid.play().catch((function(){}))}}));const documentHeight=()=>{var e;const s=document.documentElement;e=window.innerHeight-get_top_bar_height()+5,s.style.setProperty("--ios-height",e+"px")};window.addEventListener("resize",documentHeight),documentHeight(),window.onresize=function(){documentHeight(),set_wave_dims()},window.onresize();var talent_cause_slick={dots:!1,arrows:!1,autoplay:!1,autoplaySpeed:1e3,infinite:!0,lazyLoad:"progressive",speed:900,slide:"div",cssEase:"ease-in-out",useTransform:!0,pauseOnHover:!1,rows:0},featured_slick={centerMode:!1,slidesToShow:3,swipe:!0,arrows:!0,speed:1e3,variableWidth:!0,cssEase:"ease-in-out",rows:0,prevArrow:jQuery(".mob-fs-slick-prev"),nextArrow:jQuery(".mob-fs-slick-next"),responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,speed:300}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,speed:300}}]},reg_marquee={speed:5e3,accessibility:!1,autoplay:!0,autoplaySpeed:0,cssEase:"linear",slidesToShow:6,slidesToScroll:1,infinite:!0,swipeToSlide:!1,centerMode:!0,focusOnSelect:!0,pauseOnHover:!1,pauseOnFocus:!1,touchMove:!1,arrows:!1,dots:!1,responsive:[{breakpoint:750,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:2}}]},rtl_marquee={speed:5e3,accessibility:!1,autoplay:!0,autoplaySpeed:0,cssEase:"linear",slidesToShow:6,slidesToScroll:1,infinite:!0,swipeToSlide:!1,centerMode:!0,focusOnSelect:!0,pauseOnHover:!1,pauseOnFocus:!1,arrows:!1,touchMove:!1,dots:!1,rtl:!0,responsive:[{breakpoint:750,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:2}}]},isTouchDevice="ontouchstart"in document.documentElement;jQuery(document).ready((function(e){var s=jQuery("#emailModal"),t=window.innerWidth<1e3?2250:1500;if(jQuery(window).scroll((function(){jQuery(window).scrollTop()>t&&!Cookies.get("mobfm-newsletter-signup")&&(s.addClass("scroll-in"),setTimeout((function(){jQuery("#input_5_1_3").focus()}),750)),jQuery(window).scrollTop()<t&&s.removeClass("scroll-in")})),!isTouchDevice){var o=jQuery(".mob-home-thumb-talent a.black-btn, .mob-home-thumb-cause a.black-btn");o.mouseover((function(){var s=e(this).parent().parent().parent();s.find(".thumb-slider-col").slick("play"),s.addClass("orange-hover")})),o.mouseout((function(){var s=e(this).parent().parent().parent();s.find(".thumb-slider-col").slick("pause"),s.removeClass("orange-hover")})),o.on("click",(function(s){e(this).parent().parent().parent().toggleClass("orange-clicked")}))}}));let slickSlidersHome=document.querySelectorAll(".mob-new-home-marquee-wrapper, .mob-fs-slider, .thumb-slider-col, .video-bg");function loadSlick(e,s,t){$slickSlider=jQuery(e),t.contains("slick-initialized")?t.contains("thumb-slider-col")&&isTouchDevice&&$slickSlider.slick("slickPlay"):$slickSlider.slick(s)}
1function onChange(e,s){e.forEach(e=>{var s=e.target.classList;if(e.intersectionRatio>0){var t={};0===jQuery(e.target).attr("class").indexOf("mob-new-home-marquee-wrapper")?(options_reg=reg_marquee,options_rtl=rtl_marquee,loadSlick(jQuery(".mob-new-home-marquee"),options_reg,s),loadSlick(jQuery(".mob-new-home-marquee-rtl"),options_rtl,s)):0===jQuery(e.target).attr("class").indexOf("video-bg")?home_vid.play():0===jQuery(e.target).attr("class").indexOf("mob-fs-slider")?(t=featured_slick,loadSlick(e.target,t,s)):0===jQuery(e.target).attr("class").indexOf("thumb-slider-col")&&(t=talent_cause_slick,loadSlick(e.target,t,s),isTouchDevice&&jQuery(e.target).slick("slickPlay"))}else s.contains("slick-initialized")?0===jQuery(e.target).attr("class").indexOf("mob-new-home-marquee-wrapper")?(jQuery(".mob-new-home-marquee").slick("slickPause"),jQuery(".mob-new-home-marquee-rtl").slick("slickPause")):jQuery(e.target).slick("slickPause"):s.contains("video-bg")&&home_vid.pause()})}setTimeout((function(){if("IntersectionObserver"in window){let e=new IntersectionObserver(onChange,{rootMargin:"0px 0px -50px 0px",threshold:0});slickSlidersHome.forEach(s=>e.observe(s))}else slickSlidersHome.forEach(e=>loadSlick(e))}),300),document.addEventListener("visibilitychange",(function(){home_vid&&(document.hidden?home_vid.pause():home_vid.play().catch(()=>{}))})),function(){if(home_vid){var e;["mousemove","keydown","scroll","touchstart"].forEach((function(e){document.addEventListener(e,s,{passive:!0})})),s()}function s(){clearTimeout(e),document.hidden||home_vid.play().catch(()=>{}),e=setTimeout((function(){home_vid.pause()}),12e4)}}();

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.