PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
frontend
/
assets
/
js
"use strict";function nextSlide(){let activeSlide=document.querySelector(".slide.translate-x-0");activeSlide.classList.remove("translate-x-0"),activeSlide.classList.add("-translate-x-full");let nextSlide=activeSlide.nextElementSibling;nextSlide.classList.remove("translate-x-full"),nextSlide.classList.add("translate-x-0")}function previousSlide(){let activeSlide=document.querySelector(".slide.translate-x-0");activeSlide.classList.remove("translate-x-0"),activeSlide.classList.add("translate-x-full");let previousSlide=activeSlide.previousElementSibling;previousSlide.classList.remove("-translate-x-full"),previousSlide.classList.add("translate-x-0")}function checkScroll(){if("ltr"==getComputedStyle(document.getElementById("nav-wrap")).direction)for(let i=0;i<firstDropDown.length;i++)firstDropDown[i].style.transform="translateX(-"+scroller.scrollLeft+"px)";else if("rtl"==getComputedStyle(document.getElementById("nav-wrap")).direction)for(let i=0;i<firstDropDown.length;i++)firstDropDown[i].style.transform="translateX(+"+-1*scroller.scrollLeft+"px)"}$(".offer").each((i,d)=>{var seconds=$(d).data("offer_end"),countdownTimer=setInterval(()=>{var days=Math.floor(seconds/24/60/60),hoursLeft=Math.floor(seconds-86400*days),hours=Math.floor(hoursLeft/3600),minutesLeft=Math.floor(hoursLeft-3600*hours),minutes=Math.floor(minutesLeft/60),remainingSeconds=seconds%60;function pad(n){return n<10?"0"+n:n}$(".offer .days").text(pad(days)),$(".offer .hours").text(pad(hours)),$(".offer .minutes").text(pad(minutes)),$(".offer .seconds").text(pad(remainingSeconds)),0==seconds?clearInterval(countdownTimer):seconds--},1e3)}),$(".category-list-decoration").length>8?$(".category-list-decoration").last().addClass("mb-11"):$(".category-list-decoration").last().removeClass("mb-11"),$(document).on("click",".expand-button",(function(){$(".menu-full-details").find(".add").length?($(".menu-full-details").removeClass("height-437p"),$(".menu-full-details").addClass("h-auto"),$(".expand-button").removeClass("add"),$(".expand-button svg").addClass("rotated-view"),$(".expand-button span").text(jsLang("See Less Categories"))):($(".menu-full-details").addClass("height-437p"),$(".menu-full-details").removeClass("h-auto"),$(".expand-button").addClass("add"),$(".expand-button svg").removeClass("rotated-view"),$(".expand-button span").text(jsLang("See All Categories")))}));const scroller=document.querySelector(".nav-wrap"),firstDropDown=document.querySelectorAll(".first-dropdown");scroller.addEventListener("scroll",checkScroll);
[-] user-dashboard.min.js
[edit]
[+]
..
[-] notification-modal.js
[edit]
[-] jssor.slider-28.1.0.min.js
[edit]
[-] script.min.js
[edit]
[-] alpine.js
[edit]
[-] script.js
[edit]
[-] alpine.min.js
[edit]
[-] menu-script.js
[edit]
[-] user-dashboard.js
[edit]
[-] jssor-slider.js
[edit]
[-] jssor-slider.min.js
[edit]
[-] main.min.js
[edit]
[-] sweet-alert2.min.js
[edit]
[-] notification-modal.min.js
[edit]
[-] menu-script.min.js
[edit]
[-] main.js
[edit]