A NOC screen in its own window, for a second display
A button next to the speed controls opens this page at ?noc=<slot> in a noopener pop-up, so it runs on its own thread. The window never claims the slot, saves or runs a day. The game sends it a copy of S and R over a BroadcastChannel, at most once a second and only while a window is connected, and runs its clicks through an allowlist of the same ACT.* a click uses. The window opens on a dark wallboard: a live world map of links and POPs, traffic and money graphs, alarms, and the hottest ports with the dashboard's own upgrade buttons (connUp). Clicking a POP filters the ports. Details shows the full dashboard. Phones do not show the button.
This commit is contained in:
parent
c04fbe88b8
commit
80f671953a
18 changed files with 752 additions and 6 deletions
|
|
@ -19,7 +19,7 @@ function load(opts = {}) {
|
|||
if (!/getContext|Not implemented/.test(e.message)) errors.push(e.message);
|
||||
});
|
||||
const dom = new JSDOM(html, {
|
||||
url: 'https://tests.invalid/',
|
||||
url: opts.url || 'https://tests.invalid/',
|
||||
runScripts: 'dangerously',
|
||||
pretendToBeVisual: true,
|
||||
virtualConsole: vc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue