Improve dashboard sample demo flow
Browse files- index.html +16 -8
index.html
CHANGED
|
@@ -156,7 +156,7 @@
|
|
| 156 |
display: grid;
|
| 157 |
grid-template-columns: repeat(3, 1fr);
|
| 158 |
gap: 8px;
|
| 159 |
-
margin-top:
|
| 160 |
width: 100%;
|
| 161 |
}
|
| 162 |
|
|
@@ -174,6 +174,16 @@
|
|
| 174 |
min-height: 44px;
|
| 175 |
}
|
| 176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
.sample-btn:hover {
|
| 178 |
border-color: var(--accent);
|
| 179 |
color: var(--accent);
|
|
@@ -383,7 +393,7 @@
|
|
| 383 |
<a href="https://github.com/aclascollege/aegis-graph" target="_blank" style="font-size: 10px; color: var(--accent); text-decoration: none; margin-top: 12px; display: inline-block; font-weight: 700; letter-spacing: 0.5px;">PROTOCOL SOURCE ↗</a>
|
| 384 |
</div>
|
| 385 |
</div>
|
| 386 |
-
<div class="bento"><p class="label" data-i18n="label_hub">Evidence Processing</p><div class="center-hub" style="height: 100%;"><div class="drop-zone" id="drop-zone"><div style="font-size: 32px; color: var(--accent); margin-bottom: 12px;">✧</div><p style="font-size: 15px; font-weight: 700; font-family: 'Outfit'; letter-spacing: 1px;" data-i18n="drop_text">INGEST CREDENTIAL</p><p style="font-size: 10px; color: var(--dim); margin-top: 4px;">PDF, JPG, PNG SUPPORTED</p><p style="font-size: 9px; color: #ffcc66; margin-top: 8px; max-width: 260px; line-height: 1.4;">DEMO MODE: local preview only. Final credential verification requires a server-signed audit.</p><input type="file" id="f-input" accept=".pdf,image/png,image/jpeg" style="display: none"></div></div></div>
|
| 387 |
<div class="bento" style="grid-row: span 2;"><p class="label" data-i18n="label_telemetry">Live Telemetry</p><div class="terminal" id="console"><div>[SYSTEM] Sovereign Node Active. Waiting for ingestion...</div></div></div>
|
| 388 |
<div class="bento">
|
| 389 |
<p class="label" data-i18n="label_metadata">Sovereign Analytics</p>
|
|
@@ -391,11 +401,6 @@
|
|
| 391 |
<div class="meta-item"><span class="label" style="margin-bottom:0; font-size: 8px;" data-i18n="meta_issuer">Issuer</span><div class="meta-val" id="m-issuer">--</div></div>
|
| 392 |
<div class="meta-item"><span class="label" style="margin-bottom:0; font-size: 8px;" data-i18n="meta_status">Status</span><div class="meta-val" id="m-status">--</div></div>
|
| 393 |
</div>
|
| 394 |
-
<div class="sample-grid">
|
| 395 |
-
<button class="sample-btn" data-sample="aclas_alumni_2025.png">ACLAS</button>
|
| 396 |
-
<button class="sample-btn" data-sample="fake_degree_sample.png">FAKE</button>
|
| 397 |
-
<button class="sample-btn" data-sample="graham_university_transcript.pdf">GRAHAM</button>
|
| 398 |
-
</div>
|
| 399 |
</div>
|
| 400 |
</div>
|
| 401 |
<div class="modal" id="modal"><div class="report" id="rep-body"></div></div>
|
|
@@ -492,12 +497,15 @@
|
|
| 492 |
document.getElementById('drop-zone').onclick = () => document.getElementById('f-input').click();
|
| 493 |
|
| 494 |
document.querySelectorAll('.sample-btn').forEach(sampleBtn => {
|
| 495 |
-
sampleBtn.onclick = () => {
|
|
|
|
|
|
|
| 496 |
const sampleName = sampleBtn.getAttribute('data-sample');
|
| 497 |
const mimeType = sampleName.endsWith('.pdf') ? 'application/pdf' : 'image/png';
|
| 498 |
file = { name: sampleName, type: mimeType, demoSample: true };
|
| 499 |
showSelectedFile(sampleName, 'Built-in demo fixture selected.');
|
| 500 |
log(`SAMPLE LOADED: ${sampleName}`);
|
|
|
|
| 501 |
};
|
| 502 |
});
|
| 503 |
|
|
|
|
| 156 |
display: grid;
|
| 157 |
grid-template-columns: repeat(3, 1fr);
|
| 158 |
gap: 8px;
|
| 159 |
+
margin-top: 14px;
|
| 160 |
width: 100%;
|
| 161 |
}
|
| 162 |
|
|
|
|
| 174 |
min-height: 44px;
|
| 175 |
}
|
| 176 |
|
| 177 |
+
.sample-btn span {
|
| 178 |
+
display: block;
|
| 179 |
+
color: var(--dim);
|
| 180 |
+
font-size: 9px;
|
| 181 |
+
font-family: 'Inter';
|
| 182 |
+
font-weight: 600;
|
| 183 |
+
letter-spacing: 0;
|
| 184 |
+
margin-top: 3px;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
.sample-btn:hover {
|
| 188 |
border-color: var(--accent);
|
| 189 |
color: var(--accent);
|
|
|
|
| 393 |
<a href="https://github.com/aclascollege/aegis-graph" target="_blank" style="font-size: 10px; color: var(--accent); text-decoration: none; margin-top: 12px; display: inline-block; font-weight: 700; letter-spacing: 0.5px;">PROTOCOL SOURCE ↗</a>
|
| 394 |
</div>
|
| 395 |
</div>
|
| 396 |
+
<div class="bento"><p class="label" data-i18n="label_hub">Evidence Processing</p><div class="center-hub" style="height: 100%;"><div class="drop-zone" id="drop-zone"><div style="font-size: 32px; color: var(--accent); margin-bottom: 12px;">✧</div><p style="font-size: 15px; font-weight: 700; font-family: 'Outfit'; letter-spacing: 1px;" data-i18n="drop_text">INGEST CREDENTIAL</p><p style="font-size: 10px; color: var(--dim); margin-top: 4px;">PDF, JPG, PNG SUPPORTED</p><p style="font-size: 9px; color: #ffcc66; margin-top: 8px; max-width: 260px; line-height: 1.4;">DEMO MODE: local preview only. Final credential verification requires a server-signed audit.</p><input type="file" id="f-input" accept=".pdf,image/png,image/jpeg" style="display: none"></div><div class="sample-grid"><button class="sample-btn" data-sample="aclas_alumni_2025.png">VERIFIED<span>ACLAS</span></button><button class="sample-btn" data-sample="fake_degree_sample.png">FRAUD<span>Pacific Western</span></button><button class="sample-btn" data-sample="graham_university_transcript.pdf">BLACKLIST<span>Graham</span></button></div></div></div>
|
| 397 |
<div class="bento" style="grid-row: span 2;"><p class="label" data-i18n="label_telemetry">Live Telemetry</p><div class="terminal" id="console"><div>[SYSTEM] Sovereign Node Active. Waiting for ingestion...</div></div></div>
|
| 398 |
<div class="bento">
|
| 399 |
<p class="label" data-i18n="label_metadata">Sovereign Analytics</p>
|
|
|
|
| 401 |
<div class="meta-item"><span class="label" style="margin-bottom:0; font-size: 8px;" data-i18n="meta_issuer">Issuer</span><div class="meta-val" id="m-issuer">--</div></div>
|
| 402 |
<div class="meta-item"><span class="label" style="margin-bottom:0; font-size: 8px;" data-i18n="meta_status">Status</span><div class="meta-val" id="m-status">--</div></div>
|
| 403 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 404 |
</div>
|
| 405 |
</div>
|
| 406 |
<div class="modal" id="modal"><div class="report" id="rep-body"></div></div>
|
|
|
|
| 497 |
document.getElementById('drop-zone').onclick = () => document.getElementById('f-input').click();
|
| 498 |
|
| 499 |
document.querySelectorAll('.sample-btn').forEach(sampleBtn => {
|
| 500 |
+
sampleBtn.onclick = (e) => {
|
| 501 |
+
e.stopPropagation();
|
| 502 |
+
if (btn.disabled) return;
|
| 503 |
const sampleName = sampleBtn.getAttribute('data-sample');
|
| 504 |
const mimeType = sampleName.endsWith('.pdf') ? 'application/pdf' : 'image/png';
|
| 505 |
file = { name: sampleName, type: mimeType, demoSample: true };
|
| 506 |
showSelectedFile(sampleName, 'Built-in demo fixture selected.');
|
| 507 |
log(`SAMPLE LOADED: ${sampleName}`);
|
| 508 |
+
setTimeout(() => btn.click(), 80);
|
| 509 |
};
|
| 510 |
});
|
| 511 |
|