diff --git a/femap/site/index.html b/femap/site/index.html index aa1a8ee..27ce756 100644 --- a/femap/site/index.html +++ b/femap/site/index.html @@ -197,6 +197,7 @@ footer{padding-block:18px 30px;color:var(--faint);font-size:13px}
Map distance ÷ timed length, every flight

Farthest out

+

Globe: the same rules applied to great-circle distances on a sphere of radius 6,371 km.

@@ -488,6 +489,7 @@ function globeScore() { let SC = null, GS = null; function update(full) { SC = score(sv.X, 2); if (full) GS = globeScore(); + $("#flnote").hidden = S.fl; const nAct = { rt: act.l.filter(l => l.kind === "rt").length, rr: act.l.filter(l => l.kind === "rail" || l.kind === "road").length, sat: act.l.filter(l => l.kind === "sat").length }; const row = (label, a, b, n, cls) => `${label}${fmt(a)} / ${fmt(n)}${fmt(b)}`; const nf = S.fl ? FL.length : 0; diff --git a/femap/template.html b/femap/template.html index 151fa12..2b5c6a6 100644 --- a/femap/template.html +++ b/femap/template.html @@ -197,6 +197,7 @@ footer{padding-block:18px 30px;color:var(--faint);font-size:13px}
Map distance ÷ timed length, every flight

Farthest out

+

Globe: the same rules applied to great-circle distances on a sphere of radius 6,371 km.

@@ -488,6 +489,7 @@ function globeScore() { let SC = null, GS = null; function update(full) { SC = score(sv.X, 2); if (full) GS = globeScore(); + $("#flnote").hidden = S.fl; const nAct = { rt: act.l.filter(l => l.kind === "rt").length, rr: act.l.filter(l => l.kind === "rail" || l.kind === "road").length, sat: act.l.filter(l => l.kind === "sat").length }; const row = (label, a, b, n, cls) => `${label}${fmt(a)} / ${fmt(n)}${fmt(b)}`; const nf = S.fl ? FL.length : 0; diff --git a/tests/femap.mjs b/tests/femap.mjs index ac77b76..190c777 100644 --- a/tests/femap.mjs +++ b/tests/femap.mjs @@ -70,7 +70,9 @@ await p.waitForFunction(() => /^Done/.test(document.getElementById('status').tex const kf = await broken(); console.log('Limits only: broken', kf); if (kf > 5) fail('limits alone should be (nearly) satisfiable on a plane', kf); +if (await p.evaluate(() => document.getElementById('flnote').hidden)) fail('flight-times-off note not shown'); await p.click('#d-fl'); +if (!(await p.evaluate(() => document.getElementById('flnote').hidden))) fail('flight-times-off note still shown'); await p.click('#starts button[data-start="best"]'); await p.waitForTimeout(300); // 3D release