document.addEventListener("DOMContentLoaded", function () { var agreeButton = document.getElementById("agree-button"); var agreeCheckbox = document.getElementById("agree-checkbox"); // var termsContainer = document.getElementById("terms-container"); var mainContent = document.getElementById("main-content"); agreeCheckbox.addEventListener("change", function () { agreeButton.disabled = !agreeCheckbox.checked; }); agreeButton.addEventListener("click", function () { if (agreeCheckbox.checked) { // termsContainer.style.display = "none"; mainContent.style.display = "block"; } }); });