c094eb88fa
Adds src/ (scripts, raw measurement logs, derived data, report source), tests/, LICENSE (MIT, code) and LICENSE-DATA.md (CC BY 4.0 for the survey's data; third-party terms). The report is updated to the current site; the v1 and v2 data hand-off files are unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
12 lines
623 B
JavaScript
12 lines
623 B
JavaScript
import { chromium } from 'playwright-core';
|
|
import { PAGE, HAND } from './paths.mjs';
|
|
const b = await chromium.launch({ executablePath: process.env.CH });
|
|
for (const [w, h] of [[1920,1080],[1440,900],[1366,768],[1280,720],[1024,768]]) {
|
|
const p = await b.newPage({ viewport: { width: w, height: h } });
|
|
await p.goto(PAGE('web/index.html'), { waitUntil: 'load' }); await p.waitForTimeout(1300);
|
|
const r = await p.evaluate(() => { const e = document.querySelector('#card .body'); return e.scrollHeight - e.clientHeight; });
|
|
console.log(`${w}x${h}: route panel overflow ${r}px`);
|
|
await p.close();
|
|
}
|
|
await b.close();
|