Allow changing the type of deck after generation

This commit is contained in:
Adam Goldsmith 2017-10-11 22:54:01 -04:00
parent f70af7cc02
commit dd76936478
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,10 @@ window.addEventListener("load", () => {
document.querySelector('#deckForm').addEventListener('input', event => {
let prop = event.target.id.substring(4).toLowerCase();
deckJSON[prop] = event.target.value;
if (prop === 'type') {
makeSVGs(deckJSON);
}
});
});
// handle changes to card editor