Add jump to top and bottom buttons for long pastes and editor (#267)
CI / test (pull_request) Successful in 23s
CI / docker (pull_request) Skipped

This commit is contained in:
fen
2026-09-17 14:59:05 -05:00
parent 1872dac8b4
commit 5ddfa21658
4 changed files with 82 additions and 0 deletions
+5
View File
@@ -56,7 +56,12 @@
</div>
{{end}}
</div>
<div class="jump-nav">
<button type="button" class="jump-top" aria-label="Jump to top">Top</button>
<button type="button" class="jump-bottom" aria-label="Jump to bottom">Bottom</button>
</div>
<input type="hidden" id="raw-content" value="{{.ContentAttr}}">
<script src="/static/paste.js" defer data-paste-id="{{.ID}}"></script>
<script src="/static/paste-lines.js" defer></script>
<script src="/static/jump.js" defer></script>
{{template "foot" .}}