-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
30 lines (30 loc) · 1.21 KB
/
template.html
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
26
27
28
29
30
<!DOCTYPE html>
<html lang="en" style="width: 100%;">
<head>
<title>Verify</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body style=" text-align: center; font-family: sans-serif;">
<div id="container" style="text-align: left; display: inline-block; max-width: 900px; width: 100%;">
<h3>{{ .Title }}</h3>
<div style="border: 1px solid gray; border-radius: 8px; padding: 10px; ">
<code id="tokenbox" style=" word-break: break-all;">{{ .Content }}</code>
</div>
<button id="copybutton" onclick="copytext()" style="padding: 5px 20px; margin: 10px 0px; ">Copy to clipboard</button>
<details>
<summary style="cursor: pointer;">Help!</summary>
<p>If you are having issues, please reach out to one of the committee members on Discord (qduff, starswap, ...) or via email.</p>
</details>
</div>
<script>
const copytext = async () => {
try {
await navigator.clipboard.writeText(document.getElementById("tokenbox").innerText);
document.getElementById("copybutton").innerHTML = "Copied!"
} catch (err) {
document.getElementById("copybutton").innerHTML = "Could not copy!"
}
}
</script>
</body>
</html>