first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// ═══════════════════════════════════════════════════════
|
||||
// Base64
|
||||
// ═══════════════════════════════════════════════════════
|
||||
async function base64Op(op) {
|
||||
const text = document.getElementById('b64Input').value;
|
||||
if (!text) return setStatus('b64Status','error','Enter some text.');
|
||||
const d = await apiPost('/api/base64/' + op, { text });
|
||||
if (d.success) { document.getElementById('b64Output').value = d.result; setStatus('b64Status','success', op === 'encode' ? 'Encoded ✓' : 'Decoded ✓'); }
|
||||
else setStatus('b64Status','error', d.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user