Upload viewer
Browse files- index.html +16 -4
index.html
CHANGED
|
@@ -93,6 +93,12 @@
|
|
| 93 |
.judge-expl { font-size: 13px; background: var(--panel2, rgba(127,127,127,.06));
|
| 94 |
border: 1px solid var(--line); border-left: 3px solid var(--warn, #eda100);
|
| 95 |
border-radius: 8px; padding: 10px 14px; margin-top: 4px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
/* layers */
|
| 98 |
.layer { margin: 26px 0; }
|
|
@@ -372,14 +378,20 @@ function renderTraj() {
|
|
| 372 |
content.appendChild(gt);
|
| 373 |
}
|
| 374 |
|
| 375 |
-
//
|
| 376 |
-
for (const L of t.layers) content.appendChild(renderLayer(L));
|
| 377 |
-
|
| 378 |
-
// final answers
|
| 379 |
if (t.final_answers && t.final_answers.length) {
|
| 380 |
content.appendChild(renderFinals(t.final_answers));
|
| 381 |
}
|
| 382 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 383 |
applyViews();
|
| 384 |
renderMath(content);
|
| 385 |
}
|
|
|
|
| 93 |
.judge-expl { font-size: 13px; background: var(--panel2, rgba(127,127,127,.06));
|
| 94 |
border: 1px solid var(--line); border-left: 3px solid var(--warn, #eda100);
|
| 95 |
border-radius: 8px; padding: 10px 14px; margin-top: 4px; }
|
| 96 |
+
/* divider before the MR/E exploration section */
|
| 97 |
+
.section-div { display: flex; align-items: center; gap: 12px; margin: 26px 0 4px;
|
| 98 |
+
font-family: var(--mono, ui-monospace, monospace); font-size: 11px;
|
| 99 |
+
text-transform: uppercase; letter-spacing: 1px; color: var(--text-2, #8a8880); }
|
| 100 |
+
.section-div::before, .section-div::after { content: ""; flex: 1; height: 1px;
|
| 101 |
+
background: var(--line); }
|
| 102 |
|
| 103 |
/* layers */
|
| 104 |
.layer { margin: 26px 0; }
|
|
|
|
| 378 |
content.appendChild(gt);
|
| 379 |
}
|
| 380 |
|
| 381 |
+
// final answers + judgement first (the outcome), then the MR/E exploration
|
|
|
|
|
|
|
|
|
|
| 382 |
if (t.final_answers && t.final_answers.length) {
|
| 383 |
content.appendChild(renderFinals(t.final_answers));
|
| 384 |
}
|
| 385 |
|
| 386 |
+
// MR/E exploration
|
| 387 |
+
if (t.layers && t.layers.length) {
|
| 388 |
+
const sep = document.createElement("div");
|
| 389 |
+
sep.className = "section-div";
|
| 390 |
+
sep.innerHTML = `<span>MR / E exploration — ${t.layers.length} layer(s)</span>`;
|
| 391 |
+
content.appendChild(sep);
|
| 392 |
+
for (const L of t.layers) content.appendChild(renderLayer(L));
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
applyViews();
|
| 396 |
renderMath(content);
|
| 397 |
}
|