Allow changing the type of deck after generation
This commit is contained in:
parent
89f6e0d638
commit
2cfb6608e5
@ -47,6 +47,10 @@ window.addEventListener("load", () => {
|
|||||||
document.querySelector('#deckForm').addEventListener('input', event => {
|
document.querySelector('#deckForm').addEventListener('input', event => {
|
||||||
let prop = event.target.id.substring(4).toLowerCase();
|
let prop = event.target.id.substring(4).toLowerCase();
|
||||||
deckJSON[prop] = event.target.value;
|
deckJSON[prop] = event.target.value;
|
||||||
|
if (prop === 'type') {
|
||||||
|
makeSVGs(deckJSON);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// handle changes to card editor
|
// handle changes to card editor
|
||||||
|
Loading…
Reference in New Issue
Block a user