summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorJonas Kohl2024-11-07 18:15:56 +0100
committerJonas Kohl2024-11-07 18:15:56 +0100
commitdcfff04c97cc4415623c9fc103c581346c87412a (patch)
tree236a6eff4d11149773c41c059805ce28dfe181f3 /public/index.php
parent887ee6afe950e1b72f133fc180d43ebd5462eefd (diff)
Add download button
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
index e767a65..b6ac78e 100644
--- a/public/index.php
+++ b/public/index.php
@@ -150,6 +150,7 @@ $csrf = csrf_token();
<textarea maxlength="16383" id="editor" name="code" rows="20"><?= htmlentities($code ?? $defaultCode) ?></textarea>
<div id="toolbar">
<button type="submit">&#9654;&nbsp;Compile &amp; run</button>
+ <button type="button" id="dlCodeButton">Download code as file</button>
</div>
</form>
<div id="output" style="display: none;"></div>