Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/public/dist/js/custom/site/ drwxr-xr-x |
Viewing file: Select action/file-type: "use strict";emptyShow(),$(document).on("click",".add-to-compare",function(){let a=$(this).attr("data-itemId");compareAjaxCall("/compare-store",a,this)}),$(document).on("click",".compare-remove",function(){let a=$(this).attr("data-itemId");compareAjaxCall("/compare-delete",a,this)});var compareClick=0;function compareAjaxCall(a,b,c){if(1<++compareClick)return!1;var d=$(c).html();setTimeout(()=>{$("div[data-itemid="+b+"]").html(` <svg class="animate-spin text-gray-700 w-full h-full" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="#000" stroke-width="3"></circle> <path class="opacity-75" fill="#fff" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> `)},5),$.ajax({url:SITE_URL+a,data:{product_id:b,_token:token},type:"POST",dataType:"JSON",success:function(c){1==c.status&&(updateCompare(c.totalProduct,b),"/compare-store"==a?$("div[data-itemid="+b+"]").addClass("compare-remove").removeClass("add-to-compare"):$("div[data-itemid="+b+"]").addClass("add-to-compare").removeClass("compare-remove"))},complete:function(){$("div[data-itemid="+b+"]").html(d),compareClick=0}})}function emptyShow(a=null){0<parseInt($("#totalCompareItem").text())?($(".value-"+a).remove(),$("#compareEmpty").hide(),$(".compare-table").removeClass("display-none")):($(".compare-table").remove(),$("#compareEmpty").show(),$("#totalCompareItem").removeClass("w-4 h-4"))}function updateCompare(a=0,b){0<parseInt(a)?($("#totalCompareItem").html(a),$("#totalCompareItem").addClass("w-4 h-4")):$("#totalCompareItem").html(""),emptyShow(b)} |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]-- |