Update HTML template for the WS API examples
This commit is contained in:
parent
e2c4e42c81
commit
85c4574cbd
@ -174,10 +174,10 @@ init();`;
|
|||||||
|
|
||||||
let resultHtml = '<pre id="result"></pre>';
|
let resultHtml = '<pre id="result"></pre>';
|
||||||
if (this.method === 'websocket') {
|
if (this.method === 'websocket') {
|
||||||
resultHtml = `<pre id="result-blocks"></pre>
|
resultHtml = `<h2>Blocks</h2><pre id="result-blocks">Waiting for data</pre><br>
|
||||||
<pre id="result-mempool-info"></pre>
|
<h2>Mempool Info</h2><pre id="result-mempool-info">Waiting for data</pre><br>
|
||||||
<pre id="result-transactions"></pre>
|
<h2>Transactions</h2><pre id="result-transactions">Waiting for data</pre><br>
|
||||||
<pre id="result-mempool-blocks"></pre>`;
|
<h2>Mempool Blocks</h2><pre id="result-mempool-blocks">Waiting for data</pre><br>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `<!DOCTYPE html>
|
return `<!DOCTYPE html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user