aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-06-26 20:50:16 -0500
committerChristian Cleberg <hello@cleberg.net>2024-06-26 20:50:16 -0500
commit4f4b864b4549a84a478e49ee9831f6324098c7fc (patch)
tree945fb405d1db79f03965e27bb7de47350f3e81ed
parentee72eb8b68f0b09fffaf54e9a6a8a0a47f2d14ea (diff)
downloadorg-live-4f4b864b4549a84a478e49ee9831f6324098c7fc.tar.gz
org-live-4f4b864b4549a84a478e49ee9831f6324098c7fc.tar.bz2
org-live-4f4b864b4549a84a478e49ee9831f6324098c7fc.zip
remove showHTML function
-rw-r--r--index.html2
-rw-r--r--static/app.js8
2 files changed, 0 insertions, 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();
-}