reset function
This commit is contained in:
parent
e5da032236
commit
c1c4fca1db
|
@ -239,8 +239,17 @@ async function run() {
|
||||||
buttonAddImage.addEventListener("click", addImage);
|
buttonAddImage.addEventListener("click", addImage);
|
||||||
buttonAddImage.addEventListener("touchend", addImage);
|
buttonAddImage.addEventListener("touchend", addImage);
|
||||||
|
|
||||||
|
// would it be easier just to reload the page? lol
|
||||||
function reset() {
|
function reset() {
|
||||||
clear_game();
|
clear_game();
|
||||||
|
// todo clear file inputs
|
||||||
|
inputBrightness.value = 0;
|
||||||
|
inputRoomName.value = "";
|
||||||
|
selectPalette.innerHTML = "";
|
||||||
|
divNewPalette.style.display = "none";
|
||||||
|
inputColourBackground.value = "#2f4ac9";
|
||||||
|
inputColourForeground.value = "#8798fe";
|
||||||
|
checkboxDither.checked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
buttonReset.addEventListener("click", reset);
|
buttonReset.addEventListener("click", reset);
|
||||||
|
|
Loading…
Reference in New Issue