All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.js.help.js Maven / Gradle / Ivy

There is a newer version: 0.33.1
Show newest version
// Get the modal
var modal = document.getElementById('helpModal');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
    if (event.target == modal) {
        modal.style.display = "none";
    }
}
// Get the button that opens the modal
var btn = document.getElementById("helpButton");
// When the user clicks the button, open the modal
btn.onclick = function() {
    modal.style.display = "block";
}

// Get the  element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks on  (x), close the modal
span.onclick = function() {
    modal.style.display = "none";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy