File size: 627 Bytes
c91a903
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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";
    }
  });
});