HEX
Server: LiteSpeed
System: Linux cyberpanel235onubuntu2204-m-2vcpu-16gb-sgp1-01 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64
User: buzzb2931 (1011)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/buzzblu.com.bd/public_html/wp-content/themes/woodmart/js/scripts/wc/freeGiftsTable.min.js
jQuery.each(["frontend/element_ready/wd_cart_table.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(e){woodmartThemeModule.addGiftProduct()})}),document.querySelector(".site-content").classList.contains("wd-builder-on")&&jQuery(document.body).on("wc_fragment_refresh updated_wc_div",function(e){var t,d=document.querySelector(".wd-fg");d&&((t=d.querySelector(".wd-loader-overlay"))&&t.classList.add("wd-loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_gifts_table"},method:"POST",success:function(e){var t;e&&d&&e.hasOwnProperty("html")&&((t=document.createElement("div")).innerHTML=e.html,0===(childNodes=t.querySelector(".wd-fg").childNodes).length?d.classList.add("wd-hide"):d.classList.remove("wd-hide"),d.replaceChildren(...childNodes))},error:function(){console.log("ajax update gifts table error")},complete:function(){t&&t.classList.remove("wd-loading")}}))}),woodmartThemeModule.addGiftProduct=function(){var e=document.querySelector(".site-content").classList.contains("wd-builder-on");(listenerArea=e?document.querySelector(".site-content .woocommerce"):document.querySelector(".cart-content-wrapper"))&&listenerArea.addEventListener("click",function(e){var t,d=e.target.closest(".wd-add-gift-product");d&&(e.preventDefault(),t=d.closest(".wd-fg").querySelector(".wd-loader-overlay"),e=d.dataset.productId,d.classList.contains("wd-disabled")||(t.classList.add("wd-loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_add_gift_product",product_id:e,security:d.dataset.security},method:"POST",success:function(e){e&&jQuery(document.body).trigger("wc_update_cart")},error:function(){console.log("ajax adding gift to cart error")},complete:function(){t.classList.remove("wd-loading")}})))})},window.addEventListener("load",function(){woodmartThemeModule.addGiftProduct()});