From fa23bbf97e91513672c2d9cd487fa4e23847869c Mon Sep 17 00:00:00 2001 From: michaelsboost Date: Wed, 13 Mar 2024 19:21:56 -0500 Subject: [PATCH] update ui for mobile taps in side nav --- go/bundle.js | 11 +++++++++++ go/editor.mjs | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/go/bundle.js b/go/bundle.js index 8b2fc7af..e0f9ce6e 100644 --- a/go/bundle.js +++ b/go/bundle.js @@ -157165,6 +157165,7 @@ ${"-".repeat(err.pos)}^`; localStorage.setItem('kodeWeave', JSON.stringify(project)); }, + // init new project newProject: () => { projectTitle.value = ""; projectDesc.value = ""; @@ -157200,10 +157201,16 @@ ${"-".repeat(err.pos)}^`; type: "application/json" }); saveAs(blob, `${project.title.toString().toLowerCase().replace(/ /g,"")}-kodeWeave.json`); + + // check if menu is checked and if so uncheck + if (menu.checked) menu.onchange(); }, // Exports zip file exportZip: () => { + // check if menu is checked and if so uncheck + if (menu.checked) menu.onchange(); + let zip = new JSZip(); let licenseStr = `The MIT License (MIT) Copyright (c) ${new Date().getFullYear()} John Doe @@ -157672,6 +157679,10 @@ kWExportJSFiles.init();`); // render previews app.displayLibrariesArray(); + + // check if menu is checked and if so uncheck + if (menu.checked) menu.onchange(); + app.updatePreview(autoupdate.checked); }; reader.readAsText(document.getElementById('importProject').files[0]); diff --git a/go/editor.mjs b/go/editor.mjs index c00e3909..f5488531 100644 --- a/go/editor.mjs +++ b/go/editor.mjs @@ -679,6 +679,7 @@ const app = { localStorage.setItem('kodeWeave', JSON.stringify(project)); }, + // init new project newProject: () => { projectTitle.value = ""; projectDesc.value = ""; @@ -714,10 +715,16 @@ const app = { type: "application/json" }); saveAs(blob, `${project.title.toString().toLowerCase().replace(/ /g,"")}-kodeWeave.json`); + + // check if menu is checked and if so uncheck + if (menu.checked) menu.onchange(); }, // Exports zip file exportZip: () => { + // check if menu is checked and if so uncheck + if (menu.checked) menu.onchange(); + let zip = new JSZip(); let licenseStr = `The MIT License (MIT) Copyright (c) ${new Date().getFullYear()} John Doe @@ -1197,6 +1204,10 @@ kWExportJSFiles.init();`); // render previews app.displayLibrariesArray(); + + // check if menu is checked and if so uncheck + if (menu.checked) menu.onchange(); + app.updatePreview(autoupdate.checked); } reader.readAsText(document.getElementById('importProject').files[0]);