summaryrefslogtreecommitdiffstats
path: root/static/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/static/index.html b/static/index.html
index 33e5868..abf2e8c 100644
--- a/static/index.html
+++ b/static/index.html
@@ -27,8 +27,12 @@
</div>
<form id="drop-form">
- <label for="message">Message</label>
- <textarea id="message" placeholder="Write your message here. It will be encrypted before leaving your browser."></textarea>
+ <div class="message-header">
+ <label for="message">Message</label>
+ <button type="button" id="preview-toggle" class="preview-toggle">Preview</button>
+ </div>
+ <textarea id="message" placeholder="Write your message here (Markdown supported). It will be encrypted before leaving your browser."></textarea>
+ <div id="message-preview" class="md-preview" hidden></div>
<div class="file-section">
<label>Attachment (optional)</label>
@@ -54,6 +58,7 @@
</div>
<div class="footer">NYMDROP &nbsp;·&nbsp; ZERO KNOWLEDGE &nbsp;·&nbsp; ZERO LOGS</div>
<script src="/crypto.js"></script>
+<script src="/markdown.js"></script>
<script src="/app.js"></script>
</body>
</html>