In this section
- UI Orientation render · pipelinenews / ui/styles/202608272015-orientation.css lines 1–355
- Shell V9 6 2 render · pipelinenews / ui/templates/202608261927-shell-v9-6-2.html lines 1–180
- BBC RSS Intelligence render · pipelinenews / ui/templates/bbc-rss-intelligence.html lines 1–21
UI Orientation
A style sheet in the styles folder of PipelineNews.
renderpipelinenews / ui/styles/202608272015-orientation.css · lines 1–355 of 355 · version 2026-08-27 20:15 · Not reached from any entry point (candidate for review)
- What it does
- Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- What it achieves
- PipelineNews orientation repair cartridge. The application is non-commercial open source.
- Why it matters
- No other file in the estate was found to import it.
- Application
- pipelinenews · ui/styles · style sheet
- Uses
- none found
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 ui/styles/202608272015-orientation.css:1-355 · blob 984cc2cd769f50d59c83e598e8d5bd2900fa537b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: unreached_review
/* PipelineNews 202608272015 orientation repair cartridge.
The application is non-commercial open source. Publisher redistribution
rights remain source-specific and are not inferred by this stylesheet.
This file is additive. It loads after the immutable 202608270055 fast
stylesheet and never uses JavaScript to react to resize or orientation. */
html {
-webkit-text-size-adjust: 100%;
scroll-padding-top: env(safe-area-inset-top);
scroll-padding-right: env(safe-area-inset-right);
scroll-padding-bottom: env(safe-area-inset-bottom);
scroll-padding-left: env(safe-area-inset-left);
text-size-adjust: 100%;
}
body {
padding-top: env(safe-area-inset-top);
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
}
/* Scrolling content may pass behind iOS browser chrome even when the document
itself carries safe-area padding. Reserve the unsafe bottom hit strip as a
fixed, non-interactive-content shield so controls cannot be tapped beneath
the home indicator. The pseudo-element does not participate in DOM sizing. */
body::after {
background: var(--bg, #090c11);
bottom: 0;
content: '';
height: env(safe-area-inset-bottom);
left: 0;
pointer-events: auto;
position: fixed;
right: 0;
z-index: 9999;
}
.release-menu-opener {
align-items: center;
align-self: center;
background: #000;
border: 1px solid #343b45;
color: var(--accent);
cursor: pointer;
display: none;
flex: none;
font: 700 11px 'Courier New', monospace;
justify-content: center;
margin: 0 12px;
min-height: 44px;
min-width: 44px;
padding: 10px 14px;
}
.release-menu-opener:hover,
.release-menu-opener:focus-visible {
border-color: var(--accent);
color: #fff;
outline: 1px solid var(--accent);
outline-offset: 2px;
}
#releaseMenu[popover] {
background: #090c11;
border: 1px solid #424b55;
bottom: auto;
box-shadow: 0 16px 48px rgba(0, 0, 0, .86);
color: var(--text);
flex-direction: column;
height: auto;
left: max(10px, env(safe-area-inset-left));
margin: 0;
max-height: min(80dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px));
max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 20px);
overscroll-behavior: contain;
overflow-x: hidden;
overflow-y: auto;
padding: 8px 0;
position: fixed;
right: auto;
top: max(10px, env(safe-area-inset-top));
width: min(360px, calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 20px));
}
#releaseMenu[popover]:popover-open {
display: flex;
}
#releaseMenu[popover]:not(:popover-open) {
display: none;
}
#releaseMenu[popover]::backdrop {
background: rgba(0, 0, 0, .72);
}
html:has(#releaseMenu:popover-open),
body:has(#releaseMenu:popover-open),
body:has(#releaseMenu:popover-open) .main {
overflow-y: hidden !important;
}
.project-window-controls {
padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) and (min-width: 769px) {
.tablewrap {
max-height: 84dvh;
}
#releaseMenu a,
.meta a {
align-items: center;
display: flex;
min-height: 44px;
min-width: 44px;
}
.signal,
.signal-note,
.record-grid span {
font-size: 10px;
}
.news-tools button,
.news-tools input,
.btn,
select,
.asset-search,
.news-pager button,
.project-window-controls button,
.tablewrap .action-link,
.tablewrap .copy-id,
.tablewrap .action-disabled,
.tablewrap details > summary,
.tablewrap #sortUpdated {
align-items: center;
display: inline-flex;
justify-content: center;
min-height: 44px;
min-width: 44px;
}
.sidebar {
align-items: center;
display: flex;
flex-direction: row;
gap: 8px;
justify-content: space-between;
}
.brand {
flex: 1 1 auto;
min-width: 0;
}
.release-menu-opener {
display: inline-flex;
margin: 0;
}
.nav-desktop {
display: none;
}
}
/* The <=768px mobile layout remains intact in portrait. At the L3 landscape
height, keep that layout but place the three 44px project actions on one row;
otherwise the stacked actions make every table row too tall to show three. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 768px) {
.tablewrap {
max-height: 84dvh;
}
.project-actions {
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
gap: 4px;
min-width: 180px;
}
.tablewrap th,
.tablewrap td {
padding: 4px 6px;
}
.tablewrap details > summary {
min-height: 32px;
}
}
/* Only landscape viewports wider than the inherited <=768px mobile path
receive the short-cockpit geometry. */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 769px) {
body {
display: block;
height: auto;
min-height: 100dvh;
overflow-x: hidden;
overflow-y: auto;
}
.sidebar {
border-bottom: 1px solid var(--soft);
border-right: 0;
padding: 6px 8px;
width: 100%;
}
.brand {
border: 0;
margin: 0;
padding: 4px;
}
.brand small {
letter-spacing: 1px;
}
.main {
max-width: 100%;
overflow: visible;
padding: 8px;
width: 100%;
}
.header {
align-items: flex-start;
flex-direction: column;
}
.header h1 {
font-size: 16px;
}
.status {
white-space: normal;
width: 100%;
}
.news-tools {
position: static;
}
.news-tools input {
flex: 1 1 240px;
margin-left: 0;
min-width: min(240px, 100%);
}
.paper {
height: 70dvh;
max-height: 70dvh;
min-height: 0;
}
.stories {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.story {
min-height: 150px;
}
.gauges {
gap: 8px;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.chart,
.chart canvas {
max-width: 100%;
min-width: 0;
}
.card {
padding: 8px;
}
.chart {
height: 96px;
}
.chart canvas {
height: 100% !important;
width: 100% !important;
}
.tablewrap {
-webkit-overflow-scrolling: touch;
height: auto;
max-height: 84dvh;
max-width: 100%;
min-height: 0;
overflow-x: auto;
overflow-y: auto;
width: 100%;
}
.tablewrap .hide-mobile {
display: table-cell !important;
}
.tablewrap th,
.tablewrap td {
font-size: 10px;
padding: 6px;
}
.tablewrap th {
height: 44px;
}
.project-meta,
.mobile-extra {
display: none !important;
}
.project-record {
margin-top: 3px;
}
.signal-note {
line-height: 1.2;
max-width: 180px;
}
.record-grid {
grid-template-columns: minmax(0, 1fr);
}
.project-actions {
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
gap: 4px;
min-width: 180px;
}
.project-window-controls {
gap: 6px;
padding: 4px;
padding-bottom: calc(4px + env(safe-area-inset-bottom));
}
.project-window-controls span {
font-size: 10px;
min-width: 108px;
}
}Shell V9 6 2
A web page in the templates folder of PipelineNews covering the Renewable Energy Planning Database (REPD) register and solar, and uses data from the GridAtlas repository. Published at https://ventusltd.github.io/pipelinenews/ui/templates/202608261927-shell-v9-6-2.html.
renderpipelinenews / ui/templates/202608261927-shell-v9-6-2.html · lines 1–180 of 180 · version 2026-08-26 19:27 · Entry point
- What it does
- It draws the REPD register, solar and battery storage (BESS). Uses libraries styles/v7.css?v=9.6.2, styles/mobile.css?v=9.6.2, styles/v9-3.css?v=9.6.2, styles/v9-4.css?v=9.6.2, styles/v9-5-1.css?v=9.6.2. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register, solar, battery storage (BESS).
- Inputs & outputs
- In: form fields (user input). Out: web page.
- Downstream impact
- It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/ui/templates/202608261927-shell-v9-6-2.html.
- What it achieves
- This was `../../repd_grid_atlasv8/` until . That route is named RETIRED by the deep-link contract every shell built from this template compiles in. Its code works with 1 MW.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- pipelinenews · ui/templates · page
- Uses
- GridAtlas — Atlas Page (link), styles/v7.css?v=9.6.2, styles/mobile.css?v=9.6.2, styles/v9-3.css?v=9.6.2, styles/v9-4.css?v=9.6.2, styles/v9-5-1.css?v=9.6.2, styles/v9-6-1.css?v=9.6.2, https://cdn.jsdelivr.net/npm/chart.js, scripts/app-v9-6-2.js?v=9.6.2
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 ui/templates/202608261927-shell-v9-6-2.html:1-180 · blob f75e0a07fc5f8be65f261495de0b62f0dd1dbe6f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>GlobalGrid2050 | UK Renewables Pipeline V9.6.2</title>
<link rel="stylesheet" href="styles/v7.css?v=9.6.2">
<link rel="stylesheet" href="styles/mobile.css?v=9.6.2">
<link rel="stylesheet" href="styles/v9-3.css?v=9.6.2">
<link rel="stylesheet" href="styles/v9-4.css?v=9.6.2">
<link rel="stylesheet" href="styles/v9-5-1.css?v=9.6.2">
<link rel="stylesheet" href="styles/v9-6-1.css?v=9.6.2">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<aside class="sidebar">
<div class="brand">
<b>GLOBALGRID2050</b>
<small>UK RENEWABLES PIPELINE · V9.6.2</small>
</div>
<nav class="nav">
<a class="active" href="#">V9.6.2 LIVE VALIDATED</a>
<a href="../v9.6.1/">V9.6.1 FROZEN APP</a>
<a href="../v9.6/">V9.6 DISCONTINUED</a>
<a href="../v9.5.1/">V9.5.1 FROZEN APP</a>
<a href="../v9.5/">V9.5 FROZEN APP</a>
<a href="../v9.4/">V9.4 FROZEN APP</a>
<a href="../v9/">V9.3.1 FROZEN APP</a>
<a href="https://github.com/Ventusltd/globalgrid2050/tree/eee4cf7d854bf44235c249d337c2aad3916bcdc0/uk_renewables_pipeline/v9" target="_blank" rel="noopener">V9.3 CHECKPOINT</a>
<a href="https://github.com/Ventusltd/globalgrid2050/tree/77085a5dc8a8ce42cd4de7dad927eaf9aaf785ee/uk_renewables_pipeline/v9" target="_blank" rel="noopener">V9.2 CHECKPOINT</a>
<a href="https://github.com/Ventusltd/globalgrid2050/tree/59f74e319fbaad62abdb995107dba5759d7f3ca2/uk_renewables_pipeline/v9" target="_blank" rel="noopener">V9.1 CHECKPOINT</a>
<a href="../v8/">V8.1 FALLBACK</a>
<a href="../v7/">V7 FALLBACK</a>
<a href="../dashboard_v6_live.html">V6</a>
<a href="../dashboard_v5_live.html">V5</a>
<a href="../dashboard_v4_live.html">V4</a>
<a href="../dashboard_v3_live_2026-08-22.html">V3</a>
<a href="../dashboard_v2_2026-08-22.html">V2</a>
<a href="../dashboard.html">V1 LEGACY</a>
<a href="../../index.html">DIRECTORY</a>
<!-- This was ../../repd_grid_atlasv8/ until 2026-09-05. That route is
named RETIRED by the deep-link contract every shell built from this
template compiles in, and it still answers HTTP 200 while carrying
no engine - so the nav and the table disagreed about where the
Atlas is, and the nav was the one that was wrong.
It survived because the link gate scanned only .js and .mjs, so
"0 live sites, exit 0" was true of the JavaScript and false of the
HTML. With .html scanning added the gate finds 15 live anchors on
this route, and THIS FILE is the one that matters: three compilers
read it - index/202608261927-compile-index.mjs,
index/202608270055-compile-v8-fast.mjs and
index/202609010836-compile-index.mjs - so every shell built from
here inherits whatever this line says. The nine already-published
version indexes keep their own bytes; they are history and are not
rewritten. This stops the next one being wrong. -->
<a href="https://ventusltd.github.io/gridatlas/atlas/" id="mapAtlasNav">MAP ATLAS</a>
<a href="#" id="export">EXPORT CSV</a>
</nav>
</aside>
<main class="main">
<div class="header">
<h1>UK RENEWABLES PIPELINE V9.6.2</h1>
<div class="status">● 133 HEADLINES · 45 UK · 19 INTERNATIONAL · FULL ≥1 MW</div>
</div>
<div class="meta">
<strong>V9.6.2 · UK + INTERNATIONAL NEWS · LIVE VALIDATED · 24 August 2026</strong>
<span>Canonical DESNZ REPD Q2 2026: 7,680 solar, BESS and wind records at ≥1 MW.</span>
<span id="releaseMeta" class="release-meta">Loading canonical release contract…</span>
<a href="https://www.gov.uk/government/publications/renewable-energy-planning-database-quarterly-extract" target="_blank" rel="noopener">Official REPD source</a>
</div>
<section class="newspaper">
<div class="masthead">
<h2>GLOBALGRID2050 <span>ENERGY DAILY</span></h2>
<div class="strap">
<span>UK requires canonical REPD binding · INTERNATIONAL requires explicit non-UK geography plus solar or battery context · international items never drive REPD project signals</span>
<span id="newsMeta">loading daily edition…</span>
</div>
</div>
<div class="news-tools" id="newsTools">
<button class="active" data-news="ALL">ALL</button>
<button data-news="UK">UK</button>
<button data-news="INTERNATIONAL">INTERNATIONAL</button>
<button data-news="US">US</button>
<button data-news="EUROPE">EUROPE</button>
<button data-news="SOLAR">SOLAR</button>
<button data-news="BESS">BESS</button>
<button data-news="CONSENT">CONSENT</button>
<button data-news="CONSTRUCTION">CONSTRUCTION</button>
<button data-news="OPERATIONAL">OPERATIONAL</button>
<button data-news="FINANCE">FINANCE / M&A</button>
<input id="newsSearch" placeholder="SEARCH HEADLINES / PROJECT / OPERATOR">
</div>
<div class="paper">
<div class="stories" id="stories">
<div class="news-empty">Loading today’s major-project newspaper…</div>
</div>
</div>
</section>
<h2 class="section-title">REPD PIPELINE ANALYTICS</h2>
<div class="gauges">
<div class="card">
<h3>FILTERED CAPACITY (MW)</h3>
<div class="chart"><canvas id="g1"></canvas><div class="value" id="v1">0</div></div>
</div>
<div class="card">
<h3>FILTERED PROJECTS (≥1MW)</h3>
<div class="chart"><canvas id="g2"></canvas><div class="value" id="v2">0</div></div>
</div>
<div class="card">
<h3>LARGEST SINGLE SITE (MW)</h3>
<div class="chart"><canvas id="g3"></canvas><div class="value" id="v3">0</div></div>
</div>
</div>
<div class="filters" id="tech">
<button class="btn active" data-technology="all" aria-pressed="true">ALL TECH</button>
<button class="btn" data-technology="solar" aria-pressed="false">SOLAR</button>
<button class="btn" data-technology="bess" aria-pressed="false">BATTERY</button>
<button class="btn" data-technology="wind_onshore" aria-pressed="false">ONSHORE</button>
<button class="btn" data-technology="wind_offshore" aria-pressed="false">OFFSHORE</button>
</div>
<div class="filters" id="status">
<button class="btn active" data-official-status="All" aria-pressed="true">ALL STATUS</button>
<button class="btn" data-official-status="Operational" aria-pressed="false">OPERATIONAL</button>
<button class="btn" data-official-status="Under Construction" aria-pressed="false">CONSTRUCTING</button>
<button class="btn" data-official-status="Awaiting Construction" aria-pressed="false">AWAITING</button>
<button class="btn" data-official-status="Application Submitted" aria-pressed="false">SUBMITTED</button>
</div>
<div class="filters">
<select id="county"><option value="All">🌍 ALL COUNTIES</option></select>
<select id="sortProjects" aria-label="Sort projects">
<option value="capacity_desc">SORT: CAPACITY (DEFAULT)</option>
<option value="updated_desc">SORT: REPD UPDATED — NEWEST</option>
<option value="updated_asc">SORT: REPD UPDATED — OLDEST</option>
</select>
<input id="search" class="asset-search" placeholder="🔍 SEARCH PROJECT / REPD / GLOBALGRID / PLANNING..." autocomplete="off">
<button class="btn clear-filters" id="clearFilters">CLEAR FILTERS</button>
<button class="btn export-inline" id="exportInline">EXPORT FILTERED CSV</button>
<span id="resultsMeta" class="results-meta">Loading all qualifying records…</span>
<span id="exportMeta" class="export-meta">CSV contains the current filtered rows only</span>
</div>
<div class="meta">
<strong>STATUS DISCIPLINE</strong>
<span><b>DEFAULT:</b> every qualifying ≥1 MW record is loaded. Filters are user controls; they never redefine or truncate the pipeline.</span>
<span><b>NEWS:</b> relevance scores are algorithmic screening only and never change an official REPD fact.</span>
<span><b>ATLAS:</b> valid geometry resolves the exact REPD Ref. Missing geometry remains in search and CSV and is labelled NO MAP.</span>
</div>
<div class="tablewrap">
<table>
<thead>
<tr>
<th>SITE NAME</th>
<th class="hide-mobile">COUNTY</th>
<th class="hide-mobile">OPERATOR</th>
<th>TECHNOLOGY</th>
<th>OFFICIAL REPD STATUS</th>
<th>OFFICIAL CAPACITY</th>
<th class="hide-mobile">REPD REF</th>
<th class="hide-mobile">GLOBALGRID REF</th>
<th class="hide-mobile repd-updated-heading" id="repdUpdatedHeader" aria-sort="none">
<button id="sortUpdated" type="button" aria-label="Sort by REPD updated date, newest first">
REPD UPDATED <span id="updatedSortIndicator" aria-hidden="true">↕</span>
</button>
</th>
<th>GRID ANALYTICS ENGINE</th>
<th>NEWS SIGNAL</th>
<th>ACTIONS</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
</table>
</div>
</main>
<script type="module" src="scripts/app-v9-6-2.js?v=9.6.2"></script>
<script type="module" src="scripts/plugins/capacity-presentation-v9-3.js?v=9.6.2"></script>
</body>
</html>BBC RSS Intelligence
A web page in the templates folder of PipelineNews covering the Renewable Energy Planning Database (REPD) register. Published at https://ventusltd.github.io/pipelinenews/ui/templates/bbc-rss-intelligence.html.
renderpipelinenews / ui/templates/bbc-rss-intelligence.html · lines 1–21 of 21 · Entry point
- What it does
- It draws the REPD register. Defines el, load. Side effects: changes the web page (DOM); makes network requests.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (repository name word 'pipelinenews'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: the REPD register.
- Inputs & outputs
- In: JSON file snapshot.json; JSON file bbc-rss.json. Out: web page.
- Downstream impact
- It is itself an entry point, published at https://ventusltd.github.io/pipelinenews/ui/templates/bbc-rss-intelligence.html.
- What it achieves
- Defines `load`. It responds to click events.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- pipelinenews · ui/templates · page
- Uses
- none found
- Used by
- none found
- Produces
- el, load
- Defines here
- el, load
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 ui/templates/bbc-rss-intelligence.html:1-21 · blob 17f039270aa225dcadf52f015bd5e1064bc0b217 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, network · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Pipeline Intelligence | BBC RSS</title>
<style>body{font:17px/1.55 system-ui;max-width:900px;margin:auto;padding:24px;color:#e6edf3;background:#101923}a{color:#82cfff}h1{line-height:1.2}section,article{padding:18px;border:1px solid #435361;border-radius:8px;margin:18px 0}button{font:inherit;padding:10px}small{display:block;color:#bac6d3}code{overflow-wrap:anywhere}li{overflow-wrap:anywhere}@media(max-width:450px){body{padding:14px}secti … [line shortened here: 433 characters; full line on GitHub]
<a href="https://globalgrid2050.com/#test-code">Test Code</a><h1>Pipeline Intelligence: BBC discovery</h1><p>{{GENERATION}} | RSS source adapter | Test candidate</p>
<p>Automatic discovery every two hours. BBC News headlines can appear here before a project is matched to REPD. An unmatched report does not establish planning consent or a grid connection.</p>
<button id="refresh">Refresh live feed</button><button id="snapshot">Show publication snapshot</button><p id="status" role="status">Loading publication snapshot?</p>
<section><h2>Energy and infrastructure news</h2><div id="news"></div></section>
<section><h2>Your submitted articles</h2><div id="submitted"></div></section>
<section><h2>Source health</h2><p id="health"></p><details><summary>Feed details</summary><ul id="feeds"></ul></details></section>
<p>Headlines and links from <a href="https://www.bbc.co.uk/news">BBC News</a>. Article pages are not fetched. The regional RSS feeds are rolling windows, so an unseen article is not evidence that it does not exist.</p>
<p><a href="https://globalgrid2050.com/papers/202609060203-electrification/">Electrification paper</a> | <a href="snapshot.json" download>Download this version's source snapshot</a> | <a href="manifest.json">Version record</a></p>
<script type="module">
const el=id=>document.getElementById(id);let request=0;
async function load(live){const current=++request;el('status').textContent='Loading '+(live?'latest RSS observations':'publication snapshot')+'?';try{
const response=await fetch(live?'https://raw.githubusercontent.com/Ventusltd/pipelinenews/main/discovery/products/bbc-rss.json':'./snapshot.json',{cache:'no-store',signal:AbortSignal.timeout(15000)});if(!response.ok)throw Error('Source HTTP '+response.status);const data=await response.json();if(data.schema!=='pipelinenews.bbc-rss.v1'||!Array.isArray(data.items)||!Array.isArray(data.feeds))throw Er … [line shortened here: 454 characters; full line on GitHub]
el('news').replaceChildren();for(const item of data.items){const u=new URL(item.url);if(u.protocol!=='https:'||!['www.bbc.co.uk','www.bbc.com'].includes(u.hostname))continue;const article=document.createElement('article'),a=document.createElement('a'),meta=document.createElement('small');a.href=u.href;a.textContent=item.headline;meta.textContent='BBC News | '+(item.source_published_at||'Publicatio … [line shortened here: 616 characters; full line on GitHub]
el('submitted').replaceChildren();for(const item of data.submitted_articles||[]){const p=document.createElement('p');p.textContent=(item.headline||item.url)+' | '+item.status.replaceAll('_',' ');el('submitted').append(p);}
const failures=data.feeds.filter(f=>f.status!=='ok');el('health').textContent=(data.feeds.length-failures.length)+' of '+data.feeds.length+' feeds fetched successfully. Collection: '+data.status+'.';el('feeds').replaceChildren();for(const f of data.feeds){const li=document.createElement('li');li.textContent=f.url+' | '+f.status+(f.error?': '+f.error:'');el('feeds').append(li);}
const age=Date.now()-Date.parse(data.checked_at);el('status').textContent=(live?'Latest RSS observations':'Publication snapshot')+' | checked '+data.checked_at+(age>3*3600000?' | STALE: more than 3 hours old':'')+'. Last successful collection: '+(data.last_success_at||'none')+'.';
}catch(error){if(current===request)el('status').textContent='Refresh unavailable: '+error.message+'. Previously displayed observations, if any, are retained.';}}
el('refresh').addEventListener('click',()=>load(true));el('snapshot').addEventListener('click',()=>load(false));load(false);
</script></html>