From: Chris Duncan Date: Mon, 23 Mar 2026 06:07:50 +0000 (-0700) Subject: Enable testing only after successfully loading library and test vectors. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=58cea279deaf2307a41473573446d0b946c58223;p=nano25519.git Enable testing only after successfully loading library and test vectors. --- diff --git a/index.html b/index.html index 39cd467..bbbc268 100644 --- a/index.html +++ b/index.html @@ -39,9 +39,16 @@ SPDX-License-Identifier: GPL-3.0-or-later ({ NANO_ORG_VECTOR, PYTHON_ED25519_BLAKE2B_VECTORS } = await import('https://git.codecow.com/?p=nano25519.git;a=blob_plain;f=vectors.mjs;hb=refs/heads/main')) } catch (err) { console.error(err) + document.getElementById('status').innerHTML = err?.message ?? err ?? `ERROR WHILE LOADING` } } + if (nano25519 && PYTHON_ED25519_BLAKE2B_VECTORS) { + document.getElementById('btnStartTest').disabled = false + document.getElementById('status').innerHTML = `READY` + } + + /** * Computes various types of averages for a set of numbers. * @@ -476,9 +483,9 @@ SPDX-License-Identifier: GPL-3.0-or-later - +
-

WAITING

+

LOADING