From 8d9b549a8d74c74074b271e24b154c1a44e88ffb Mon Sep 17 00:00:00 2001 From: Josh birnholz Date: Sat, 18 Feb 2023 17:15:32 -0500 Subject: [PATCH] Open creator on page load --- js/creator-23.js | 2 +- js/main-1.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/creator-23.js b/js/creator-23.js index ff2b2548..4c527f60 100644 --- a/js/creator-23.js +++ b/js/creator-23.js @@ -800,7 +800,7 @@ function autoFrame() { } } async function autoUBFrame(colors, mana_cost, type_line, power) { - var frames = card.frames.filter(frame => frame.name.includes('Extension') || frame.name.includes('Gray Holo Stamp')); + var frames = card.frames.filter(frame => frame.name.includes('Extension') || frame.name.includes('Gray Holo Stamp') || frame.name.includes('Gold Holo Stamp')); //clear the draggable frames card.frames = []; diff --git a/js/main-1.js b/js/main-1.js index df8284d0..34505eb5 100644 --- a/js/main-1.js +++ b/js/main-1.js @@ -117,4 +117,9 @@ function bindInputs(query1, query2, checkbox = false) { e1.oninput = (event) => {e2.value = e1.value;} e2.oninput = (event) => {e1.value = e2.value;} } -} \ No newline at end of file +} + +document.addEventListener('DOMContentLoaded', function() { + document.body.dispatchEvent(new Event('doCreate')); +}) +