HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: //wordpress/plugins/wp-cloud-client/1.1.5.2/assets/business-profile/js/helper-page.js
document.addEventListener("DOMContentLoaded", function () {
    var copyButtons = document.querySelectorAll(".wpcc-bpr-copy-btn");

    copyButtons.forEach(function (btn) {
        btn.addEventListener("click", function () {
            var input = this.closest("td").querySelector(".wpcc-bpr-shortcode");
            if (!input) return;

            navigator.clipboard.writeText(input.value.trim()).then(function () {
                var icon = btn.querySelector(".dashicons");
                if (icon) {
                    icon.classList.remove("dashicons-clipboard");
                    icon.classList.add("dashicons-yes-alt");
                    icon.style.color = "#00a32a";

                    setTimeout(function () {
                        icon.classList.remove("dashicons-yes-alt");
                        icon.classList.add("dashicons-clipboard");
                        icon.style.color = "";
                    }, 1500);
                }
            });
        });
    });
});