From: Ardis Lu Date: Mon, 21 Aug 2023 03:37:03 +0000 (-0700) Subject: Show interface ID in output instead of console X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=97fc31f7b48393e4eca14f7d7127804f5c0a94cf;p=erc-165-calculator Show interface ID in output instead of console --- diff --git a/index.html b/index.html index 1687656..d9e590c 100644 --- a/index.html +++ b/index.html @@ -52,6 +52,10 @@ button { padding: 4px 8px; } + + output:empty::after { + content: '—'; + } @@ -67,7 +71,8 @@ - + + @@ -96,7 +101,7 @@ } const xorHash = `0x${[...xor].map(b => b.toString(16).padStart(2, '0')).join('')}`; - console.log(xorHash); + e.target.elements['output'].textContent = xorHash; });