-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (33 loc) · 1.24 KB
/
index.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
31
32
33
34
35
36
37
38
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RORCUAL NODES – The official site of the Rorcual Validator.</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Barlow+Semi+Condensed:wght@300;400;500&family=Inconsolata&display=swap">
<script src="main.min.js"></script>
</head>
<body>
<div id="root"></div>
<script>
var app = Elm.Main.init({
node: document.getElementById('root')
});
</script>
<script>
app.ports.copyToClipboard.subscribe(function (text) {
console.log("Clipboard: ", text)
navigator.clipboard.writeText(text)
.then(() => {
app.ports.copyResult.send("Copied to clipboard");
})
.catch(err => {
app.ports.copyResult.send("Error: " + err.message);
});
});
</script>
</body>
</html>