diff --git a/DESIGN.md b/DESIGN.md index 86de6a7..21ba9b7 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -36,6 +36,11 @@ typography: fontSize: "13px" fontWeight: 500 lineHeight: 1.4 + code: + fontFamily: '"JetBrains Mono", monospace' + fontSize: "12px" + fontWeight: 500 + lineHeight: 1.5 rounded: control: "7px" field: "6px" @@ -62,10 +67,8 @@ components: rounded: "{rounded.panel}" padding: "24px" status: - backgroundColor: "{colors.attention-ground}" textColor: "{colors.attention}" - rounded: "{rounded.status}" - padding: "6px 10px" + padding: "0" --- ## Overview diff --git a/Processing/tests/browser_change_assurance.py b/Processing/tests/browser_change_assurance.py index 82fa74c..05b8061 100644 --- a/Processing/tests/browser_change_assurance.py +++ b/Processing/tests/browser_change_assurance.py @@ -26,7 +26,7 @@ def run_desktop(browser): assert page.locator("[data-view-link]").count() == 3 assert page.get_by_role("heading", name="The schedule changed. Did the update explain it?").is_visible() - page.get_by_role("button", name="Try the Northstar example").click() + page.get_by_role("button", name="Try the example project").click() page.locator("#readinessWorkspace").wait_for(state="visible") readiness_status = page.locator("#readinessStatus").inner_text() assert readiness_status.casefold() == "needs evidence before decision", readiness_status @@ -112,7 +112,7 @@ def run_desktop(browser): page.goto(BASE_URL) page.wait_for_load_state("networkidle") - page.get_by_role("button", name="Try the Northstar example").click() + page.get_by_role("button", name="Try the example project").click() page.locator("#readinessWorkspace").wait_for(state="visible") page.evaluate("document.querySelector('#readinessWorkspace').scrollIntoView()") page.screenshot(path=str(SCREENSHOTS / "change-assurance-overview.png"), full_page=False) @@ -127,7 +127,7 @@ def run_mobile(browser): page.wait_for_load_state("networkidle") assert page.evaluate("document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1") assert page.locator("[data-view-link]").count() == 3 - page.get_by_role("button", name="Try the Northstar example").click() + page.get_by_role("button", name="Try the example project").click() page.locator("#readinessWorkspace").wait_for(state="visible") assert page.locator("#blockerList .blocker").count() == 3 assert page.evaluate("document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1") diff --git a/Processing/tests/browser_product_landing.py b/Processing/tests/browser_product_landing.py index c57ecb6..e3e7e3b 100644 --- a/Processing/tests/browser_product_landing.py +++ b/Processing/tests/browser_product_landing.py @@ -95,7 +95,7 @@ def own_files(browser): page.locator("#assuranceNarrative").fill(original) page.locator("#runAssuranceReview").click() expect(page.locator("#readinessWorkspace")).to_be_visible() - expect(page.locator("#reviewFacts")).to_contain_text("Constraint changes") + expect(page.locator("#reviewFacts")).to_contain_text("constraint changes") page.screenshot(path=str(CAPTURES / "projectlens-redesign-after-review.png")) revision = "This project is not on track. The finish moves 73 days. All constraint and logic changes are acknowledged. The action owner is the Planning Manager, due 1 December 2027." page.locator("#narrativeRevision summary").click() @@ -103,7 +103,7 @@ def own_files(browser): page.locator("#recheckNarrative").click() expect(page.locator("#narrativeRevision")).not_to_have_attribute("open", "") expect(page.locator(".original-narrative")).to_contain_text(original) - expect(page.locator("#reviewFacts")).to_contain_text("Constraint changes") + expect(page.locator("#reviewFacts")).to_contain_text("constraint changes") page.locator("#showDecisionForm").click() page.get_by_label("Approve with conditions", exact=True).check() page.locator("#decisionOwner").fill("Review chair") diff --git a/README.md b/README.md index d6cfaba..8cb74b9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Compare a project update with its schedules, inspect what changed, and record th **Start here:** [Try ProjectLens](https://matthewpaver.github.io/ProjectLens/change-assurance.html). No install or account needed. -1. Select **Try the Northstar example**. Its finish moves by 73 days while the update says unchanged. +1. Select **Try the example project** (Northstar Grid Connection, a made-up project). Its finish moves by 73 days while the update says unchanged. 2. Inspect the source fields and review questions. Three findings are prioritised; all five remain available. 3. Record a decision with its owner and rationale, then download the evidence-linked record. @@ -39,7 +39,7 @@ The browser tool is static HTML and JavaScript. Python's built-in server is enou git clone https://github.com/MatthewPaver/ProjectLens.git cd ProjectLens python3 -m http.server 8000 --bind 127.0.0.1 --directory docs -# open http://127.0.0.1:8000/change-assurance.html and select "Try the Northstar example" +# open http://127.0.0.1:8000/change-assurance.html and select "Try the example project" ``` Expected result: the evidence desk shows three prioritised findings and five total questions, including the 73-day finish movement, with source dates beside the selected finding. Stop the server with Ctrl+C. diff --git a/docs/change-assurance.css b/docs/change-assurance.css index 2b4fda5..f389abd 100644 --- a/docs/change-assurance.css +++ b/docs/change-assurance.css @@ -33,7 +33,6 @@ button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visib .assurance-view[hidden] { display: none !important; } .assurance-hero { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 5vw; padding: 5.5rem max(5vw,2rem); overflow: hidden; } .assurance-hero h1 { margin: 0; max-width: 960px; font: 400 clamp(3rem,5.2vw,5.8rem)/.98 "Archivo Black",sans-serif; letter-spacing: -.045em; text-wrap: balance; } -.assurance-hero .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; line-height: 1.45; } .assurance-hero h1 em { color: var(--assurance-orange); font-style: normal; } .assurance-hero .hero-intro { max-width: 780px; margin: 2rem 0 0; color: #40514e; font-size: clamp(1rem,1.45vw,1.28rem); line-height: 1.62; text-wrap: pretty; } .assurance-actions { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; } diff --git a/docs/change-assurance.html b/docs/change-assurance.html index ea1a312..6e0fe88 100644 --- a/docs/change-assurance.html +++ b/docs/change-assurance.html @@ -14,7 +14,7 @@ - + @@ -40,7 +40,7 @@ Saved decisions - +
@@ -53,16 +53,16 @@
-

The schedule changed.
Did the update explain it?

+

The schedule changed.Did the update explain it?

Compare two project schedules from Primavera P6 planning software with the project update. See the evidence behind the movement, then record a human decision.

- +

Runs in your browser. Your schedule files stay with you.

-
-
Northstar Grid ConnectionSynthetic example
2 XER exports + narrative
+
+
Northstar Grid ConnectionMade-up example
2 schedule files + written update

Changes to review

@@ -91,9 +91,9 @@

From a changed date to a recorded decision.

@@ -106,7 +106,7 @@

Follow one complete review.

What can I compare?

Two supported, single-project Primavera P6 XER exports from the same source project. ProjectLens checks their identity, dates and field coverage before comparing them. Missing fields and unsupported inputs are reported.

-

Bring a change pack. Leave with clearer questions.

Start with the example, or review your own two schedule exports.

+

Bring a change pack. Leave with clearer questions.

Start with the example, or review your own two schedule exports.

@@ -115,7 +115,7 @@

Follow one complete review.

Add your two XER files

XER is the schedule export format from Primavera P6 planning software. Export both schedules (File → Export → Primavera XER): the previous submission and the current one. Your browser reads the files and uploads nothing. Add the narrative if you want ProjectLens to check what the update claims.

-

No XER files to hand? Download a synthetic pair from either example project and choose the files below: Northstar previous · Northstar current · Riverside previous · Riverside current. Optional narrative: Riverside narrative.

+

No XER files to hand? Download a made-up pair from either example project and choose the files below: Northstar previous · Northstar current · Riverside previous · Riverside current. Optional narrative: Riverside narrative.

-

Public-record context is optional. Untouched examples are recorded as not reviewed.

+

You can save without reviewing the optional public-record examples. They stay marked as not reviewed.

Decision @@ -214,7 +216,7 @@

The proposed finish is not supported by the current n

- Supporting evidence & public-record contextOptional context · schedule movements · narrative checks + Supporting evidence and public-record contextSchedule movements, narrative checks and optional examples from public records
diff --git a/docs/change-assurance.js b/docs/change-assurance.js index 89a0cba..c915132 100644 --- a/docs/change-assurance.js +++ b/docs/change-assurance.js @@ -310,6 +310,16 @@ async function inputIdentity() { return [...new Uint8Array(digest)].map(byte => byte.toString(16).padStart(2, "0")).join(""); } +// The four change counts as one plain sentence, each with its meaning. +function numbersSentence(changes) { + const count = (value, one, many) => `${value} ${value === 1 ? one : many}`; + const activities = changes.changes.length; + return `Between the two schedules, ${count(activities, "activity has", "activities have")} changed dates, spare time or fixed dates, or ${activities === 1 ? "was" : "were"} added or removed; ` + + `there ${changes.constraintChanges === 1 ? "is" : "are"} ${count(changes.constraintChanges, "constraint change", "constraint changes")} (imposed dates or rules); ` + + `${count(changes.floatErosion, "activity has", "activities have")} less spare time before delaying the finish (total float erosion); ` + + `and ${count(changes.relationChanges, "activity link has", "activity links have")} changed (predecessor, successor, link type or lag).`; +} + function renderReview(review, restoredContext = null) { assuranceState.review = review; $("#revisedNarrative").value = $("#assuranceNarrative").value; @@ -338,7 +348,7 @@ function renderReview(review, restoredContext = null) { $("#decisionWarning").hidden = ready; $("#requestList").innerHTML = review.blockers.map((blocker, index) => ` -
Question ${String(index + 1).padStart(2, "0")} · ${escapeHtml(blocker.type)}${escapeHtml(questionFor(blocker))}${escapeHtml(blocker.detail)}
`).join(""); +
Question ${index + 1} · ${escapeHtml(blocker.type)}${escapeHtml(questionFor(blocker))}${escapeHtml(blocker.detail)}
`).join(""); const facts = [ ["Scheduled finish", review.finishMovement === null ? "Not comparable" : `${review.finishMovement > 0 ? "+" : ""}${review.finishMovement} days`, `${formatDate(review.previous.project.scheduledFinish)} → ${formatDate(review.current.project.scheduledFinish)}`], @@ -350,7 +360,7 @@ function renderReview(review, restoredContext = null) { ]; $("#evidenceSummary").innerHTML = facts.map(([label, value, detail]) => `
${escapeHtml(label)}${escapeHtml(value)}${escapeHtml(detail)}
`).join(""); - $("#reviewFacts").innerHTML = facts.slice(1, 5).map(([label, value, detail]) => `
${escapeHtml(label)}
${escapeHtml(value)}
${escapeHtml(detail)}
`).join(""); + $("#reviewFacts").textContent = numbersSentence(review.changes); // kick off cited precedent retrieval — XER never leaves the browser; only narrative + blockers assuranceState.precedents = { items: [], used: {}, ignored: {}, summary: null, mode: null }; @@ -434,7 +444,7 @@ function renderPrecedentPanel({ loading = false, offline = false } = {}) { // three skeletons so a 3–8s retrieve doesn't look like a broken one-card grid host.innerHTML = [1, 2, 3].map(n => ` `).join("") : `
No decisions saved in this browser yet. Try the example project to record one.
`; } function renderConditionRegister() { diff --git a/docs/product-landing.css b/docs/product-landing.css index eb88e9a..e9678a1 100644 --- a/docs/product-landing.css +++ b/docs/product-landing.css @@ -25,12 +25,12 @@ body.product-design { margin: 0; background: var(--pl-white); color: var(--pl-in .product-design button:disabled { cursor: wait; opacity: .6; } .product-design .assurance-grid { display: none; } .product-design .assurance-header { position: relative; height: 62px; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pl-gutter); background: var(--pl-white); color: var(--pl-ink); border-bottom: 1px solid var(--pl-line); } -.product-wordmark { color: var(--pl-ink); font: 700 28px/1 var(--pl-font); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; } +.product-wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--pl-ink); font: 700 28px/1 var(--pl-font); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; } .product-design .assurance-header nav { position: static; inset: auto; z-index: auto; width: auto; height: auto; display: flex; align-items: center; gap: 30px; justify-content: flex-end; margin-left: auto; padding: 0; background: transparent; border: 0; } .product-design .assurance-header nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0; color: var(--pl-muted); border: 0; font: 400 14px/1.3 var(--pl-font); text-transform: none; } .product-design .assurance-header nav a:hover { color: var(--pl-blue); } .product-design .assurance-header nav a.active { color: var(--pl-blue); border-bottom: 2px solid var(--pl-blue); } -.product-design .product-open { min-height: 42px; padding: 10px 22px; color: var(--pl-white); background: var(--pl-blue); border: 0; border-radius: 7px; font-size: 14px; font-weight: 600; } +.product-design .product-open { min-height: 44px; padding: 10px 22px; color: var(--pl-white); background: var(--pl-blue); border: 0; border-radius: 7px; font-size: 14px; font-weight: 600; } .product-register-link { font-size: 13px; color: var(--pl-muted); display: none; } .product-design .assurance-header .review-navigation { display: none; } .product-design.has-review .assurance-header .product-navigation,.product-design[data-current-view="decisions"] .assurance-header .product-navigation,.product-design[data-current-view="follow-up"] .assurance-header .product-navigation { display: none; } @@ -39,6 +39,7 @@ body.product-design { margin: 0; background: var(--pl-white); color: var(--pl-in .product-design.has-intake #productLanding { display: none; } .product-hero { max-width: var(--pl-width); margin: 0 auto; padding: 45px 24px 0; text-align: center; } .product-hero h1 { margin: 0; color: var(--pl-ink); font: 700 61px/1.02 var(--pl-font); letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; } +.product-hero h1 > span { display: block; text-wrap: balance; } .product-introduction { max-width: 830px; margin: 17px auto 0; color: var(--pl-muted); font-size: 21px; line-height: 1.3; } .product-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 19px auto 0; } .product-design .assurance-primary { display: inline-flex; justify-content: center; gap: 12px; min-width: 0; min-height: 47px; padding: 12px 28px; border: 0; border-radius: 7px; color: var(--pl-white); background: var(--pl-blue); font: 500 16px/1.35 var(--pl-font); text-transform: none; transition: background-color 150ms ease; } @@ -116,20 +117,21 @@ body.product-design { margin: 0; background: var(--pl-white); color: var(--pl-in .product-design .review-tools { gap: 12px; } .product-design .review-tools button { min-height: 44px; padding: 8px 12px; color: var(--pl-blue); background: var(--pl-white); border: 1px solid var(--pl-line); border-radius: 6px; font: 500 13px/1.3 var(--pl-font); text-transform: none; } .product-design .readiness-card,.product-design .readiness-card.ready { margin: 0; padding: 28px 0 0; color: var(--pl-ink); background: var(--pl-white); border: 0; } -.product-design .readiness-status { display: inline-block; padding: 6px 10px; color: var(--pl-attention); background: var(--pl-attention-ground); font: 500 13px/1.4 var(--pl-font); text-transform: none; border-radius: 5px; } -.product-design .readiness-status i { display: none; } -.product-design .readiness-card.ready .readiness-status { color: var(--pl-attention); background: var(--pl-attention-ground); } -.product-design .readiness-card h2 { max-width: none; margin: 16px 0 10px; color: var(--pl-ink); font: 600 29px/1.25 var(--pl-font); letter-spacing: -.025em; } +.product-design .readiness-status { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--pl-attention); background: none; font: 600 14px/1.4 var(--pl-font); text-transform: none; border-radius: 0; } +.product-design .readiness-status i { display: block; width: 8px; height: 8px; flex: none; background: currentColor; border-radius: 50%; } +.product-design .readiness-card.ready .readiness-status { color: var(--pl-attention); background: none; } +.product-design .readiness-card h2 { max-width: none; margin: 10px 0 10px; color: var(--pl-ink); font: 600 29px/1.25 var(--pl-font); letter-spacing: -.025em; text-wrap: balance; } .product-design .readiness-card > p { max-width: 76ch; color: var(--pl-muted); font: 400 15px/1.6 var(--pl-font); } -.review-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; padding: 18px 0; margin: 20px 0 0; border-block: 1px solid var(--pl-line); } -.review-facts dt { color: var(--pl-muted); font-size: 13px; } -.review-facts dd { margin: 5px 0; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; } -.review-facts small { display: block; max-width: 30ch; color: var(--pl-muted); font-size: 12px; line-height: 1.5; } -.product-design .readiness-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; } +.product-design .readiness-actions .product-text-button { min-height: 47px; font: 500 15px/1.4 var(--pl-font); } +.review-numbers { margin-top: 32px; padding: 16px 0; border-top: 1px solid var(--pl-line); } +.review-numbers summary { cursor: pointer; color: var(--pl-blue); font-size: 15px; } +.review-numbers .review-facts { max-width: 78ch; margin: 12px 0 0; color: var(--pl-muted); font: 400 15px/1.65 var(--pl-font); font-variant-numeric: tabular-nums; } +.product-design .readiness-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 22px 0 32px; } .product-design .assurance-secondary,.product-design .assurance-secondary.light { min-height: 47px; padding: 11px 18px; color: var(--pl-blue); border: 1px solid var(--pl-line); background: var(--pl-white); border-radius: 7px; font: 500 14px/1.4 var(--pl-font); text-transform: none; } .product-design .assurance-secondary:hover,.product-design .assurance-secondary.light:hover { background: var(--pl-selection); color: var(--pl-blue-hover); } .product-design .evidence-desk { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); align-items: start; gap: 26px; margin-top: 0; } .narrative-revision { margin-bottom: 24px; padding: 16px 0; border-block: 1px solid var(--pl-line); } +.review-numbers + .narrative-revision { border-top: 0; } .narrative-revision summary { cursor: pointer; color: var(--pl-blue); font-size: 15px; } .narrative-revision p { max-width: 78ch; color: var(--pl-muted); font-size: 14px; line-height: 1.6; } .narrative-revision label { display: block; margin: 15px 0 8px; font-size: 14px; } @@ -190,13 +192,22 @@ body.product-design { margin: 0; background: var(--pl-white); color: var(--pl-in .product-design .decision-panel fieldset label { color: var(--pl-ink); background: var(--pl-white); border: 1px solid var(--pl-line); border-radius: 6px; padding: 14px; font: 400 15px/1.4 var(--pl-font); } .product-design input[type="radio"] { accent-color: var(--pl-blue); } .product-design .decision-submit p,.product-design .precedent-gate-banner { color: var(--pl-muted); font: 400 13px/1.6 var(--pl-font); } -.product-design .supporting-evidence { margin-top: 32px; color: var(--pl-ink); border-color: var(--pl-line); } -.product-design .supporting-evidence > summary { color: var(--pl-ink); background: var(--pl-white); font: 500 15px/1.5 var(--pl-font); } -.product-design .supporting-evidence > summary small { color: var(--pl-muted); font-size: 12px; } +.product-design .supporting-evidence { margin: 32px 0 0; color: var(--pl-ink); background: none; border: 0; border-bottom: 1px solid var(--pl-line); } +.product-design .supporting-evidence > summary { display: list-item; list-style: disclosure-closed inside; padding: 16px 0; color: var(--pl-blue); background: none; border-top: 1px solid var(--pl-line); font: 500 16px/1.5 var(--pl-font); } +.product-design .supporting-evidence[open] > summary { list-style-type: disclosure-open; border-bottom: 0; } +.product-design .supporting-evidence > summary:hover { color: var(--pl-blue-hover); } +.product-design .supporting-evidence > summary span { font: inherit; text-transform: none; } +.product-design .supporting-evidence > summary small { display: block; margin: 2px 0 0 17px; color: var(--pl-muted); font: 400 13px/1.5 var(--pl-font); text-transform: none; } +.product-design .comparable-section { padding: 24px 0; } +.product-design .comparable-section h3 { margin: 0 0 12px; color: var(--pl-ink); font: 600 22px/1.3 var(--pl-font); letter-spacing: -.02em; } +.product-design .comparable-case small,.product-design .precedent-gate i,.product-design .precedent-gate button,.product-design .precedent-section-gate,.product-design .precedent-summary span,.product-design .comparable-section > a { font-family: var(--pl-font); text-transform: none; letter-spacing: 0; } +.product-design .comparable-section > a { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 24px 0 0; color: var(--pl-blue); font-size: 14px; font-weight: 500; } +.product-design .evidence-boundary { padding: 16px 0; color: var(--pl-muted); background: none; font: 400 13px/1.6 var(--pl-font); } .product-design .evidence-summary { background: var(--pl-panel); } .product-design .evidence-fact { border-color: var(--pl-line); } .product-design .evidence-fact span,.product-design .evidence-fact small { color: var(--pl-muted); font: 400 13px/1.5 var(--pl-font); text-transform: none; } -.product-design .evidence-fact strong { color: var(--pl-ink); font: 600 20px/1.4 var(--pl-font); } +.product-design .evidence-fact strong { color: var(--pl-ink); font: 600 20px/1.4 var(--pl-font); text-transform: none; } +.product-design .comparable-case > span { text-transform: none; } .product-design .register-view { max-width: var(--pl-width); margin: auto; padding: 45px 24px; } .product-design .register-heading h1 { margin: 0 0 12px; font: 600 34px/1.2 var(--pl-font); letter-spacing: -.025em; } .product-design .register-heading p { color: var(--pl-muted); font-size: 15px; } @@ -275,7 +286,7 @@ body.product-design { margin: 0; background: var(--pl-white); color: var(--pl-in .product-wordmark { font-size: 24px; } .product-design .assurance-header .product-navigation { gap: 0; } .product-navigation a { display: none !important; } - .product-design .product-open { min-height: 40px; padding: 10px 16px; font-size: 13px; } + .product-design .product-open { min-height: 44px; padding: 10px 16px; font-size: 13px; } .product-design .assurance-header .review-navigation { width: 100%; order: 2; margin: 0; justify-content: space-between; gap: 12px; } .product-design .assurance-header nav a { font-size: 14px; } .product-hero { padding: 36px 20px 0; } @@ -328,7 +339,6 @@ body.product-design { margin: 0; background: var(--pl-white); color: var(--pl-in .product-design .review-context { flex-direction: column; align-items: start; padding: 14px 0; } .product-design .review-tools { display: flex; flex-wrap: wrap; } .product-design .readiness-card h2 { font-size: 26px; } - .review-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; } .product-design .readiness-actions { flex-direction: column; align-items: stretch; } .product-design .evidence-desk { grid-template-columns: minmax(0,1fr); } .product-design .finding-evidence { padding: 20px; } diff --git a/docs/product-landing.js b/docs/product-landing.js index 8b88b4d..7b0d352 100644 --- a/docs/product-landing.js +++ b/docs/product-landing.js @@ -57,7 +57,7 @@ byId('exampleStatus').textContent = 'Schedule movement is a fact. Its cause still needs evidence.'; select(selected, false); } catch { - byId('exampleStatus').textContent = 'The interactive example could not load. Retry, or use your own XER files. The preview above is the bundled synthetic example.'; + byId('exampleStatus').textContent = 'The interactive example could not load. Retry, or use your own XER files. The preview above is the bundled made-up example.'; byId('exampleRetry').hidden = false; } }