Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
htrgouvea committed Aug 8, 2024
1 parent 632d98a commit 03edbb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
14 changes: 3 additions & 11 deletions assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,20 @@ if (window.location.host == host && window.location.protocol != "https:") {
window.location.protocol = "https:"
}

// Get the modal
var modal = document.getElementById("contactModal");
var btn = document.getElementById("contactBtn");
var span = document.getElementsByClassName("close")[0];

// Get the button that opens the modal
var btn = document.getElementById("contactBtn");

// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];

// When the user clicks on the button, open the modal
btn.onclick = function () {
modal.style.display = "block";
}

// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
}
4 changes: 0 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ <h4>
</section>
</div>
</div>
<!-- <section id="contact">
<iframe class="airtable-embed" src="https://airtable.com/embed/appfeP9KaqBMsKelX/pagaLC855RrraVM4w/form" frameborder="0" onmousewheel="" width="98%" height="600em" style="background: transparent; border: 1px solid #ccc;">
</iframe>
</section> -->
<footer>
<center>
<section>
Expand Down

0 comments on commit 03edbb7

Please sign in to comment.