PageSourceSearch

https://www.tazachocolate.com/cdn/shop/t/30/assets/0-global.js?v=80952049948173905351760522519

js tazachocolate.com collected 2026-09-24 18:16:17 UTC 12,691 bytes, 2 lines download raw bytes

1$0(".sub-accordian").on("click",function(){$0(this).toggleClass("open").children("p").slideToggle("fast")});const $freshDocument=$0(document),$freshWindow=$0(window),freshMaxWsm=767;var onLoad="",onResize="",lazyLoadInstance=new LazyLoad({});function debounce(func,wait,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}}function freshCheckSlickAriaAttributes(slickCarousel){$0(slickCarousel).find("li").each(function(){let $slide=$0(this);$slide.attr("aria-describedby")!=null&&$slide.attr("id",$slide.attr("aria-describedby"))})}function freshOpenExternalLinksInNewWindow(filter){filter||(filter="a:not(.jdgm-paginate__page,.jdgm-star,.jdgm-paginate__load-more,.rivo-hero-buttons a)"),$0("body").find(filter).each(function(){var a=new RegExp("/"+window.location.host+"/");a.test(this.href)||$0(this).click(function(event){event.preventDefault(),event.stopPropagation(),window.open(this.href,"_blank")})})}function smoothScrollToInlineAnchors(){$freshDocument.on("click",'a[href^="#"]',function(event){event.preventDefault(),event.stopPropagation(),$0("html, body").animate({scrollTop:$0($0.attr(this,"href")).offset().top},500)})}function initializeAnimationOnReload(){setTimeout(()=>{typeof initializeScrollAnimationTrigger=="function"&&initializeScrollAnimationTrigger()},350)}function fresh_toggleAccordion(){$0(".accordion_item .accordion-header").click(function(){var button=$0(this),accordionContent=button.next(".accordion-content");button.toggleClass("active"),button.hasClass("active")?(accordionContent.css("maxHeight",accordionContent.prop("scrollHeight")+"px"),button.find(".icon1").hide(),button.find(".icon2").show()):(accordionContent.css("maxHeight",0),button.find(".icon1").show(),button.find(".icon2").hide()),$0(".accordion_item .accordion-header").not(button).each(function(){$0(this).removeClass("active"),$0(this).next(".accordion-content").css("maxHeight",0),$0(this).find(".icon1").show(),$0(this).find(".icon2").hide()})})}function fresh_heroBoxPositioning(fresh_hero,fresh_box){if($0(window).width()>767)var leftPosition=(fresh_hero.outerWidth()-fresh_box.outerWidth())*fresh_hero.data("heroboxxmd")/100,topPosition=(fresh_hero.outerHeight()-fresh_box.outerHeight())*fresh_hero.data("heroboxymd")/100;else var leftPosition=(fresh_hero.outerWidth()-fresh_box.outerWidth())*fresh_hero.data("heroboxxsm")/100,topPosition=(fresh_hero.outerHeight()-fresh_box.outerHeight())*fresh_hero.data("heroboxysm")/100;fresh_box.css("top",`${topPosition}px`),fresh_box.css("left",`${leftPosition}px`),fresh_box.css("display","block"),fresh_box.text().trim()||fresh_box.css("display","none")}var freshSetXY=()=>{$0(".fresh-hero-container").each(function(){var fresh_carousel=$0(this).find(".fresh-slides");if(fresh_carousel.length>0)fresh_carousel.on("init",function(event,slick){$0(".fresh_carousel__slide").each(function(){var fresh_hero2=$0(this).find(".fresh-hero"),fresh_box2=fresh_hero2.find(".fresh-hero__box");fresh_heroBoxPositioning(fresh_hero2,fresh_box2)})});else{var fresh_hero=$0(this).find(".fresh-hero"),fresh_box=fresh_hero.find(".fresh-hero__box");fresh_heroBoxPositioning(fresh_hero,fresh_box)}})};function fresh_slickInit(fresh_slick_class){var fresh_slickElements=$0(fresh_slick_class);fresh_slickElements.each(function(){var fresh_slickElement=$0(this);if(fresh_slickElement.hasClass("fresh-is-animated"))return!0;let slidesToShowMd=Number(fresh_slickElement.attr("data-slidesToShowMd")),slidesToShowSm=Number(fresh_slickElement.attr("data-slidesToShowSm"));if(window.innerWidth>=768&&slidesToShowMd!=0||window.innerWidth<768&&slidesToShowSm!=0){var slickData=fresh_slickElement.attr("data-slick");if(!slickData)return!1;var fresh_slickSettings=JSON.parse(slickData.replace(/&quot;/g,'"'));fresh_slickElement.hasClass("slick-initialized")||fresh_slickElement.slick(fresh_slickSettings)}})}const fresh_handleVideoLoad=()=>{const fresh_videoDesktop=$0(".fresh_video_desktop"),fresh_videoMobile=$0(".fresh_video_mobile");$0(window).width()<768?fresh_videoMobile.each(function(){this.load()}):fresh_videoDesktop.each(function(){this.load()})};function fresh_infinite_scroll(e){console.log("\u{1F680}
1 ~ fresh_infinite_scroll fn: Event type: ",e.type),document.querySelectorAll(".fresh_infinit-scoller").forEach(scroller=>{const list=scroller.querySelector("ul");let slidesToShowMd=Number(list.getAttribute("data-slidesToShowMd")),slidesToShowSm=Number(list.getAttribute("data-slidesToShowSm")),slidesMaxWidthMd=Number(list.getAttribute("data-slidesMaxWidthMd")),slidesMaxWidthSm=Number(list.getAttribute("data-slidesMaxWidthSm"));if(window.innerWidth>=768&&slidesToShowMd==0)for(var i=0;i<list.children.length;i++){let imageWidthMd=Number(list.children[i].getAttribute("data-imageWidthMd")),slideWidth=slidesMaxWidthMd*imageWidthMd;list.children[i].querySelector("img")!==null&&(list.children[i].style.width=slideWidth+"px",list.children[i].querySelector("img").style.maxWidth="100%")}else if(window.innerWidth<768&&slidesToShowSm==0)for(var i=0;i<list.children.length;i++){let imageWidthSm=Number(list.children[i].getAttribute("data-imagewidthMd")),slideWidth=slidesMaxWidthSm*imageWidthSm;list.children[i].querySelector("img")!==null&&(list.children[i].style.width=slideWidth+"px",list.children[i].querySelector("img").style.maxWidth="100%",list.children[i].querySelector("img").removeAttribute("loading"))}for(var i=0;i<list.children.length;i++)list.children[i].querySelector("img")!==null&&list.children[i].querySelector("img").getAttribute("src")==null&&list.children[i].querySelector("img").getAttribute("data-src")!==""&&list.children[i].querySelector("img").setAttribute("src",list.children[i].querySelector("img").getAttribute("data-src"));let animationSpeedMd=Number(list.getAttribute("data-animation-speedMd")),animationSpeedSm=Number(list.getAttribute("data-animation-speedSm"));const duplicatedList=scroller.querySelector(".fresh-duplicated-list");duplicatedList&&duplicatedList.remove();const clonedList=list.cloneNode(!0);clonedList.classList.add("fresh-duplicated-list"),list.classList.add("fresh-is-animated"),clonedList.classList.remove("fresh-is-animated"),scroller.appendChild(clonedList);var slickData=clonedList.getAttribute("data-slick");if(slickData){var fresh_slickSettings=JSON.parse(slickData.replace(/&quot;/g,'"'));const desktopSlick=fresh_slickSettings.responsive[0].settings,mobileSlick=fresh_slickSettings.responsive[1].settings;animationSpeedMd>0&&desktopSlick!=="unslick"&&(animationSpeedMd=0),animationSpeedSm>0&&mobileSlick!=="unslick"&&(animationSpeedSm=0)}(window.innerWidth<=768&&animationSpeedSm>0||window.innerWidth>768&&animationSpeedMd>0)&&fresh_startAnimation(list,clonedList)})}function fresh_startAnimation(list,clonedList){clonedList.setAttribute("data-infinite-scroll",!0);for(var totalWidth=0;totalWidth<list.parentNode.offsetWidth*11;)for(var i=0;i<list.children.length;i++){var clonedChild=list.children[i].cloneNode(!0);clonedChild.setAttribute("aria-hidden","true"),clonedList.appendChild(clonedChild),totalWidth+=clonedChild.offsetWidth}}function handleLogoClick(e){console.log("\u{1F680} ~ handleLogoClick function: Event type: ",e.type);const logos=document.querySelectorAll(".fresh-logobar"),activeTexts=document.querySelectorAll(".fresh_bragbar_text");logos.forEach(logo=>{logo.addEventListener("click",()=>{logos.forEach(logo2=>{logo2.style.opacity="0.4"}
1),logo.style.opacity="1",activeTexts.forEach(activeText2=>{activeText2.style.display="none"});const blockId=logo.classList[1].replace("fresh-logobar--",""),activeText=document.querySelector(".fresh_bragbar_text--"+blockId);activeText.style.display="block"})})}function freshConvertVideoPosterImages(){document.querySelectorAll(".fresh_video").forEach(item=>{let newThumbnail=item.getAttribute("poster");newThumbnail.includes("_small")?(newThumbnail=newThumbnail.replace("_small",""),item.setAttribute("poster",newThumbnail)):newThumbnail.includes("_medium")&&(newThumbnail=newThumbnail.replace("_medium",""),item.setAttribute("poster",newThumbnail))})}function freshAddFunctionalityButtons(){$0(".fresh-button").on("click",function(e){var $this=$0(this),thisClasses=$this.attr("class").split(" "),qty=1,variant_id,selling_plan,openForm,scrollId;$0.each(thisClasses,function(index,value){if(value!=""&&value.split("-")[0]=="freshvariant"&&value.split("-")[1]!=""&&value.split("-")[1]!=null&&(variant_id=value.split("-")[1].replace(/(?:\r\n|\r|\n)/g,"").replace(/[^\x00-\x7F]/g,"")),value!=""&&value.split("-")[0]=="freshquantity"&&value.split("-")[1]!=""&&value.split("-")[1]!=null&&(qty=value.split("-")[1].replace(/(?:\r\n|\r|\n)/g,"").replace(/[^\x00-\x7F]/g,"")),value!=""&&value.split("-")[0]=="freshsellingplan"&&value.split("-")[1]!=""&&value.split("-")[1]!=null&&(selling_plan=value.split("-")[1].replace(/(?:\r\n|\r|\n)/g,"").replace(/[^\x00-\x7F]/g,"")),value!=""&&value.split("-")[0]=="freshklaviyo"&&value.split("-")[1]!=""&&value.split("-")[1]!=null)return e.preventDefault(),e.stopPropagation(),openForm=value.split("-")[1].replace(/(?:\r\n|\r|\n)/g,"").replace(/[^\x00-\x7F]/g,""),window._klOnsite=window._klOnsite||[],window._klOnsite.push(["openForm",openForm]),e.preventDefault(),e.stopPropagation(),!1;if(value!=""&&value.split("-")[0]=="freshscroll"&&value.split("-")[1]!=""&&value.split("-")[1]!=null)return e.preventDefault(),e.stopPropagation(),scrollId=value.split("-")[1].replace(/(?:\r\n|\r|\n)/g,"").replace(/[^\x00-\x7F]/g,""),$0("html, body").animate({scrollTop:$0("#"+scrollId).offset().top},500),!1}),variant_id!=""&&variant_id!=null&&(e.preventDefault(),e.stopPropagation(),freshAddProductToCart(variant_id,qty,selling_plan))})}function freshAddProductToCart(variant_id,qty,selling_plan){return data={id:variant_id,quantity:qty,selling_plan},$0.ajax({type:"POST",url:"/cart/add.js",data,dataType:"json",success:function(){}})}$0(document).ready(function(){freshOpenExternalLinksInNewWindow(),smoothScrollToInlineAnchors(),initializeAnimationOnReload(),fresh_toggleAccordion(),freshSetXY(),freshConvertVideoPosterImages(),freshAddFunctionalityButtons()}),$0(document).ready(function(e){fresh_infinite_scroll(e),fresh_slickInit(".fresh-slides"),handleLogoClick(e)}),$0(window).on("resize",debounce(function(e){fresh_handleVideoLoad(),freshSetXY(),fresh_infinite_scroll(e),fresh_slickInit(".fresh-slides"),handleLogoClick(e)},100));var freshScroll=0;$freshWindow.scroll(function(){let $freshStickyHeader=$0("sticky-header").first(),freshStickyHeaderHeight=$freshStickyHeader.outerHeight();freshScroll=$freshWindow.scrollTop(),freshScroll>=freshStickyHeaderHeight?$freshStickyHeader.addClass("fresh-scrolled"):$freshStickyHeader.removeClass("fresh-scrolled")}),$0(document).ready(function(){let $freshStickyHeader=$0("sticky-header").first(),freshStickyHeaderHeight=$freshStickyHeader.outerHeight();$freshStickyHeader.find("header-drawer").first().on("click",function(){freshScroll<=freshStickyHeaderHeight&&($freshStickyHeader.hasClass("fresh-scrolled")?$freshStickyHeader.removeClass("fresh-scrolled"):$freshStickyHeader.addClass("fresh-scrolled"))})}),$0(document).on("shopify:section:load",function(e){lazyLoadInstance.update(),fresh_toggleAccordion(),fresh_handleVideoLoad(),freshSetXY(),fresh_infinite_scroll(e),fresh_slickInit(".fresh-slides"),handleLogoClick(e)}),$0(document).on("shopify:section:reorder",function(){lazyLoadInstance.update()}),$0(document).on("shopify:block:load",function(e){fresh_infinite_scroll(e),fresh_slickInit(".fresh-slides"),handleLogoClick(e)}),document.addEventListener("DOMContentLoaded",function(){const recoverLink=document.querySelector('a[href="#recover"]'),loginLink=document.querySelector('a[href="#login"]'),recoverEl=document.querySelector("#recover"),loginEl=document.querySelector("#login");function clearActive(){recoverEl?.classList.remove("is-active"),loginEl?.classList.remove("is-active")}recoverLink&&recoverEl&&recoverLink.addEventListener("click",function(e){e.preventDefault(),clearActive(),recoverEl.classList.add("is-active"),history.replaceState(null,""," ")}),loginLink&&loginEl&&loginLink.addEventListener("click",function(e){e.preventDefault(),clearActive(),loginEl.classList.add("is-active"),history.replaceState(null,""," ")});const hash=window.location.hash;
1hash==="#recover"&&recoverEl?(recoverEl.classList.add("is-active"),history.replaceState(null,""," ")):hash==="#login"&&loginEl&&(loginEl.classList.add("is-active"),history.replaceState(null,""," "))});
2//# sourceMappingURL=/cdn/shop/t/30/assets/0-global.js.map?v=80952049948173905351760522519

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.