From 930ed9caa0f5669997f8a79cdfa49ec5a8c0660b Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 3 Apr 2026 00:31:24 -0700 Subject: [PATCH] Use escape codes instead of literal icons to avoid character encoding issues from server. --- test/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/index.html b/test/index.html index be4d16e..98bc0c7 100644 --- a/test/index.html +++ b/test/index.html @@ -237,16 +237,16 @@ SPDX-License-Identifier: GPL-3.0-or-later apiContainer.classList.remove('warning') apiContainer.title = '' } - validation.innerText = '⏳' + validation.innerText = `\u23f3` if (work.length === 16 && hash.length === 64) { NanoPow.work_validate(work, hash, { difficulty }) .then(result => { validation.innerText = result - ? '✔️' - : '❌' + ? `\u2713` + : `\u274c` }) .catch(err => { - validation.innerText = '⏳' + validation.innerText = `\u23f3` }) } } @@ -297,7 +297,7 @@ SPDX-License-Identifier: GPL-3.0-or-later div.hex{display:inline-block;} div.hex::before{color:grey;content:'0x';display:inline-block;font-size:90%;left:0.5em;position:relative;width:0;} div.hex>input{padding-left:1.5em;} - .warning::before{content:'⚠️';} + .warning::before{content:'\0026a0\00FE0F';} -- 2.47.3