seriesoftubes/src/index.html
Christopher Hawker f9d24699c1 Merge remote-tracking branch 'upstream/main' into noc-window
# Conflicts:
#	CHANGELOG.md
#	src/game/99-loop.js
#	tests/harness.js
2026-11-04 20:01:57 +11:00

172 lines
13 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Series of Tubes — Build the Internet, One Tube at a Time</title>
<meta name="description" content="A free cartoon browser game about building the internet. Lay fiber and subsea cables, buy transit, peer at internet exchanges, host CDN caches and survive backhoes, sharks and BGP leaks on your way to Tier 1.">
<meta name="keywords" content="internet game, network simulation, BGP, peering, internet exchange, IXP, transit, CDN, subsea cables, dark fiber, browser game, Tier 1">
<meta name="author" content="Frederic Jung">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="theme-color" content="#57C4E5">
<meta name="color-scheme" content="light">
<meta name="application-name" content="Series of Tubes">
<meta name="apple-mobile-web-app-title" content="Series of Tubes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="generator" content="Series of Tubes __VERSION__">
<link rel="canonical" href="https://seriesoftub.es/">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Series of Tubes">
<meta property="og:title" content="Series of Tubes — Build the Internet, One Tube at a Time">
<meta property="og:description" content="Lay fiber, buy transit, peer at IXs and keep the eyeballs happy while backhoes, sharks and route leaks try to stop you. A free cartoon game about how the internet really works.">
<meta property="og:url" content="https://seriesoftub.es/">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://seriesoftub.es/images/og-image.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Series of Tubes: a cartoon world map with fiber links, subsea cables and routers">
<!-- Twitter / X -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Series of Tubes — Build the Internet, One Tube at a Time">
<meta name="twitter:description" content="A free cartoon game about building the internet: fiber, transit, peering, CDNs, and a lot of backhoes.">
<meta name="twitter:image" content="https://seriesoftub.es/images/og-image.png">
<meta name="twitter:image:alt" content="Series of Tubes: a cartoon world map with fiber links, subsea cables and routers">
<!-- Icons -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/x-icon" href="/favicon.ico" sizes="32x32 16x16">
<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@500;700;800;900&display=swap">
<!-- Structured data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Series of Tubes",
"url": "https://seriesoftub.es/",
"description": "A free cartoon browser game about building the internet."
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoGame",
"name": "Series of Tubes",
"url": "https://seriesoftub.es/",
"image": "https://seriesoftub.es/images/og-image.png",
"description": "Build an internet: lay terrestrial and subsea fiber, buy IP transit, peer at internet exchanges, set up PNIs and CDN caches, sign business customers and survive constant failures on your way to becoming a Tier 1 network.",
"genre": ["Simulation", "Strategy", "Tycoon"],
"gamePlatform": "Web browser",
"applicationCategory": "Game",
"operatingSystem": "Any",
"playMode": "SinglePlayer",
"inLanguage": "en",
"isAccessibleForFree": true,
"softwareVersion": "__VERSION__",
"dateModified": "__BUILD_DATE__",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"author": { "@type": "Person", "name": "Frederic Jung", "url": "https://github.com/fjaeckel" }
}
</script>
<style>
<!-- @include styles -->
</style>
</head>
<body>
<header class="sr-only">
<h1 data-i18n="page.series_of_tubes_build_the_internet">Series of Tubes: build the internet, one tube at a time</h1>
<p data-i18n="page.a_free_cartoon_browser_game_about">A free cartoon browser game about how the internet works. Start as a tiny network in one city, launch home broadband, buy IP transit from Tier 1 and Tier 2 carriers, peer at internet exchanges, set up private interconnects and embedded CDN caches, and lay terrestrial fiber, subsea waves and your own dark fiber with DWDM and ZR optics. Sign enterprise, hosting, high-frequency trading, AI GPU and hyperscaler customers, and keep them happy while backhoes, sharks, fat fingers, route leaks, DDoS attacks and geopolitics break things.</p>
</header>
<noscript>
<div style="max-width:640px;margin:40px auto;padding:0 16px;font:16px/1.5 system-ui,sans-serif;color:#1E2640;background:#fff">
<h1>Series of Tubes</h1>
<p>Series of Tubes is a cartoon game about building the internet: fiber, transit, peering, CDNs and a lot of backhoes. It runs entirely in your browser and needs JavaScript to play.</p>
<p><a href="https://github.com/fjaeckel/seriesoftubes">Source code on GitHub</a></p>
</div>
</noscript>
<canvas id="map" aria-label="World map of your network" data-i18n-aria-label="page.world_map_of_your_network"></canvas>
<header id="hud">
<button class="chip brand menubtn" data-act="menu" aria-label="Network menu: save, load or start over" data-i18n-aria-label="page.network_menu_save_load_or_start">
<svg class="tube" viewBox="0 0 32 32" aria-hidden="true"><path d="M4 22c0-7 5-12 12-12h6" fill="none" stroke="#1E2640" stroke-width="7" stroke-linecap="round"/><path d="M4 22c0-7 5-12 12-12h6" fill="none" stroke="#FFD23F" stroke-width="3.5" stroke-linecap="round"/><circle cx="25" cy="10" r="5" fill="#fff" stroke="#1E2640" stroke-width="2.5"/></svg>
<div><div class="val" id="hName">Series of Tubes</div><div class="lbl" id="hAsn">AS —</div></div><span class="caret" aria-hidden="true">▾</span>
</button>
<button class="chip cashbtn" data-act="bank" aria-label="Cash and bank" data-i18n-aria-label="page.cash_and_bank"><span class="lbl" data-i18n="common.cash_bank">Cash · Bank</span><span class="val num" id="hCash">$0</span><span class="sub num" id="hRate">—</span><span class="badge" id="hBank" hidden></span></button>
<div class="chip hide-sm hide-md2"><div class="lbl" data-i18n="common.traffic_served">Traffic served</div><div class="val num" id="hTraffic">0</div><div class="minibar"><i id="hTrafBar" style="width:0"></i></div></div>
<div class="chip"><div class="lbl" data-i18n="common.reach">Reach</div><div class="val num" id="hReach">0%</div></div>
<div class="chip hide-sm hide-md"><div class="lbl" data-i18n="common.rank">Rank</div><div class="val" id="hTier">Tier 3</div></div>
<button class="chip scn hide-sm" id="hScn" data-act="leftTab" data-args='{"t":"goals"}' hidden><span class="lbl" data-i18n="common.scenario">Scenario</span><span class="val num" id="hScnVal">—</span></button>
<button class="chip cust hide-sm" id="hCust" data-act="custOpen" hidden><span class="lbl" data-i18n="common.customers">Customers</span><span class="val num" id="hCustVal">—</span></button>
<button class="chip noc" id="hNoc" data-act="leftTab" data-args='{"t":"noc"}'><span class="lbl">NOC</span><span class="val num" id="hNocVal" data-i18n="common.all_quiet">All quiet</span><span class="badge" id="hNocNew" hidden></span></button>
<div class="spacer"></div>
<div class="chip"><div class="lbl" data-i18n="common.date">Date</div><div class="val num" id="hDate">Y1 · Jan 1</div></div>
<button class="chip find" data-act="findOpen" aria-label="Find a city" data-i18n-aria-label="find.find_a_city" title="Find a city (/)" data-i18n-title="find.find_a_city_slash"><span aria-hidden="true">🔍</span></button>
<div class="chip speed" role="group" aria-label="Game speed" data-i18n-aria-label="common.game_speed">
<button data-act="speed" data-args='{"v":0}' id="sp0" aria-label="Pause" data-i18n-aria-label="common.pause">❚❚</button>
<button data-act="speed" data-args='{"v":0.5}' id="sp0.5" aria-label="Half speed" data-i18n-aria-label="common.half_speed">½×</button>
<button data-act="speed" data-args='{"v":1}' id="sp1">1×</button>
<button data-act="speed" data-args='{"v":2}' id="sp2">2×</button>
<button data-act="speed" data-args='{"v":4}' id="sp4">4×</button>
<button data-act="speed" data-args='{"v":8}' id="sp8">8×</button>
<button data-act="dash" aria-label="NOC dashboard" data-i18n-aria-label="common.noc_dashboard" title="NOC dashboard" data-i18n-title="common.noc_dashboard"><svg width="16" height="14" viewBox="0 0 16 14" aria-hidden="true"><path d="M1 13h14M2 10l4-5 3 3 5-6" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
<button class="hide-sm" data-act="nocWindow" aria-label="Open the NOC dashboard in its own window" data-i18n-aria-label="noc.open_in_its_own_window" title="Open the NOC dashboard in its own window" data-i18n-title="noc.open_in_its_own_window"><svg width="17" height="14" viewBox="0 0 17 14" aria-hidden="true"><rect x="1" y="1" width="9" height="7" rx="1.5" fill="none" stroke="currentColor" stroke-width="2"/><rect x="7" y="6" width="9" height="7" rx="1.5" fill="currentColor"/></svg></button>
<button data-act="help" aria-label="How to play" data-i18n-aria-label="common.how_to_play">?</button>
<button data-act="mute" id="muteBtn" aria-label="Toggle sound" data-i18n-aria-label="common.toggle_sound">♪</button>
</div>
</header>
<aside id="left" class="card">
<div class="grab" data-grab="left" aria-hidden="true"></div>
<nav class="tabs" id="leftTabs"></nav>
<div class="scroll" id="leftBody"></div>
</aside>
<button id="leftToggle" class="b pink" data-act="toggleLeft" data-i18n="common.goals_noc">Goals & NOC</button>
<nav id="tabbar" aria-label="Game" data-i18n-aria-label="common.game"></nav>
<aside id="panel" class="card" hidden>
<div class="grab" data-grab="panel" aria-hidden="true"></div>
<div id="panelBody" style="display:flex;flex-direction:column;min-height:0;flex:1"></div>
</aside>
<aside id="pzBox" class="card" hidden aria-label="Puzzle" data-i18n-aria-label="puzzles.puzzle"></aside>
<div id="hint" hidden></div>
<div id="coach" hidden role="status"></div>
<div id="toasts" aria-live="polite"></div>
<div id="mega" hidden role="alert"><div class="mtrack"><span data-i18n="page.breaking_cve_2026_31337_in_php">🐘 BREAKING: CVE-2026-31337 IN PHP TAKES DOWN HALF THE INTERNET</span><span data-i18n="page.every_wordpress_ish_site_on_earth">Every WordPress-ish site on Earth is now a crypto miner</span><span data-i18n="page.x">&lt;?php echo &quot;sorry&quot;; ?&gt;</span><span data-i18n="page.eyeball_traffic_down_30">Eyeball traffic down 30%</span><span data-i18n="page.hosting_customers_patching_at_3_a">Hosting customers patching at 3 a.m.</span><span data-i18n="page.security_team_asks_are_we_on">Security team asks: “are we on PHP?” Everyone: “define we”</span><span data-i18n="page.breaking_cve_2026_31337_in_php">🐘 BREAKING: CVE-2026-31337 IN PHP TAKES DOWN HALF THE INTERNET</span><span data-i18n="page.every_wordpress_ish_site_on_earth">Every WordPress-ish site on Earth is now a crypto miner</span><span data-i18n="page.x">&lt;?php echo &quot;sorry&quot;; ?&gt;</span><span data-i18n="page.eyeball_traffic_down_30">Eyeball traffic down 30%</span><span data-i18n="page.hosting_customers_patching_at_3_a">Hosting customers patching at 3 a.m.</span><span data-i18n="page.security_team_asks_are_we_on">Security team asks: “are we on PHP?” Everyone: “define we”</span></div></div>
<div id="update" class="toast goal" hidden role="status"></div>
<div id="bankBox" hidden><div class="card" id="bankCard" role="dialog" aria-label="Bank" data-i18n-aria-label="common.bank"></div></div>
<div id="dash" hidden><div class="card" id="dashCard" role="dialog" aria-label="NOC dashboard" data-i18n-aria-label="common.noc_dashboard"></div></div>
<div id="modal" hidden><div class="card" id="modalCard" role="dialog" aria-modal="true"></div></div>
<script>
// Language: the player's saved choice, else the browser's, else English. Non-English dictionaries load before the game.
(function(){const langs=window.SOT_LANGS={en:'English',it:'Italiano',pt:'Português',fr:'Français',es:'Español',de:'Deutsch'};let l=null;try{l=localStorage.getItem('sot-lang');}catch(e){}
const b=(navigator.language||'').slice(0,2).toLowerCase();if(!Object.hasOwn(langs,l))l=Object.hasOwn(langs,b)?b:'en';
window.SOT_LANG=l;document.documentElement.lang=l;if(l!=='en')document.write('<script src="i18n/'+l+'.js?v=__VERSION__"><\/script>');})();
</script>
<script>
'use strict';
<!-- @include i18n -->
<!-- @include game -->
<!-- @include-dev agent -->
</script>
</body>
</html>