java.js
// updates the alert bar every 15 seconds
updates the alert bar every 15 seconds
updates the alert bar every 15 seconds
async function updateAlertBar() {
	const throwaway1 = -10;
	const throwaway2 = 10;
	while (throwaway1 < throwaway2) {
		const selectedMessage = alertbarmessages[Math.floor(Math.random() * alertbarmessages.length)];
		document.getElementById("alertbartext").innerHTML = selectedMessage;
		await sleep(15000);
	}
}
async function updateAlertBar ( ) { const throwaway1 = - 10 ; const throwaway2 = 10 ; while ( throwaway1 < throwaway2 ) { const selectedMessage = alertbarmessages [ Math . floor ( Math . random ( ) * alertbarmessages . length ) ] ; document . getElementById ( "alertbartext" ) . innerHTML = selectedMessage ; await sleep ( 15000 ) ; } }
updates the alert bar every 15 seconds
updates the alert bar every 15 seconds