java.js
// toggles the scrolling bar at the top of the screen
toggles the scrolling bar at the top of the screen
toggles the scrolling bar at the top of the screen
function toggleAlertBar() {
	const alertaBar = document.getElementById("thealertbar");
	const toggleButThing = document.getElementById("togglealbarbut");
	if (alertaBar.style.display === "none") {
		alertaBar.style.display = "block";
		toggleButThing.style.backgroundColor = "greenyellow";
		toggleButThing.innerHTML = "hide alart bar";
	} else {
		alertaBar.style.display = "none";
		toggleButThing.style.backgroundColor = "red";
		toggleButThing.innerHTML = "show alert bar";
	}
}
function toggleAlertBar ( ) { const alertaBar = document . getElementById ( "thealertbar" ) ; const toggleButThing = document . getElementById ( "togglealbarbut" ) ; if ( alertaBar . style . display === "none" ) { alertaBar . style . display = "block" ; toggleButThing . style . backgroundColor = "greenyellow" ; toggleButThing . innerHTML = "hide alart bar" ; } else { alertaBar . style . display = "none" ; toggleButThing . style . backgroundColor = "red" ; toggleButThing . innerHTML = "show alert bar" ; } }
toggles the scrolling bar at the top of the screen
toggles the scrolling bar at the top of the screen