From 1eed38b03426a016b48e54065d96c8ecf79b2483 Mon Sep 17 00:00:00 2001 From: valdok Date: Fri, 19 Jan 2024 08:51:33 +0200 Subject: [PATCH] explorer WIP(3) --- explorer/htm/explorer.htm | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/explorer/htm/explorer.htm b/explorer/htm/explorer.htm index b2c465392..4446a5f7d 100644 --- a/explorer/htm/explorer.htm +++ b/explorer/htm/explorer.htm @@ -76,10 +76,15 @@ { return "" + txt + ""; } + + 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) @@ -461,6 +466,21 @@

Asset " + g_CurrentID + " history

\n\ function DisplayBlock() { let text = ""; + + text += ""; + if (g_CurrentID > 0) + { + text += MakeRef(UrlBlock(g_CurrentID - 1), MakeMonospace("←")); + text += " "; + text += MakeMonospace(g_CurrentID); + } + else + text += "Treasury"; + + text += " "; + text += MakeRef(UrlBlock(g_CurrentID - 1 + 2), MakeMonospace("→")); + text += "" + const jData = JSON.parse(this.responseText); let j = jData["info"];