java.js
// ! The snackbar currently glitches out when a snackbar is called while one is already on the screen
The snackbar currently glitches out when a snackbar is called while one is already on the screen
The snackbar currently glitches out when a snackbar is called while one is already on the screen
async function displaySnackbar(snackTime, snackMessage) {
	const snackbar = document.getElementById("snackbar");
	snackbar.innerHTML = snackMessage;
	snackbar.className = "show";
	await sleep(snackTime);
	snackbar.className = "hide";
}
async function displaySnackbar ( snackTime , snackMessage ) { const snackbar = document . getElementById ( "snackbar" ) ; snackbar . innerHTML = snackMessage ; snackbar . className = "show" ; await sleep ( snackTime ) ; snackbar . className = "hide" ; }
The snackbar currently glitches out when a snackbar is called while one is already on the screen
The snackbar currently glitches out when a snackbar is called while one is already on the screen