]> git.codecow.com Git - nano25519.git/commitdiff
Basic styling.
authorChris Duncan <chris@zoso.dev>
Tue, 14 Apr 2026 07:22:49 +0000 (00:22 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 14 Apr 2026 07:22:49 +0000 (00:22 -0700)
index.html

index 8439d4f081552882532b57f6ab2089703c678071..6ea182696a4fce230e5fe898bbb6db6b5c56d3ea 100644 (file)
@@ -450,7 +450,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
                document.getElementById('btnStartTest').addEventListener('click', startTest)
        </script>
        <style>
-               body{background:black;color:white;}a{color:darkcyan;}input[type=number]{width:5em;}input[type=checkbox]{margin-right:2em;}
+               body{background:black;color:white;font-size:0.9rem;line-height:140%;margin:0 auto;max-width:900px;}a{color:darkcyan;}input[type=number]{width:5em;}input[type=checkbox]{margin-right:2em;}
                div.hex{display:inline-block;font-family:monospace;}
                div.hex::before{color:grey;content:'0x';display:inline-block;font-family:monospace;font-size:90%;left:0.5em;position:relative;width:0;}
                div.hex>input{font-family:monospace;padding-left:1.5em;}
@@ -459,9 +459,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
 </head>
 
 <body>
-       <h1>nano25519</h1>
-       <h4><a href="https://www.npmjs.com/package/nano25519">https://www.npmjs.com/package/nano25519</a></h4>
-       <h2>Speed test for nano25519</h2>
+       <h1>Speed test for nano25519</h1>
+       <h2><a href="https://www.npmjs.com/package/nano25519">https://www.npmjs.com/package/nano25519</a></h2>
        <p>This test compares different Ed25519 implementations by running a sequence of functions. A random 32-byte value is generated for a message and private key, and then the test uses the values to derive a public key, sign the message, and verify the signature.</p>
        <ul>
                <li>Each derive-sign-verify sequence is timed as a unit.</li>
@@ -482,7 +481,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
                <li>Calculate the harmonic mean of the truncated results.</li>
        </ol>
        <hr />
-       <label for="signature">Verify Signature</label>
+       <h3>Verification Tool</h3>
+       <label for="signature">Signature</label>
        <div class="hex"><input id="signature" type="text" /></div>
        <label for="blockHash" class="hex">Block Hash</label>
        <div class="hex"><input id="blockHash" type="text" /></div>