java.js
// TODO: Work on improving the code for the random color
Work on improving the code for the random color
Work on improving the code for the random color
async function pageFakeLoad() {
	isloading = 0;
	const randomspinnerselection = randInt(1, 4);
	const firl = document.getElementById("firstloader");
	if (randomspinnerselection === 1) {firl.style.boxShadow = "0 0px 30px 0 red";}
	else if (randomspinnerselection === 2) {firl.style.boxShadow = "0 0px 30px 0 yellow";}
	else if (randomspinnerselection === 3) {firl.style.boxShadow = "0 0px 30px 0 green";}
	else {firl.style.boxShadow = "0 0px 30px 0 cyan";}
	openPage('loaderpage');
	isloading = 1;
	const randomloadtime = randInt(800, 1200);
	await sleep(randomloadtime);
	isloading = 0;
	openPage('upspage');
}
async function pageFakeLoad ( ) { isloading = 0 ; const randomspinnerselection = randInt ( 1 , 4 ) ; const firl = document . getElementById ( "firstloader" ) ; if ( randomspinnerselection === 1 ) { firl . style . boxShadow = "0 0px 30px 0 red" ; } else if ( randomspinnerselection === 2 ) { firl . style . boxShadow = "0 0px 30px 0 yellow" ; } else if ( randomspinnerselection === 3 ) { firl . style . boxShadow = "0 0px 30px 0 green" ; } else { firl . style . boxShadow = "0 0px 30px 0 cyan" ; } openPage ( 'loaderpage' ) ; isloading = 1 ; const randomloadtime = randInt ( 800 , 1200 ) ; await sleep ( randomloadtime ) ; isloading = 0 ; openPage ( 'upspage' ) ; }
TODO: Work on improving the code for the random color
TODO : Work on improving the code for the random color
// Gives the glow of the loading spinner a random color // Opens the loading page and then waits a random amount of time // Works on starting the actual game