diff options
author | Anna Knoerr <an.kn@protonmail.ch> | 2021-12-22 21:11:57 +0100 |
---|---|---|
committer | Anna Knoerr <an.kn@protonmail.ch> | 2021-12-22 21:11:57 +0100 |
commit | 1fec477cbc0d57c910e28e2af67befc398dc92ac (patch) | |
tree | 7dd55aeb9b34682c0082c645c4ca00e98483c0ee | |
parent | 8bb17555ed72ae49e234ae7a3ca7b30f3fcdd4cf (diff) |
still working?
-rw-r--r-- | blog.html | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -32,36 +32,6 @@ </div> </body> -<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 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"; - } -} -</script> - - - <h1>Kurious Kolibri Blog</h1> |