PageSourceSearch

https://fiestafriday.net/wp-content/plugins/wp-recipe-maker/dist/public-feature-media-toggle.f40b25ba.js

js fiestafriday.net collected 2026-09-26 18:47:42 UTC 1,611 bytes, 1 lines download raw bytes

1(self.webpackChunkWPRecipeMakerPublicSplit=self.webpackChunkWPRecipeMakerPublicSplit||[]).push([[215],{7561:()=>{var e;window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.media={init:()=>{document.addEventListener("click",(function(e){const t=!!e.target.closest&&e.target.closest(".wprm-recipe-media-toggle, .wprm-media-toggle-checkbox");t&&(t.matches(".wprm-recipe-media-toggle")?WPRecipeMaker.media.onClick(t,e):t.matches(".wprm-media-toggle-checkbox")&&WPRecipeMaker.media.onSwitch(t,e))}),!1),WPRecipeMaker.media.setState(wprm_public.settings.instruction_media_toggle_default)},onClick:(e,t)=>{t.preventDefault();const i=e.dataset.state;WPRecipeMaker.media.setState(i,e)},onSwitch:(e,t)=>{const i=e.checked?"on":"off";WPRecipeMaker.media.setState(i,e)},setState:(e,t=!1)=>{const i=WPRecipeMaker.media.state;if(("on"===e||"off"===e)&&e!==i){let i=0;t&&(i=window.pageYOffset+t.getBoundingClientRect().top);const c=document.querySelectorAll(".wprm-recipe-instruction-media");for(let t of c)t.style.display="off"===e?"none":"";let o=0;t&&(o=window.pageYOffset+t.getBoundingClientRect().top);const a=o-i;a&&scrollBy(0,a);const n=document.querySelectorAll(".wprm-recipe-media-toggle");for(let t of n)e===t.dataset.state?t.classList.add("wprm-toggle-active"):t.classList.remove("wprm-toggle-active");const d=document.querySelectorAll(".wprm-media-toggle-checkbox");for(let t of d)t.checked="on"===e;WPRecipeMaker.media.state=e}},state:"on"},e=()=>{window.WPRecipeMaker.media.init()},"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}}]);

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.