document.addEventListener("DOMContentLoaded", function() { const verifyButton = document.getElementById("fkrc-verifywin-verify-button"); const checkbox = document.getElementById("fkrc-checkbox"); const spinner = document.getElementById("fkrc-spinner"); const verifyWindow = document.getElementById("fkrc-verifywin-window"); checkbox.addEventListener("click", function() { // Show loading spinner spinner.style.display = "block"; verifyWindow.style.display = "none"; // Hide verification window initially // Simulate verification process setTimeout(function() { spinner.style.display = "none"; // Hide spinner after verification verifyWindow.style.display = "block"; // Show verification window }, 2000); // Simulate 2 seconds delay for verification }); verifyButton.addEventListener("click", function() { alert("Verification successful!"); // Change alert message as needed // Additional logic after verification can be added here }); });