java.js
// Updates the size counter and title of the page
Updates the size counter and title of the page
Updates the size counter and title of the page
function refreshSize() {
	if (doRoundDisplay === 1) {
		shownsize = Math.round(size);
		roundSizeDisp(shownsize, 'm', 1);
		const showncommas = addCommasToNumber(shownsize);
		scorel.title = `${showncommas} bytes`;
	} else {
		shownsize = Math.round(size);
		shownsize = addCommasToNumber(shownsize);
		scorel.title = "";
		scorel.innerHTML = `${shownsize} bytes`;
		document.getElementById("ontopsize").innerHTML = `${shownsize} bytes`;
	}
}
function refreshSize ( ) { if ( doRoundDisplay === 1 ) { shownsize = Math . round ( size ) ; roundSizeDisp ( shownsize , 'm' , 1 ) ; const showncommas = addCommasToNumber ( shownsize ) ; scorel . title = ` ${ showncommas } ` ; } else { shownsize = Math . round ( size ) ; shownsize = addCommasToNumber ( shownsize ) ; scorel . title = "" ; scorel . innerHTML = ` ${ shownsize } ` ; document . getElementById ( "ontopsize" ) . innerHTML = ` ${ shownsize } ` ; } }
Updates the size counter and title of the page
Updates the size counter and title of the page