Skip to content

Commit

Permalink
Show list details - timestamp, version
Browse files Browse the repository at this point in the history
  • Loading branch information
zh committed Sep 9, 2021
1 parent a9ba7b7 commit d2fbde4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
console.log(e);
}

if (tokensObj.timestamp) {
document.getElementById('listTimestamp').innerHTML = '<code>'+tokensObj.timestamp+'</code>';
}

if (tokensObj.version) {
const version = tokensObj.version.major+'.'+tokensObj.version.minor+'.'+tokensObj.version.patch;
document.getElementById('listVersion').innerHTML = '<code>'+version+'</code>';
}

if (tokensObj.tokens && tokensObj.tokens.length > 0) {
tokensObj.tokens.map(t => {
const logoUri = '<img src="'+t.logoURI+'" width="32" height="32" />';
Expand All @@ -72,8 +81,8 @@
});
}

document.getElementById('mainnetTokenTbl').innerHTML=mainnetList.join("");
document.getElementById('testnetTokenTbl').innerHTML=testnetList.join("");
document.getElementById('mainnetTokenTbl').innerHTML = mainnetList.join("");
document.getElementById('testnetTokenTbl').innerHTML = testnetList.join("");
});
</script>
</head>
Expand All @@ -82,6 +91,12 @@
<h1 style="text-align: center;">SEP20 Tokens</h1>
<p>Here are some known SEP20 tokens on smartBCH. You can view these tokens in the <a href="https://www.smartscan.cash">browser</a>, or add them to your wallet plugin as an asset to watch.</p>

<b>Token List</b>:<br/>
<ul>
<li>Version: <span id="listVersion"></span></li>
<li>Created: <span id="listTimestamp"></span></li>
</ul>

<p>
<h2 style="text-align: center;">Mainnet SEP20 Tokens</h2>
<table id="mainnetTokenTbl"></table>
Expand Down

0 comments on commit d2fbde4

Please sign in to comment.