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`
})
}
}
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>