From 3ae052c13c55af89eb957f12a6c17d73ceb71f9a Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 9 Oct 2017 03:30:17 -0400 Subject: [PATCH] Editor: Add save button and rearange buttons a bit --- html/editor.html | 10 +++++++++- js/editor.js | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/html/editor.html b/html/editor.html index e66cb0e..35f12bd 100644 --- a/html/editor.html +++ b/html/editor.html @@ -5,7 +5,15 @@ Editor -
+
+ + +
+
+ +
diff --git a/js/editor.js b/js/editor.js index 06300aa..babc72a 100644 --- a/js/editor.js +++ b/js/editor.js @@ -22,6 +22,9 @@ window.addEventListener("load", () => { reader.readAsText(files[0]); }); + // Upload on save button + document.querySelector('#saveButton').addEventListener('click', upload); + // download input JSON document.querySelector('#jsonInputDownload').addEventListener('click', () => { let dl = document.createElement('a');