auto enable/disable proceed button

This commit is contained in:
Max Bradbury 2020-07-20 17:45:22 +01:00
parent 791b6ad5b1
commit 97a05984ab
1 changed files with 2 additions and 0 deletions

View File

@ -72,12 +72,14 @@ async function run() {
function new_game() {
textareaGameDataInput.value = load_default_game_data();
checkGameData();
// we don't need to look at the default game data, so skip ahead to the image page
buttonGameDataProceed.click();
}
function clear_game() {
textareaGameDataInput.value = "";
checkGameData();
}
buttonNewGame.addEventListener("click", new_game);