forked from sep20tokens/sep20tokens.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
45 lines (45 loc) · 1.47 KB
/
app.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
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<title>DApp Addresses</title>
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="stylesheet" href="./styles.css">
<script>
document.addEventListener("DOMContentLoaded", async function() {
let apps = [];
try {
const resp = await fetch("./apps.json")
apps = await resp.json()
} catch(e) {
console.log(e);
}
const keys = Object.keys(apps)
keys.sort()
const strList = ['<tr class="header"><th>URL</th><th>Address</th><th> </th></tr>'];
for(let key of keys) {
if(key.length == 0) {
continue
}
const value = apps[key]
const addr = value[0]
const url = value[1]
strList.push('<tr><td><a href="'+url+'" target="_blank">'+key+'</a></td>')
strList.push('<td><span class="copy" onclick="navigator.clipboard.writeText(\''+addr+'\')"><code>'+addr+'</code></span></td>');
}
document.getElementById('appTbl').innerHTML=strList.join("");
});
</script>
</head>
<body>
<div class="normal">
<h1 style="text-align: center;">dApp Addresses</h1>
<p>Here are some known dApp's addresses on smartBCH.</p>
<table style="margin: auto" id="appTbl">
</table>
<p>You can also view some <a href="index.html">known SEP20 tokens on smartBCH</a>.
You can view these tokens in the <a href="https://www.smartscan.cash">explorer</a>,
or add them to your wallet plugin as an asset to watch.</p>
<p>See also the <a href="tools.html">list of tools, working with SmartBCH blockchain</a>.</p>
</div>
</body>
</html>