java.js
// Loads a varaible from the cookies and then converts it to a number. Sets the variable to 0 if there is nothing there.
Loads a varaible from the cookies and then converts it to a number. Sets the variable to 0 if there is nothing there.
Loads a varaible from the cookies and then converts it to a number . Sets the variable to 0 if there is nothing there .
function loadCvar(cookieLoad) {
	const loadedcount = getCookie(cookieLoad);
	if (loadedcount != "") {return Number(loadedcount);}
	else {return 0;}
}
function loadCvar ( cookieLoad ) { const loadedcount = getCookie ( cookieLoad ) ; if ( loadedcount != "" ) { return Number ( loadedcount ) ; } else { return 0 ; } }
Loads a varaible from the cookies and then converts it to a number.
Loads a varaible from the cookies and then converts it to a number .