]> git.codecow.com Git - nano-pow.git/commitdiff
Use escape codes instead of literal icons to avoid character encoding issues from... main
authorChris Duncan <chris@codecow.com>
Fri, 3 Apr 2026 07:31:24 +0000 (00:31 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 3 Apr 2026 07:31:24 +0000 (00:31 -0700)
test/index.html

index be4d16edcfd8c577879b1e94de45c858cb405a4a..98bc0c7ccfb19c4225b7e7ddeaf90b973962e624 100644 (file)
@@ -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';}
        </style>
 </head>