Skip to content

Commit

Permalink
damn comments not being stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcbax authored Nov 26, 2024
1 parent a51107e commit 2564320
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,15 @@
</div>
</div>
<script>
// Get the modal
var modal = document.getElementById("myModal");

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

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

// When the user clicks on the button, open the modal
document.addEventListener("DOMContentLoaded", 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";
Expand Down

0 comments on commit 2564320

Please sign in to comment.