mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-14 09:41:02 +00:00
loading indicator
This commit is contained in:
+9
-3
@@ -23,7 +23,8 @@
|
|||||||
.header img { height: 1.5rem; margin-right: 0.5rem; width: 1.5rem }
|
.header img { height: 1.5rem; margin-right: 0.5rem; width: 1.5rem }
|
||||||
.row { align-items: center; display: flex; justify-content: center }
|
.row { align-items: center; display: flex; justify-content: center }
|
||||||
table { margin: 0 0 1rem }
|
table { margin: 0 0 1rem }
|
||||||
td { font-family: monospace; padding: 0.25rem 0.5rem; text-align: right }
|
td:not(.centered) { font-family: monospace; padding: 0.25rem 0.5rem; text-align: right }
|
||||||
|
td.centered { text-align: center }
|
||||||
td:nth-child(2) { width: 100% }
|
td:nth-child(2) { width: 100% }
|
||||||
td > h3 { margin: 0; opacity: 0.25 }
|
td > h3 { margin: 0; opacity: 0.25 }
|
||||||
tr + tr > td > h3 { margin-top: 0.5rem }
|
tr + tr > td > h3 { margin-top: 0.5rem }
|
||||||
@@ -42,6 +43,11 @@
|
|||||||
<p class="buttons"><a href="#" id="btn-sites" onclick="fillTable('sites')">Sites</a><a href="#" id="btn-addresses" onclick="fillTable('addresses')">Addresses</a></p>
|
<p class="buttons"><a href="#" id="btn-sites" onclick="fillTable('sites')">Sites</a><a href="#" id="btn-addresses" onclick="fillTable('addresses')">Addresses</a></p>
|
||||||
<table>
|
<table>
|
||||||
<tbody id="table">
|
<tbody id="table">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td class="centered">Loading address & site metadata ...</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -174,8 +180,8 @@
|
|||||||
draw();
|
draw();
|
||||||
|
|
||||||
const [addrBody, metaBody] = await Promise.all([
|
const [addrBody, metaBody] = await Promise.all([
|
||||||
fetch('https://polkadot.js.org/phishing/address.json'),
|
fetch('address.json'),
|
||||||
fetch('https://polkadot.js.org/phishing/urlmeta.json')
|
fetch('urlmeta.json')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
[addrJson, metaJson] = await Promise.all([
|
[addrJson, metaJson] = await Promise.all([
|
||||||
|
|||||||
Reference in New Issue
Block a user