Spaces:
Running
Running
simplify ui
Browse files- index.html +1 -1
- wasm-demo.js +2 -2
index.html
CHANGED
@@ -418,7 +418,7 @@
|
|
418 |
<section class="card" aria-labelledby="step4">
|
419 |
<h2 id="step4">4. Result</h2>
|
420 |
<div class="card-content">
|
421 |
-
<label for="encResult" class="visually-hidden">Encrypted result
|
422 |
<textarea id="encResult" rows="1" readonly placeholder="Encrypted result will appear here"></textarea>
|
423 |
<p id="decResult" aria-live="polite" style="flex: 1;"></p>
|
424 |
<div class="controls" style="margin-top: auto;">
|
|
|
418 |
<section class="card" aria-labelledby="step4">
|
419 |
<h2 id="step4">4. Result</h2>
|
420 |
<div class="card-content">
|
421 |
+
<label for="encResult" class="visually-hidden">Encrypted result</label>
|
422 |
<textarea id="encResult" rows="1" readonly placeholder="Encrypted result will appear here"></textarea>
|
423 |
<p id="decResult" aria-live="polite" style="flex: 1;"></p>
|
424 |
<div class="controls" style="margin-top: auto;">
|
wasm-demo.js
CHANGED
@@ -132,7 +132,7 @@ $('btnKeygen').onclick = async () => {
|
|
132 |
return;
|
133 |
}
|
134 |
show('keygenSpin', true);
|
135 |
-
$('keygenStatus').textContent = '
|
136 |
try {
|
137 |
keygenWorker.postMessage({});
|
138 |
} catch (e) {
|
@@ -319,7 +319,7 @@ async function getTaskResult(currentTaskId, currentUid, taskName) {
|
|
319 |
encServerResult = new Uint8Array(resultArrayBuffer);
|
320 |
|
321 |
console.log(`[Main] Received encrypted result: ${encServerResult.length} bytes`);
|
322 |
-
$('encResult').value = `Encrypted result
|
323 |
const duration = ((performance.now() - window.taskStartTime) / 1000).toFixed(1);
|
324 |
$('srvStatus').textContent = `✓ Complete! (${duration}s)`;
|
325 |
enable('btnDecrypt');
|
|
|
132 |
return;
|
133 |
}
|
134 |
show('keygenSpin', true);
|
135 |
+
$('keygenStatus').textContent = 'Generating keys…';
|
136 |
try {
|
137 |
keygenWorker.postMessage({});
|
138 |
} catch (e) {
|
|
|
319 |
encServerResult = new Uint8Array(resultArrayBuffer);
|
320 |
|
321 |
console.log(`[Main] Received encrypted result: ${encServerResult.length} bytes`);
|
322 |
+
$('encResult').value = `Encrypted result`;
|
323 |
const duration = ((performance.now() - window.taskStartTime) / 1000).toFixed(1);
|
324 |
$('srvStatus').textContent = `✓ Complete! (${duration}s)`;
|
325 |
enable('btnDecrypt');
|