blob: 318fd515be0fe8d13491c4b59b5ca7dd81ff57f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{{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> 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> 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 }}
|