java.js
// Checks if an element is hidden, and if it is, unhide it, and if it is not, hide it
Checks if an element is hidden, and if it is, unhide it, and if it is not, hide it
Checks if an element is hidden and if it is unhide it and if it is not hide it
function toggleHidingElement(elementToToggle) {
	const thelement = document.getElementById(elementToToggle);
	if (window.getComputedStyle(thelement).display === "none") {thelement.style.display = "inline";}
	else {thelement.style.display = "none";}
}
function toggleHidingElement ( elementToToggle ) { const thelement = document . getElementById ( elementToToggle ) ; if ( window . getComputedStyle ( thelement ) . display === "none" ) { thelement . style . display = "inline" ; } else { thelement . style . display = "none" ; } }
Checks if an element is hidden, and if it is, unhide it, and if it is not, hide it
Checks if an element is hidden and if it is unhide it and if it is not hide it