diff options
Diffstat (limited to 'templates/pages/memo.gohtml')
-rw-r--r-- | templates/pages/memo.gohtml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/pages/memo.gohtml b/templates/pages/memo.gohtml index 804d7b7..e981266 100644 --- a/templates/pages/memo.gohtml +++ b/templates/pages/memo.gohtml @@ -3,10 +3,16 @@ <div class="layout-center"> <form action="/"> <h1>Secret:</h1> - <b>Warning!</b> This text already deleted from server! If you refresh or close page - secret will be completely lost! - <hr /> - <pre>{{.secret}}</pre> - <hr /> + <div id="content"> + <button + class='btn' + hx-get="/api/s/{{.id}}" + hx-target="#content" + hx-swap="innerHTML"> + Show secret content + </button> + <span class="htmx-indicator">Loading...</span> + </div> <input type="submit" value="← Back"> </form> </div> |