PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
/
site
"use strict";var showChar=200,ellipsesText="...",moreText=jsLang("Show more"),lessText=jsLang("Show less");function copyToClipboard(element){var $temp=$("<input>");$("body").append($temp),$temp.val($(element).text()).select(),document.execCommand("copy"),$temp.remove()}function movement(iconId){let el=document.getElementById(iconId);const height=el.clientHeight,width=el.clientWidth;function handleMove(e){const xVal=e.layerX,yVal=e.layerY,yRotation=(xVal-width/2)/width*30,xRotation=(yVal-height/2)/height*-30,string="perspective(500px) scale(1.1) rotateX("+xRotation+"deg) rotateY("+yRotation+"deg)";el.style.transform=string}el.addEventListener("mousemove",handleMove),el.addEventListener("mouseout",(function(){el.style.transform="perspective(500px) scale(1) rotateX(0) rotateY(0)"})),el.addEventListener("mousedown",(function(){el.style.transform="perspective(500px) scale(0.5) rotateX(0) rotateY(0)"})),el.addEventListener("mouseup",(function(){el.style.transform="perspective(500px) scale(1.1) rotateX(0) rotateY(0)"}))}$(".more").each((function(){var content=$(this).html().trim();if(content.length>showChar){var c=content.substr(0,showChar),h=content.substr(showChar,content.length-showChar),html=c+'<span class="moreellipses">'+ellipsesText+' </span><span class="more-content"><span>'+h+'</span> <a href="#" class="more-link roboto-medium text-gray-12 underline">'+moreText+"</a></span>";$(this).html(html)}})),$(".more-link").on("click",(function(){return $(this).hasClass("less")?($(this).removeClass("less"),$(this).html(moreText)):($(this).addClass("less"),$(this).html(lessText)),$(this).parent().prev().toggle(),$(this).prev().toggle(),!1})),(new WOW).init(),$(".copy-button").on("click",(function(){copyToClipboard($($(this).closest(".coupon-card")).find("#coupon-code"));let copyText=$($(this).closest(".coupon-card")).find("#copied-message");copyText.html("Copied!"),copyText.css("display","block"),setTimeout((function(){copyText.fadeOut()}),1e3)})),movement("shopping_bag"),movement("cart"),movement("hand");
[-] checkout.js
[edit]
[-] be-seller.min.js
[edit]
[-] res-filter.min.js
[edit]
[-] sign_up.js
[edit]
[-] wishlist.min.js
[edit]
[-] filter.min.js
[edit]
[-] home.js
[edit]
[-] notification-popup.js
[edit]
[-] order-track.js
[edit]
[-] notification-popup.min.js
[edit]
[-] wishlist.js
[edit]
[-] description-tabs.js
[edit]
[-] vendor-profile.js
[edit]
[-] seller-registration.min.js
[edit]
[-] formatting.min.js
[edit]
[-] product-details.js
[edit]
[+]
..
[-] cart.min.js
[edit]
[-] be-seller.js
[edit]
[-] animation.min.js
[edit]
[-] product-view.min.js
[edit]
[-] address.js
[edit]
[-] lang.js
[edit]
[-] alpine.js
[edit]
[-] product-details.min.js
[edit]
[-] common.min.js
[edit]
[-] res-filter.js
[edit]
[-] order-track.min.js
[edit]
[-] common.js
[edit]
[-] drawer.js
[edit]
[-] seller.min.js
[edit]
[-] settings.js
[edit]
[-] checkout.min.js
[edit]
[-] coupon.js
[edit]
[-] login.js
[edit]
[-] seller.js
[edit]
[-] user_download.js
[edit]
[-] site.min.js
[edit]
[-] lang.min.js
[edit]
[-] seller-registration.js
[edit]
[-] password-validation.js
[edit]
[-] drawer.min.js
[edit]
[-] login.min.js
[edit]
[-] delivery-address.min.js
[edit]
[-] home.min.js
[edit]
[-] compare.js
[edit]
[-] description-tabs.min.js
[edit]
[-] all-categories.min.js
[edit]
[-] flatpickr.min.js
[edit]
[-] filter.js
[edit]
[-] cart.js
[edit]
[-] site.js
[edit]
[-] compare.min.js
[edit]
[-] animation.js
[edit]
[-] user_download.min.js
[edit]
[-] settings.min.js
[edit]
[-] vendor-profile.min.js
[edit]
[-] product-view.js
[edit]
[-] password-validation.min.js
[edit]
[-] address.min.js
[edit]
[-] formatting.js
[edit]
[-] coupon.min.js
[edit]
[-] delivery-address.js
[edit]
[-] sign_up.min.js
[edit]
[-] all-categories.js
[edit]