summaryrefslogblamecommitdiff
path: root/templates/pages/save.gohtml
blob: 318fd515be0fe8d13491c4b59b5ca7dd81ff57f9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                              

                                              

                      



                                                                                                
                                                                              

                                                                              
      









                                                           
         
{{template "layout.gohtml" .}}
{{define "content"}}
<div class="flex content three">
    <div class="full off-third-800 third-800">
        <h1>Saved</h1>
        Secret url:
        <div class="stack">
            <input class="stack" type="text" id="link" value="https://sendsafe.xyz/s/{{.id}}" />
            <button class="stack" id="copy"><i class="icon-docs"></i>&nbsp;Copy link</button>
        </div>
        <p>Send this link to recepient. This link can be viewed only once!</p>
        <a href="/" class="button"><i class="icon-left-big"></i>&nbsp;Back</a>
    </div>
</div>
<script type="application/javascript">
htmx.onLoad(function(content) {
    document.getElementById("copy").onclick = function () {
        var copyText = document.getElementById("link");
        copyText.select();
        copyText.setSelectionRange(0, 99999);
        document.execCommand("copy");
    }
})
</script>
{{ end }}