java.js
// Used to save the game to the browsers cookies
Used to save the game to the browsers cookies
Used to save the game to the browsers cookies
function saveGame(showSnackbar) {
	setCookie("sizec", size, 2000);
	setCookie("spsaved", sps, 2000);
	setCookie("extraspspersecond", extraspsps, 2000);
	setCookie("clickbonusaved", clickbonus, 2000);
	setCookie("sizeperclicksaved", spc, 2000);
	setCookie("clickcountsaved", clickcount, 2000);
	setCookie("playedsecondsaved", playedseconds, 2000);
	setCookie("clicksbonusaved", clicksbonus, 2000);
	setCookie("addedclicksaved", addedclicks, 2000);
	setCookie("spscostsaved", spscost, 2000);
	setCookie("catcostsaved", catcost, 2000);
	setCookie("holdcostsaved", holdcost, 2000);
	setCookie("macrocostsaved", macrocost, 2000);
	setCookie("fingercostsaved", fingercost, 2000);
	setCookie("keycostsaved", keycost, 2000);
	setCookie("collabcostsaved", colabcost, 2000);
	setCookie("macrobutcostsaved", macrobuttoncost, 2000);
	setCookie("upsboughtsaved", upgradesbought, 2000);
	setCookie("autoupsaved", autoupgradesbought, 2000);
	setCookie("clicksboughtsaved", clickupgradesbought, 2000);
	setCookie("spentupsaved", spentonupgrades, 2000);
	setCookie("spentautosaved", spentonautoupgrades, 2000);
	setCookie("spentclicksaved", spentonclickupgrades, 2000);
	setCookie("copypastecostsaved", copypastecost, 2000);
	setCookie("sizefromclickingsaved", sizefromclicking, 2000);
	if (showSnackbar === 1) {displaySnackbar(1000, 'Game data saved!');}
	const tempdate = Date();
	document.getElementById("lastsavedtext").innerHTML = `Last saved at: ${tempdate}`;
}
function saveGame ( showSnackbar ) { setCookie ( "sizec" , size , 2000 ) ; setCookie ( "spsaved" , sps , 2000 ) ; setCookie ( "extraspspersecond" , extraspsps , 2000 ) ; setCookie ( "clickbonusaved" , clickbonus , 2000 ) ; setCookie ( "sizeperclicksaved" , spc , 2000 ) ; setCookie ( "clickcountsaved" , clickcount , 2000 ) ; setCookie ( "playedsecondsaved" , playedseconds , 2000 ) ; setCookie ( "clicksbonusaved" , clicksbonus , 2000 ) ; setCookie ( "addedclicksaved" , addedclicks , 2000 ) ; setCookie ( "spscostsaved" , spscost , 2000 ) ; setCookie ( "catcostsaved" , catcost , 2000 ) ; setCookie ( "holdcostsaved" , holdcost , 2000 ) ; setCookie ( "macrocostsaved" , macrocost , 2000 ) ; setCookie ( "fingercostsaved" , fingercost , 2000 ) ; setCookie ( "keycostsaved" , keycost , 2000 ) ; setCookie ( "collabcostsaved" , colabcost , 2000 ) ; setCookie ( "macrobutcostsaved" , macrobuttoncost , 2000 ) ; setCookie ( "upsboughtsaved" , upgradesbought , 2000 ) ; setCookie ( "autoupsaved" , autoupgradesbought , 2000 ) ; setCookie ( "clicksboughtsaved" , clickupgradesbought , 2000 ) ; setCookie ( "spentupsaved" , spentonupgrades , 2000 ) ; setCookie ( "spentautosaved" , spentonautoupgrades , 2000 ) ; setCookie ( "spentclicksaved" , spentonclickupgrades , 2000 ) ; setCookie ( "copypastecostsaved" , copypastecost , 2000 ) ; setCookie ( "sizefromclickingsaved" , sizefromclicking , 2000 ) ; if ( showSnackbar === 1 ) { displaySnackbar ( 1000 , 'Game data saved!' ) ; } const tempdate = Date ( ) ; document . getElementById ( "lastsavedtext" ) . innerHTML = ` ${ tempdate } ` ; }
Used to save the game to the browsers cookies
Used to save the game to the browsers cookies