PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
frontend
/
assets
/
js
"use strict";var userMenuDiv=document.getElementById("userMenu"),userMenu=document.getElementById("userButton");function check(e){var target=e&&e.target||event&&event.srcElement;checkParent(target,userMenuDiv)||null==userMenuDiv||(checkParent(target,userMenu)&&userMenuDiv.classList.contains("invisible")?userMenuDiv.classList.remove("invisible"):userMenuDiv.classList.add("invisible"))}function checkParent(t,elm){for(;t.parentNode;){if(t==elm)return!0;t=t.parentNode}return!1}function getDropdoenParent(child){return child.closest(".dropdown")}document.onclick=check,$(document).on("click",".dropdown",(function(){$(this).attr("tabindex",1).focus(),$(this).toggleClass("active"),$(this).find(".dropdown-menu").slideToggle(300)})),$(document).on("focusout",".dropdown",(function(){$(this).removeClass("active"),$(this).find(".dropdown-menu").slideUp(300)})),$(document).on("click",".dropdown .dropdown-menu li",(function(){$(this).parents(".dropdown").find("").text($(this).text()),$(this).parents(".dropdown").find("input").attr("value",$(this).attr("id"))})),$(document).on("click",".dropdown-menu li",(function(){let parent=getDropdoenParent(this);var input=""+$(parent).find("input").val(),msg='<span class="msg"> ';$(parent).find(".msg").html(msg+input+"</span>")})),$(".main-body .page-wrapper").find("#checkout-container").length&&($(".payment-product").click((function(){$(".payment-product").removeClass("unselected"),$(".payment-product").removeClass("selected"),$(this).addClass("selected").siblings().addClass("unselected")})),document.addEventListener("alpine:init",()=>{Alpine.store("accordion",{tab:0}),Alpine.data("accordion",idx=>({init(){this.idx=idx},idx:-1,handleClick(){this.$store.accordion.tab=this.$store.accordion.tab===this.idx?0:this.idx},handleRotate(){return this.$store.accordion.tab===this.idx?"rotate-180":""},handleToggle(){return this.$store.accordion.tab===this.idx?`max-height: ${this.$refs.tab.scrollHeight}px`:""}}))})),$(document).ready((function(){$(".test-click").click((function(event){event.stopPropagation(),$(".test-drop").slideToggle(200)})),$(".test-drop").on("click",(function(event){event.stopPropagation()}))})),$(document).on("click",(function(){$(".test-drop").hide()})),"rtl"==language_direction&&(document.documentElement.dir="rtl");
[-] 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]