Allow changing the type of deck after generation

This commit is contained in:
Adam Goldsmith 2017-10-11 22:54:01 -04:00
parent 89f6e0d638
commit 2cfb6608e5

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