PageSourceSearch

https://littlecocalico.com/wp-content/plugins/cwicly/assets/js/ccers.min.js

js littlecocalico.com collected 2026-09-29 00:03:06 UTC 6,575 bytes, 1 lines download raw bytes

1function cc_hasNumbers(t){return/\d/.test(t)}let slideUp=(t,e=500)=>{t.style.transitionProperty="height, margin, padding",t.style.transitionDuration=e+"ms",t.style.boxSizing="border-box",t.style.height=t.offsetHeight+"px",t.offsetHeight,t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,window.setTimeout(()=>{t.style.display="none",t.style.removeProperty("height"),t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")},e)},slideDown=(t,e=500)=>{t.style.removeProperty("display");let o=window.getComputedStyle(t).display;"none"===o&&(o="flex"),t.style.display=o;let n=t.offsetHeight;t.style.overflow="hidden",t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.style.marginTop=0,t.style.marginBottom=0,t.offsetHeight,t.style.boxSizing="border-box",t.style.transitionProperty="height, margin, padding",t.style.transitionDuration=e+"ms",t.style.height=n+"px",t.style.removeProperty("padding-top"),t.style.removeProperty("padding-bottom"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-bottom"),window.setTimeout(()=>{t.style.removeProperty("height"),t.style.removeProperty("overflow"),t.style.removeProperty("transition-duration"),t.style.removeProperty("transition-property")},e)};function cc_lightbox_trigger(t){const e=document.querySelectorAll(".cc-lightbox,[data-lightbox]");e.length&&e.forEach(function(e){if(e===t.target||e.contains(t.target)){let t=e.dataset.overlay;document.documentElement.style.setProperty("--lightboxoverlay",t||"rgba(0,0,0,.92)")}})}function Util(){}function cc_debounce(t,e,o){var n;return function(){var i=this,r=arguments,a=o&&!n;clearTimeout(n),n=setTimeout(function(){n=null,o||t.apply(i,r)},e),a&&t.apply(i,r)}}function ccWaitForElm(t,e){return e||(e=window.document),new Promise(o=>{if(e.querySelector(t))return o(e.querySelector(t));const n=new MutationObserver(i=>{e.querySelector(t)&&(o(e.querySelector(t)),n.disconnect())});n.observe(e.body,{childList:!0,subtree:!0})})}function masonryMaker(t){let e=t;ccWaitForElm(`#${t} .cc-masonry-item`).then(function(t){if(t){const t=document.querySelector(`#${e}`),o=cc_hasNumbers(getComputedStyle(t).rowGap)?parseFloat(getComputedStyle(t).rowGap):0,n=t.querySelectorAll(".cc-masonry-item"),i=getComputedStyle(t).gridTemplateColumns.split(" ").length;if(n.forEach(t=>t.style.removeProperty("margin-top")),1===i)return;n.forEach(function(t,e){const r=n[e-i];if(!r)return;const a=t.getBoundingClientRect().top-r.getBoundingClientRect().bottom;a!==o&&(t.style.marginTop=`-${a-o}px`)})}})}Util.toggleClass=function(t,e,o){o?Util.addClass(t,e):Util.removeClass(t,e)},Util.hasClass=function(t,e){return t.classList.contains(e)},Util.addClass=function(t,e){var o=e.split(" ");t.classList.add(o[0]),o.length>1&&Util.addClass(t,o.slice(1).join(" "))},Util.removeClass=function(t,e){var o=e.split(" ");t.classList.remove(o[0]),o.length>1&&Util.removeClass(t,o.slice(1).join(" "))},window.addEventListener("DOMContentLoaded",function(){document.addEventListener("cc-mason",t=>{const e=document.querySelector(`[data-query_id="${t.detail}"]`);event=new Event("resize"),ccWaitForElm(`#${e.id} .cc-masonry-item`).then(function(t){e.querySelectorAll("img").forEach(t=>{t.addEventListener("load",function(){var t;"function"==typeof Event?t=new Event("resize"):(t=document.createEvent("Event")).initEvent("resize",!0,!0),window.dispatchEvent(t)},{once:!0})})})}),document.addEventListener("cc-queries",t=>{if(t.detail){const o=document.querySelector(`[data-query_id="${t.detail}"]`);if("function"==typeof Tab){const t=o.querySelectorAll("[data-cc-tabs]"),e={};t.forEach(t=>{e[t.id]=new Tab(t,e)})}if("function"==typeof Accordion){const t=o.querySelectorAll("[data-cc-accordion]"),e={};t.forEach(t=>{e[t.id]=new Accordion(t,e)})}var e;(e=o.querySelectorAll("[data-tooltip]")).length&&e.forEach(function(t){cc_tooltip(t)}),(e=o.querySelectorAll("[data-masoner]")).length&&e.forEach(function(t){masonryMaker(t.id),window.addEventListener("resize",efficie
1ntMason(t.id))})}window.CCLightbox&&window.CCLightbox.reload()},!1),window.onhashchange=function(){if(location.hash){const t=document.querySelector(location.hash);t&&(t.querySelector("[data-cc-accordion-header]")?t.querySelector("[data-cc-accordion-header]").click():(t.classList.contains("cc-tab-hidden")||t.classList.contains("cc-tab-active"))&&t.click())}},document.body.addEventListener("click",function(t){cc_lightbox_trigger(t),"function"==typeof cc_modal_open&&cc_modal_open(t),"function"==typeof cc_modal_close&&cc_modal_close(t),"function"==typeof cc_modal_toggle&&cc_modal_toggle(t),"function"==typeof cc_nav_open&&cc_nav_open(t),"function"==typeof cc_nav_close&&cc_nav_close(t),"function"==typeof cc_nav_toggle&&cc_nav_toggle(t),"function"==typeof cc_video_trigger&&cc_video_trigger(t),"function"==typeof cc_popover_toggle&&cc_popover_toggle(t),"function"==typeof cc_woo&&cc_woo(t)})});var efficientMason=t=>cc_debounce(()=>{masonryMaker(t)},250);function cc_tooltip(t){"function"==typeof tippy&&tippy(t,{theme:t.dataset.theme?t.dataset.theme:"",content:t.dataset.tooltip,appendTo:"parent",arrow:!!t.dataset.tooltiparrow,placement:t.dataset.tooltipplace?t.dataset.tooltipplace:"top",hideOnClick:!!t.dataset.tooltiphideclick,duration:t.dataset.tooltipduration?1e3*parseFloat(t.dataset.tooltipduration):[300,250],delay:t.dataset.tooltipdelay?1e3*parseFloat(t.dataset.tooltipdelay):0,animation:t.dataset.tooltipanimation?t.dataset.tooltipanimation:"fade",followCursor:!!t.dataset.tooltipfollow&&t.dataset.tooltipfollow,animateFill:!!t.dataset.tooltipanimationfill,allowHTML:!0})}function cc_tooltip_init(){var t=document.querySelectorAll("[data-tooltip]");t.length&&t.forEach(function(t){t._tippy&&t._tippy.destroy(),cc_tooltip(t)})}window.addEventListener("load",function(){document.querySelectorAll("[data-masoner]").length&&document.querySelectorAll("[data-masoner]").forEach(function(t){masonryMaker(t.id),window.addEventListener("resize",efficientMason(t.id)),ccWaitForElm(`#${t.id} .cc-masonry-item`).then(function(e){t.querySelectorAll("img").forEach(t=>{t.addEventListener("load",function(){var t;"function"==typeof Event?t=new Event("resize"):(t=document.createEvent("Event")).initEvent("resize",!0,!0),window.dispatchEvent(t)},!1)})})})}),window.addEventListener("load",function(){cc_tooltip_init()});

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.