From: Chris Duncan Date: Fri, 3 Apr 2026 07:31:24 +0000 (-0700) Subject: Use escape codes instead of literal icons to avoid character encoding issues from... X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;ds=inline;p=nano-pow.git Use escape codes instead of literal icons to avoid character encoding issues from server. --- 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';}