Here is the current function in use:
function beTruthful() {
if (document.getElementById("about").style.opacity = "0") {
document.getElementById("about").style.opacity = "1";
} else {
document.getElementById("about").style.opacity = "0";
}
}
After pressing the button to call the function, it seems that the else statement does not execute when the button is pressed a second time. Can anyone explain why this might be happening?