krz/org-live

An org-mode editor with live preview.

clone: git clone https://gitbay.org/krz/org-live.git

4f4b864b4549a84a478e49ee9831f6324098c7fc

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2024-06-27T01:50:16Z

remove showHTML function
 index.html    | 2 --
 static/app.js | 8 --------
 2 files changed, 10 deletions(-)

diff --git a/index.html b/index.html
index 77fe6db..7248850 100644
--- a/index.html
+++ b/index.html
@@ -11,7 +11,6 @@
             <div>
                 <label for="editor">org-live</label>
                 <span class="spacer"></span>
-                <button type="button" onclick="showHTML();">Show HTML</button>
                 <button type="button" onclick="saveHTML();">Save HTML</button>
                 <button type="button" onclick="saveOrg();">Save Org</button>
             </div>
@@ -29,7 +28,6 @@
             ></textarea>
         </form>
 	<div id="preview"></div>
-        <dialog id="modal"></dialog>
         <script src="./static/org.js"></script>
         <script src="./static/app.js"></script>
     </body>
diff --git a/static/app.js b/static/app.js
index 36f6c89..bfa426e 100644
--- a/static/app.js
+++ b/static/app.js
@@ -56,11 +56,3 @@ function saveHTML() {
         window.URL.revokeObjectURL(url);
     }, 0);
 }
-
-function showHTML() {
-    var data = parseOrg();
-    data += "<form method='dialog'><button>Close dialog</button></form>";
-    var element = document.getElementById("modal");
-    element.innerHTML = data.toString();
-    element.showModal();
-}