JSFiddle - React, Tailwind, and code Playground
by Exceeder
HTML
<h1>
Boring page
</h1>
JavaScript
const support = {
async auth(message) {
const hashBuffer = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(message));
const hashArray = Array.from(new Uint8Array(hashBuffer));
this.pass = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
},
query(sql) {
fetch("/echo/json?sql="+btoa(sql)).then(res=>)
}
}