Skip to content

Commit

Permalink
explorer WIP(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
valdok committed Jan 19, 2024
1 parent 38a1391 commit 1eed38b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion explorer/htm/explorer.htm
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,15 @@
{
return "<tt>" + txt + "</tt>";
}

function UrlBlock(h)
{
return UrlSelfWithID("block", h, "");
}

function MakeBlock(h)
{
return MakeRef(UrlSelfWithID("block", h, ""), MakeMonospace(h));
return MakeRef(UrlBlock(h), MakeMonospace(h));
}

function MakeCellAmount(amount, extra)
Expand Down Expand Up @@ -461,6 +466,21 @@ <h2>Asset " + g_CurrentID + " history</h2>\n\
function DisplayBlock()
{
let text = "";

text += "<span style='font-size:50px;'>";
if (g_CurrentID > 0)
{
text += MakeRef(UrlBlock(g_CurrentID - 1), MakeMonospace("&larr;"));
text += " ";
text += MakeMonospace(g_CurrentID);
}
else
text += "Treasury";

text += " ";
text += MakeRef(UrlBlock(g_CurrentID - 1 + 2), MakeMonospace("&rarr;"));
text += "</span>"

const jData = JSON.parse(this.responseText);

let j = jData["info"];
Expand Down

0 comments on commit 1eed38b

Please sign in to comment.