Merge main and resolve optics PR changelog conflict
This commit is contained in:
commit
9a01b3d415
60 changed files with 1911 additions and 179 deletions
|
|
@ -37,3 +37,5 @@ const vxcMo=(km,sub,t)=>Math.round((150+km*0.12)*VXC[t].m*(sub?2:1));
|
|||
const MET={prefer:{l:tr('common.prefer'),f:0.5},normal:{l:tr('common.normal'),f:1},avoid:{l:tr('common.avoid'),f:4},backup:{l:tr('common.backup_only'),f:60}};
|
||||
const PREF={high:tr('common.prefer'),normal:tr('common.normal'),low:tr('common.backup_only')};
|
||||
const edgeKey=l=>l.a<l.b?l.a+'|'+l.b:l.b+'|'+l.a;
|
||||
// The routing metric of a city pair (edgeKey), set for every link between the two cities.
|
||||
function pairMet(k){return (S.pairMet&&S.pairMet[k])||'normal';}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const LANDS_LL=[
|
||||
{id:'am',ll:[[-166,68],[-157,71.2],[-141,69.8],[-128,70],[-115,68.5],[-97,68],[-94,62],[-92.5,57.5],[-85,55.2],[-80,51.5],[-78.5,58],[-77,62],[-70,61],[-64.5,60],[-61.5,56.5],[-57,52],[-55.6,49.5],[-53,47],[-59,46.5],[-61,45.2],[-63.2,44.4],[-66,44.5],[-70,43.3],[-70,42],[-74,40.6],[-76,38],[-75.8,35.5],[-77.5,34.5],[-79,33],[-81,31],[-80.05,27],[-80.1,25.3],[-81.5,25],[-82.7,27.5],[-84,30],[-89,30.2],[-94,29.5],[-97,28],[-97.5,25],[-97.7,22],[-96,19],[-94,18.3],[-91,18.5],[-90.4,21],[-87,21.5],[-88,17],[-88.5,15.8],[-84,15.8],[-83.4,12],[-83.7,10.5],[-81.5,9],[-79.5,9.5],[-77.5,8.6],[-75,10.8],[-71.5,12.3],[-68,10.6],[-62,10.5],[-60,8],[-57,6],[-52,5],[-50,1.5],[-48,-1],[-44,-2.5],[-39,-3.5],[-35,-5.5],[-35,-9],[-37.5,-12.5],[-39,-15],[-39.7,-19],[-41,-22],[-44,-23],[-48,-26],[-48.6,-28.5],[-51,-31],[-53,-34],[-58,-34.5],[-57,-37],[-62,-39],[-65,-41],[-64,-43],[-67.5,-46],[-66,-48],[-69,-51],[-68.5,-53],[-70,-55],[-73,-53],[-75,-48],[-73.5,-43],[-73.5,-37],[-71.5,-32],[-71.3,-27],[-70.5,-20],[-71.5,-17],[-76,-14],[-78,-10],[-81,-6],[-80.5,-3],[-80,0],[-79,1.5],[-77.5,4],[-77.4,7.5],[-80,7.3],[-82.5,8.2],[-85.7,10],[-87,12.5],[-91,14],[-94,16],[-96.5,15.7],[-100,17],[-105.5,20],[-105.5,22.5],[-108,25.5],[-110.8,27.9],[-113,31.3],[-114.7,31.7],[-113.5,29],[-112,26.5],[-110,24],[-109.5,23],[-112,24.8],[-114,27.5],[-115.5,29.8],[-117,32.5],[-118.5,34],[-120.6,34.6],[-122.5,37.5],[-124,40.5],[-124.5,43],[-124,46.2],[-124.7,48.4],[-123,49],[-126,50.5],[-130,54.5],[-133,57.5],[-137,58.5],[-141,60],[-146,61],[-150,59.5],[-152,58.5],[-156,57.5],[-158,56.8],[-162,55.5],[-164.5,54.5],[-158,58.5],[-162,60],[-165,61.5],[-166,64],[-164,65.5]]},
|
||||
{id:'eu',ll:[[-9,39],[-9.5,43],[-8,43.7],[-1.8,43.4],[-1.2,46],[-2.5,47.3],[-4.5,48],[-1.6,48.6],[1.5,50.2],[3,51.2],[4.5,52.5],[5,53.4],[7,53.6],[8.6,54],[8.2,55.5],[8.1,57],[10.5,57.7],[10.5,56.5],[11.2,56],[12.6,56.1],[12.7,55.6],[12.1,54.9],[11,54.3],[14,54],[18.5,54.8],[21,55.3],[21,57],[24,57.5],[24,59.2],[28,59.5],[30,60],[28,60.5],[25,60.1],[22.5,60.3],[21.5,61.5],[21.5,63],[25,65],[25.5,65.6],[22,65.8],[20.5,63.5],[18,62.5],[17.4,61],[19,59.8],[18,59],[16.5,57],[16,56.2],[14.2,55.4],[13,55.4],[12.9,56.5],[11.5,58],[10.5,59.3],[8,58],[5.5,58.5],[5,60],[5,62],[7,63],[10,64],[12.5,66],[15,68.5],[18,69.8],[21.5,70.2],[26,71],[30,70],[33,69.3],[41,67],[44,68.5],[53,68.5],[58,69],[68,69],[69,72.8],[73,72.5],[80,73.5],[87,74.8],[100,76],[104,77.7],[112,74],[113.5,73.5],[127,73.5],[132,71.5],[140,72.5],[150,71.5],[160,70],[170,70],[180,69],[190,66.5],[186,64.5],[182,65],[178,62.5],[173,61],[170,60],[164,60],[164,57],[162,55],[159,52],[156.7,51],[156,55.5],[157,58],[155,59.5],[150,59.5],[143,59.3],[137,54.5],[141,53],[140,48.5],[135,43.5],[131,42.7],[129.5,41],[129.4,37],[129.4,35.5],[127.5,34.6],[126.3,34.8],[126.5,37],[125,37.8],[124.5,39.7],[121.5,39],[121.7,40.8],[119,39.3],[117.8,38.5],[119,37.2],[122.5,37.3],[120.5,36],[119.2,35],[121,32],[121.9,30.8],[121.5,28],[119.5,25.5],[116.5,23],[114.3,22.1],[111,21.5],[109.7,20.5],[108.5,21.6],[106.5,20],[106,18],[108.5,15],[109.3,12],[107,10.5],[105,8.6],[104.8,10.3],[103,11],[100.9,12.6],[100,13.4],[99.3,10.5],[100.3,7],[101,6.8],[103.4,4],[104.3,1.4],[103.6,1.25],[101.3,2.8],[100.2,5.3],[98.3,8],[98.6,13],[97.7,16.5],[94.4,16.2],[94.2,18.8],[92.3,20.6],[91.8,22.6],[90,22],[88.3,21.6],[86.9,20.6],[85,19.5],[82.3,16.6],[80.3,15.8],[80.3,13.5],[79.8,10.3],[78.3,8.9],[77.5,8.1],[76.5,8.9],[75.8,11.5],[74.8,12.9],[73.5,16],[72.8,19],[72.7,21.2],[70,22.5],[68.5,23.5],[66.6,25.4],[61.6,25.2],[57.3,25.8],[56.4,27.1],[54.7,26.5],[51.5,27.9],[50,30],[48,30],[48.4,28.5],[49.5,26.7],[50.8,24.8],[50.85,25.6],[51.2,26.15],[51.62,25.9],[51.62,24.6],[52.6,24.2],[54.3,24.6],[55.3,25.3],[55.9,25.75],[56.1,26.1],[56.35,26.38],[56.42,25.8],[56.38,25.0],[56.5,24.6],[57.8,23.8],[58.8,22.5],[59.8,22.4],[58.5,20.5],[57.7,19],[55.4,17.7],[52.2,15.7],[48.7,14],[45,12.8],[43.4,12.6],[42.7,15.7],[42.5,17.2],[41,19.5],[39.1,21.6],[38.4,23.6],[37,25.5],[35.2,28],[34.9,29.5],[34.3,27.8],[33,28.8],[32.6,30],[32.3,31.2],[34.2,31.3],[34.9,32.8],[35.6,34.5],[36,35.8],[36.2,36.7],[34.5,36.8],[32.5,36.1],[30.5,36.4],[29,36.6],[27.3,37.4],[26.3,38.6],[26.5,40],[26.2,40.6],[24,40.8],[22.6,40.4],[24.1,38.2],[24,37.6],[23.2,37.5],[22.3,36.5],[21.7,36.8],[21.2,38.4],[19.5,40],[19.5,41.8],[18.5,42.5],[16,43.5],[13.7,45.6],[12.3,45.3],[12.4,44.2],[13.6,43.5],[15.9,41.6],[18.5,40.2],[17,39],[16.6,38],[15.6,38],[15.3,37],[15.1,36.65],[12.4,37.8],[13.3,38.25],[15.55,38.3],[16.1,39],[15.6,40.1],[14.3,40.6],[12.5,41.6],[11,42.5],[10.2,43.9],[8.8,44.4],[7.5,43.8],[6,43.1],[4,43.5],[3.1,43.1],[3.2,41.9],[0.8,41],[0,39.5],[-0.3,38.4],[-0.8,37.6],[-2.1,36.7],[-4.4,36.7],[-5.6,36],[-6.3,36.8],[-7.4,37.2],[-8.9,37],[-8.8,38.4],[-9.5,38.6]]},
|
||||
{id:'am',ll:[[-166,68],[-156.7,71.5],[-141,69.8],[-128,70],[-115,68.5],[-97,68],[-94,62],[-92.5,57.5],[-85,55.2],[-80,51.5],[-78.5,58],[-77,62],[-70,61],[-64.5,60],[-61.5,56.5],[-57,52],[-55.6,49.5],[-53,47],[-59,46.5],[-61,45.2],[-63.2,44.4],[-66,44.5],[-70,43.3],[-70,42],[-74,40.6],[-76,38],[-75.8,35.5],[-77.5,34.5],[-79,33],[-81,31],[-80.05,27],[-80.1,25.3],[-81.5,25],[-82.7,27.5],[-84,30],[-89,30.2],[-94,29.5],[-97,28],[-97.5,25],[-97.7,22],[-96,19],[-94,18.3],[-91,18.5],[-90.4,21],[-87,21.5],[-88,17],[-88.5,15.8],[-84,15.8],[-83.4,12],[-83.7,10.5],[-81.5,9],[-79.5,9.5],[-77.5,8.6],[-75,10.8],[-71.5,12.3],[-68,10.6],[-62,10.5],[-60,8],[-57,6],[-52,5],[-50,1.5],[-48,-1],[-44,-2.5],[-39,-3.5],[-35,-5.5],[-35,-9],[-37.5,-12.5],[-39,-15],[-39.7,-19],[-41,-22],[-44,-23],[-48,-26],[-48.6,-28.5],[-51,-31],[-53,-34],[-58,-34.5],[-57,-37],[-62,-39],[-65,-41],[-64,-43],[-67.5,-46],[-66,-48],[-69,-51],[-68.5,-53],[-70,-55],[-73,-53],[-75,-48],[-73.5,-43],[-73.5,-37],[-71.5,-32],[-71.3,-27],[-70.5,-20],[-71.5,-17],[-76,-14],[-78,-10],[-81,-6],[-80.5,-3],[-80,0],[-79,1.5],[-77.5,4],[-77.4,7.5],[-80,7.3],[-82.5,8.2],[-85.7,10],[-87,12.5],[-91,14],[-94,16],[-96.5,15.7],[-100,17],[-105.5,20],[-105.5,22.5],[-108,25.5],[-110.8,27.9],[-113,31.3],[-114.7,31.7],[-113.5,29],[-112,26.5],[-110,24],[-109.5,23],[-112,24.8],[-114,27.5],[-115.5,29.8],[-117,32.5],[-118.5,34],[-120.6,34.6],[-122.5,37.5],[-124,40.5],[-124.5,43],[-124,46.2],[-124.7,48.4],[-123,49],[-126,50.5],[-131,54.5],[-133,57.5],[-137,58.5],[-141,60],[-146,61],[-150,59.5],[-152,58.5],[-156,57.5],[-158,56.8],[-162,55.5],[-164.5,54.5],[-158,58.5],[-162,60],[-165,61.5],[-166,64],[-166.6,64.7],[-164,65.5]]},
|
||||
{id:'eu',ll:[[-9,39],[-9.5,43],[-8,43.7],[-1.8,43.4],[-1.2,46],[-2.5,47.3],[-4.5,48],[-1.6,48.6],[1.5,50.2],[3,51.2],[4.5,52.5],[5,53.4],[7,53.6],[8.6,54],[8.2,55.5],[8.1,57],[10.5,57.7],[10.5,56.5],[11.2,56],[12.6,56.1],[12.7,55.6],[12.1,54.9],[11,54.3],[14,54],[18.5,54.8],[21,55.3],[21,57],[24,57.5],[24,59.2],[28,59.5],[30,60],[28,60.5],[25,60.1],[22.5,60.3],[21.5,61.5],[21.5,63],[25,65],[25.5,65.6],[22,65.8],[20.5,63.5],[18,62.5],[17.4,61],[19,59.8],[18,59],[16.5,57],[16,56.2],[14.2,55.4],[13,55.4],[12.9,56.5],[11.5,58],[10.5,59.3],[8,58],[5.5,58.5],[5,60],[5,62],[7,63],[10,64],[12.5,66],[15,68.5],[18,69.8],[21.5,70.2],[26,71],[30,70],[33,69.3],[41,67],[44,68.5],[53,68.5],[58,69],[68,69],[69,72.8],[73,72.5],[80,73.5],[87,74.8],[100,76],[104,77.7],[112,74],[113.5,73.5],[127,73.5],[132,71.5],[140,72.5],[150,71.5],[160,70],[170,70],[180,69],[190,66.5],[186,64.5],[182,65],[178,62.5],[173,61],[170,60],[164,60],[164,57],[162,55],[159,52],[156.7,51],[156,55.5],[157,58],[155,59.5],[150,59.5],[143,59.3],[137,54.5],[141,53],[140,48.5],[135,43.5],[131,42.7],[129.5,41],[129.4,37],[129.4,35.5],[127.5,34.6],[126.3,34.8],[126.5,37],[125,37.8],[124.5,39.7],[121.5,39],[121.7,40.8],[119,39.3],[117.8,38.5],[119,37.2],[122.5,37.3],[120.5,36],[119.2,35],[121,32],[121.9,30.8],[121.5,28],[119.5,25.5],[116.5,23],[114.3,22.1],[111,21.5],[109.7,20.5],[108.5,21.6],[106.5,20],[106,18],[108.5,15],[109.3,12],[107,10.5],[105,8.6],[104.8,10.3],[103,11],[100.9,12.6],[100,13.4],[99.3,10.5],[100.3,7],[101,6.8],[103.4,4],[104.3,1.4],[103.6,1.25],[101.3,2.8],[100.2,5.3],[98.3,8],[98.6,13],[97.7,16.5],[94.4,16.2],[94.2,18.8],[92.3,20.6],[91.8,22.6],[90,22],[88.3,21.6],[86.9,20.6],[85,19.5],[82.3,16.6],[80.3,15.8],[80.3,13.5],[79.8,10.3],[78.3,8.9],[77.5,8.1],[76.5,8.9],[75.8,11.5],[74.8,12.9],[73.5,16],[72.8,19],[72.7,21.2],[70,22.5],[68.5,23.5],[66.6,25.4],[61.6,25.2],[57.3,25.8],[56.4,27.1],[54.7,26.5],[51.5,27.9],[50,30],[48,30],[48.4,28.5],[49.5,26.7],[50.8,24.8],[50.85,25.6],[51.2,26.15],[51.62,25.9],[51.62,24.6],[52.6,24.2],[54.3,24.6],[55.3,25.3],[55.9,25.75],[56.1,26.1],[56.35,26.38],[56.42,25.8],[56.38,25.0],[56.5,24.6],[57.8,23.8],[58.7,23.75],[58.8,22.5],[59.8,22.4],[58.5,20.5],[57.7,19],[55.4,17.7],[52.2,15.7],[48.7,14],[45,12.8],[43.4,12.6],[42.7,15.7],[42.5,17.2],[41,19.5],[39.1,21.6],[38.4,23.6],[37,25.5],[35.2,28],[34.9,29.5],[34.3,27.8],[33,28.8],[32.6,30],[32.3,31.2],[34.2,31.3],[34.9,32.8],[35.6,34.5],[36,35.8],[36.2,36.7],[34.5,36.8],[32.5,36.1],[30.5,36.4],[29,36.6],[27.3,37.4],[26.3,38.6],[26.5,40],[26.2,40.6],[24,40.8],[22.6,40.4],[24.1,38.2],[24,37.6],[23.2,37.5],[22.3,36.5],[21.7,36.8],[21.2,38.4],[19.5,40],[19.5,41.8],[18.5,42.5],[16,43.5],[13.7,45.6],[12.3,45.3],[12.4,44.2],[13.6,43.5],[15.9,41.6],[18.5,40.2],[17,39],[16.6,38],[15.6,38],[15.3,37],[15.1,36.65],[12.4,37.8],[13.3,38.25],[15.55,38.3],[16.1,39],[15.6,40.1],[14.3,40.6],[12.5,41.6],[11,42.5],[10.2,43.9],[8.8,44.4],[7.5,43.8],[6,43.1],[4,43.5],[3.1,43.1],[3.2,41.9],[0.8,41],[0,39.5],[-0.3,38.4],[-0.8,37.6],[-2.1,36.7],[-4.4,36.7],[-5.6,36],[-6.3,36.8],[-7.4,37.2],[-8.9,37],[-8.8,38.4],[-9.5,38.6]]},
|
||||
{id:'af',ll:[[-17.5,14.7],[-17,21],[-16,24],[-13,27.5],[-9.8,30],[-9.2,32.5],[-6.8,34],[-5.9,35.8],[-2,35.1],[1,36.5],[5,36.8],[9.8,37.3],[11,36.9],[10.2,35.2],[11.1,33.3],[15.2,32.3],[19,30.3],[20.1,32],[23,32.6],[25,31.7],[29,30.9],[32.2,31.3],[32.6,30],[33.5,28],[35.5,24],[37.2,21],[38.5,18],[39.6,15.5],[41.6,13.5],[43.3,12.4],[44,10.4],[47,11.1],[51.2,11.8],[51,10.4],[49.5,7],[47.8,4.5],[45,1.6],[42,-1],[40.2,-2.8],[39.3,-4.8],[38.8,-6.5],[39.6,-10],[40.5,-11],[40.6,-14.6],[37,-17.5],[35.4,-22],[35.5,-24],[32.9,-25.9],[32.5,-28.6],[31,-29.9],[28,-32.7],[25.6,-33.9],[22.5,-34],[20,-34.8],[18.4,-34],[17.9,-32.5],[16.5,-28.6],[15.2,-27],[14.4,-23],[12.8,-19],[11.8,-16.8],[12.2,-14.5],[13.6,-12.2],[13.2,-8.8],[12.3,-6],[11.8,-3.5],[9.5,-1],[9.4,1],[9.8,3.2],[8.9,4.5],[6,4.3],[4.3,6.3],[1.6,6.2],[-2,4.8],[-4.6,5.2],[-7.5,4.4],[-9.4,5.4],[-11.5,6.9],[-13.2,8.7],[-15,10.9],[-16.7,12.4]]},
|
||||
{id:'uk',ll:[[-5.7,50.1],[-3,50.6],[1.4,51.2],[1.7,52.7],[0.3,53.4],[-0.2,54.3],[-1.6,55.6],[-2,56.4],[-1.8,57.6],[-3.4,58.6],[-5,58.6],[-6.2,57.5],[-5.6,56.3],[-5,55],[-3.2,54.9],[-3.4,54],[-3,53.4],[-4.6,53.3],[-4.2,52.2],[-5.2,51.7],[-3.2,51.4],[-4.6,51]]},
|
||||
{id:'ie',ll:[[-6,52.2],[-6.2,53.5],[-5.6,54.6],[-6.4,55.2],[-7.4,55.4],[-8.5,54.5],[-10,54.2],[-9.6,53.2],[-10.2,51.9],[-9.6,51.5],[-8.2,51.8]]},
|
||||
|
|
@ -42,4 +42,41 @@ LANDS_LL.push(
|
|||
{id:'sa',hide:true,ll:[[-77.5, 8.6], [-75, 10.8], [-71.5, 12.3], [-68, 10.6], [-62, 10.5], [-60, 8], [-57, 6], [-52, 5], [-50, 1.5], [-48, -1], [-44, -2.5], [-39, -3.5], [-35, -5.5], [-35, -9], [-37.5, -12.5], [-39, -15], [-39.7, -19], [-41, -22], [-44, -23], [-48, -26], [-48.6, -28.5], [-51, -31], [-53, -34], [-58, -34.5], [-57, -37], [-62, -39], [-65, -41], [-64, -43], [-67.5, -46], [-66, -48], [-69, -51], [-68.5, -53], [-70, -55], [-73, -53], [-75, -48], [-73.5, -43], [-73.5, -37], [-71.5, -32], [-71.3, -27], [-70.5, -20], [-71.5, -17], [-76, -14], [-78, -10], [-81, -6], [-80.5, -3], [-80, 0], [-79, 1.5], [-77.5, 4], [-77.4, 7.5]]},
|
||||
{id:'tw',ll:[[121.5, 25.35], [122.05, 25.0], [121.85, 24.3], [121.4, 23.0], [120.85, 21.9], [120.6, 22.3], [120.15, 22.9], [120.1, 23.6], [120.55, 24.5], [121.0, 25.1]]},
|
||||
);
|
||||
// Caribbean islands, each its own landmass (#125).
|
||||
LANDS_LL.push(
|
||||
{id:'pr',ll:[[-66.50,18.70],[-65.70,18.70],[-65.70,18.10],[-66.50,18.10]]},
|
||||
{id:'hs',ll:[[-70.33,18.80],[-69.53,18.80],[-69.53,18.20],[-70.33,18.20]]},
|
||||
{id:'jm',ll:[[-77.18,18.35],[-76.38,18.35],[-76.38,17.75],[-77.18,17.75]]},
|
||||
{id:'cu',ll:[[-82.77,23.39],[-81.97,23.39],[-81.97,22.79],[-82.77,22.79]]},
|
||||
{id:'bs',ll:[[-77.75,25.34],[-76.95,25.34],[-76.95,24.74],[-77.75,24.74]]},
|
||||
{id:'tt',ll:[[-61.88,10.96],[-61.08,10.96],[-61.08,10.36],[-61.88,10.36]]},
|
||||
{id:'bb',ll:[[-59.98,13.42],[-59.18,13.42],[-59.18,12.82],[-59.98,12.82]]},
|
||||
{id:'mq',ll:[[-61.43,14.94],[-60.63,14.94],[-60.63,14.34],[-61.43,14.34]]},
|
||||
{id:'cw',ll:[[-69.32,12.43],[-68.52,12.43],[-68.52,11.83],[-69.32,11.83]]},
|
||||
);
|
||||
// Indian Ocean islands (#152), Pitcairn (#124), the Aleutians and Sakhalin (#145).
|
||||
LANDS_LL.push(
|
||||
{id:'re',ll:[[55.06,-20.62],[55.86,-20.62],[55.86,-21.22],[55.06,-21.22]]},
|
||||
{id:'mu',ll:[[57.12,-19.88],[57.92,-19.88],[57.92,-20.48],[57.12,-20.48]]},
|
||||
{id:'mg',ll:[[47.12,-18.58],[47.92,-18.58],[47.92,-19.18],[47.12,-19.18]]},
|
||||
{id:'sc',ll:[[55.07,-4.35],[55.87,-4.35],[55.87,-4.95],[55.07,-4.95]]},
|
||||
{id:'pn',ll:[[-130.50,-24.77],[-129.70,-24.77],[-129.70,-25.37],[-130.50,-25.37]]},
|
||||
{id:'al',ll:[[-166.93,54.18],[-166.13,54.18],[-166.13,53.58],[-166.93,53.58]]},
|
||||
{id:'sak',ll:[[142.34,47.26],[143.14,47.26],[143.14,46.66],[142.34,46.66]]},
|
||||
);
|
||||
// Places on a continent with no road or fiber in, only the sea: Juneau, Alaska's Arctic coast and Russia's Arctic and Kamchatka (#145).
|
||||
LANDS_LL.push(
|
||||
{id:'aks',hide:true,ll:[[-134.76,58.61],[-133.96,58.61],[-133.96,58.01],[-134.76,58.01]]},
|
||||
{id:'swd',hide:true,ll:[[-165.78,64.82],[-164.98,64.82],[-164.98,64.22],[-165.78,64.22]]},
|
||||
{id:'nsl',hide:true,ll:[[-157.15,71.58],[-156.35,71.58],[-156.35,70.98],[-157.15,70.98]]},
|
||||
{id:'tay',hide:true,ll:[[80.25,73.81],[81.05,73.81],[81.05,73.21],[80.25,73.21]]},
|
||||
{id:'lap',hide:true,ll:[[128.47,71.94],[129.27,71.94],[129.27,71.34],[128.47,71.34]]},
|
||||
{id:'pvk',hide:true,ll:[[169.91,70.00],[170.71,70.00],[170.71,69.40],[169.91,69.40]]},
|
||||
{id:'chu',hide:true,ll:[[177.05,65.05],[177.85,65.05],[177.85,64.45],[177.05,64.45]]},
|
||||
{id:'kam',hide:true,ll:[[158.25,53.32],[159.05,53.32],[159.05,52.72],[158.25,52.72]]},
|
||||
);
|
||||
// The Maldives.
|
||||
LANDS_LL.push(
|
||||
{id:'mv',ll:[[73.11,4.48],[73.91,4.48],[73.91,3.88],[73.11,3.88]]},
|
||||
);
|
||||
const LANDS=LANDS_LL.map(l=>({id:l.id,hide:true,pts:l.ll.map(q=>proj(q[0],q[1]))}));
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -7,6 +7,7 @@ const CITY_LL={
|
|||
"akl":[174.76,-36.85],
|
||||
"alg":[3.06,36.75],
|
||||
"ams":[4.9,52.37],
|
||||
"anc":[-149.9,61.22],
|
||||
"apw":[-171.76,-13.83],
|
||||
"ash":[-77.49,39.04],
|
||||
"asu":[-57.58,-25.26],
|
||||
|
|
@ -20,6 +21,7 @@ const CITY_LL={
|
|||
"bel":[-48.5,-1.46],
|
||||
"ber":[13.4,52.52],
|
||||
"bet":[6.1,49.52],
|
||||
"bgi":[-59.58,13.12],
|
||||
"bhz":[-43.94,-19.92],
|
||||
"bkk":[100.5, 13.76],
|
||||
"blr":[77.59, 12.97],
|
||||
|
|
@ -28,6 +30,7 @@ const CITY_LL={
|
|||
"bom":[72.88,19.08],
|
||||
"bos":[-71.06,42.36],
|
||||
"bru":[4.35,50.85],
|
||||
"brw":[-156.75,71.28],
|
||||
"bsb":[-47.88,-15.79],
|
||||
"bud":[19.04, 47.5],
|
||||
"bue":[-58.38, -34.6],
|
||||
|
|
@ -50,6 +53,7 @@ const CITY_LL={
|
|||
"cpq":[-47.06,-22.91],
|
||||
"cpt":[18.42, -33.92],
|
||||
"cpv":[-35.88,-7.23],
|
||||
"cur":[-68.92,12.13],
|
||||
"cwb":[-49.27,-25.43],
|
||||
"cxj":[-51.18,-29.17],
|
||||
"dac":[90.41, 23.81],
|
||||
|
|
@ -58,26 +62,34 @@ const CITY_LL={
|
|||
"del":[77.21, 28.61],
|
||||
"den":[-104.99,39.74],
|
||||
"dkr":[-17.45,14.69],
|
||||
"dks":[80.65,73.51],
|
||||
"dla":[9.7,4.05],
|
||||
"doh":[51.45,25.28],
|
||||
"drw":[131.05,-12.46],
|
||||
"dub":[-6.26,53.35],
|
||||
"dur":[31.03,-29.86],
|
||||
"dus":[6.78,51.22],
|
||||
"dut":[-166.53,53.88],
|
||||
"dxb":[55.27,25.2],
|
||||
"dyr":[177.4,64.7],
|
||||
"ebj":[8.52,55.48],
|
||||
"edi":[-3.19,55.95],
|
||||
"fdf":[-61.03,14.64],
|
||||
"fec":[-38.97,-12.27],
|
||||
"fih":[15.27,-4.33],
|
||||
"fln":[-48.55,-27.6],
|
||||
"for":[-38.54, -3.73],
|
||||
"fra":[8.68,50.11],
|
||||
"fuj":[56.15,25.07],
|
||||
"fuk":[130.4,33.59],
|
||||
"gbe":[25.91,-24.65],
|
||||
"gdl":[-103.35,20.67],
|
||||
"gdx":[150.8,59.57],
|
||||
"gua":[-90.51,14.63],
|
||||
"gum":[144.75,13.47],
|
||||
"gyn":[-49.25,-16.69],
|
||||
"ham":[9.99,53.55],
|
||||
"hav":[-82.37,23.09],
|
||||
"hba":[147.25,-42.85],
|
||||
"hel":[24.94,60.17],
|
||||
"hfx":[-63.62,44.68],
|
||||
|
|
@ -96,11 +108,14 @@ const CITY_LL={
|
|||
"jib":[43.15,11.59],
|
||||
"jkt":[106.85,-6.2],
|
||||
"jnb":[28.05,-26.2],
|
||||
"jnu":[-134.36,58.31],
|
||||
"jpa":[-34.86,-7.12],
|
||||
"kcy":[-94.58,39.1],
|
||||
"kgl":[30.06,-1.95],
|
||||
"khi":[67.14,25.0],
|
||||
"kin":[-76.78,18.05],
|
||||
"kla":[32.58,0.35],
|
||||
"krs":[8.0,58.15],
|
||||
"kul":[101.69, 3.14],
|
||||
"kyv":[30.52,50.45],
|
||||
"lad":[13.23,-8.84],
|
||||
|
|
@ -120,6 +135,7 @@ const CITY_LL={
|
|||
"mao":[-60.02,-3.12],
|
||||
"mba":[39.67,-4.04],
|
||||
"mcp":[-51.07,0.03],
|
||||
"mct":[58.41,23.59],
|
||||
"mcz":[-35.74,-9.67],
|
||||
"mde":[-75.57,6.24],
|
||||
"mel":[144.96, -37.81],
|
||||
|
|
@ -127,36 +143,46 @@ const CITY_LL={
|
|||
"mgf":[-51.94,-23.42],
|
||||
"mia":[-80.19,25.76],
|
||||
"mil":[9.19,45.46],
|
||||
"mle":[73.51,4.18],
|
||||
"mmk":[33.08,68.97],
|
||||
"mnl":[120.98,14.6],
|
||||
"mos":[37.62,55.76],
|
||||
"mpm":[32.57,-25.97],
|
||||
"mrs":[5.37,43.3],
|
||||
"mru":[57.52,-20.18],
|
||||
"mtl":[-73.57,45.5],
|
||||
"mty":[-100.31,25.69],
|
||||
"muc":[11.58,48.14],
|
||||
"mvd":[-56.16,-34.9],
|
||||
"nas":[-77.35,25.04],
|
||||
"nat":[-35.21,-5.79],
|
||||
"nbo":[36.82,-1.29],
|
||||
"nou":[166.46,-22.27],
|
||||
"nyc":[-74.0,40.71],
|
||||
"ome":[-165.38,64.52],
|
||||
"oos":[3.23,51.15],
|
||||
"osa":[135.5, 34.69],
|
||||
"osl":[10.75,59.91],
|
||||
"ott":[-75.7,45.42],
|
||||
"pan":[-79.52, 8.98],
|
||||
"par":[2.35,48.86],
|
||||
"pcn":[-130.1,-25.07],
|
||||
"pdl":[-25.67,37.74],
|
||||
"pek":[116.4,39.9],
|
||||
"per":[115.86,-31.95],
|
||||
"phx":[-112.07,33.45],
|
||||
"pkc":[158.65,53.02],
|
||||
"pmo":[13.36,38.12],
|
||||
"pmw":[-48.33,-10.18],
|
||||
"poa":[-51.23,-30.03],
|
||||
"pom":[147.18,-9.44],
|
||||
"pos":[-61.48,10.66],
|
||||
"ppg":[-170.7,-14.28],
|
||||
"ppt":[-149.57,-17.53],
|
||||
"prg":[14.42, 50.08],
|
||||
"prr":[-130.32,54.31],
|
||||
"pvh":[-63.9,-8.76],
|
||||
"pvs":[170.31,69.7],
|
||||
"qro":[-100.39,20.59],
|
||||
"rai":[-23.55,14.98],
|
||||
"rao":[-47.81,-21.18],
|
||||
|
|
@ -165,18 +191,23 @@ const CITY_LL={
|
|||
"rek":[-21.94,64.15],
|
||||
"ria":[-53.81,-29.68],
|
||||
"rio":[-43.11,-22.57],
|
||||
"rix":[24.11,56.95],
|
||||
"rom":[12.5,41.9],
|
||||
"ror":[134.48,7.34],
|
||||
"ruh":[46.72,24.71],
|
||||
"run":[55.46,-20.92],
|
||||
"sao":[-46.63,-23.55],
|
||||
"scl":[-70.67, -33.45],
|
||||
"sdq":[-69.93,18.5],
|
||||
"sea":[-122.33,47.61],
|
||||
"sez":[55.47,-4.65],
|
||||
"sgn":[106.66, 10.76],
|
||||
"sha":[121.47,31.23],
|
||||
"sin":[103.82,1.35],
|
||||
"sjc":[-121.89,37.34],
|
||||
"sjo":[-84.09,9.93],
|
||||
"sjp":[-49.38,-20.81],
|
||||
"sju":[-66.1,18.4],
|
||||
"slc":[-111.89,40.76],
|
||||
"slz":[-44.3,-2.53],
|
||||
"sof":[23.32,42.7],
|
||||
|
|
@ -189,15 +220,19 @@ const CITY_LL={
|
|||
"tbu":[-175.2,-21.14],
|
||||
"tci":[-16.3,28.44],
|
||||
"the":[-42.8,-5.09],
|
||||
"tik":[128.87,71.64],
|
||||
"tll":[24.45,58.9],
|
||||
"tnr":[47.52,-18.88],
|
||||
"tok":[139.69,35.69],
|
||||
"tor":[-79.38,43.65],
|
||||
"tpe":[121.56, 25.03],
|
||||
"tun":[10.18,36.81],
|
||||
"uio":[-78.47,-0.18],
|
||||
"uus":[142.74,46.96],
|
||||
"van":[-123.12,49.28],
|
||||
"vie":[16.37, 48.21],
|
||||
"vix":[-40.31,-20.32],
|
||||
"vvo":[131.89,43.12],
|
||||
"waw":[21.01, 52.23],
|
||||
"wdh":[17.08,-22.56],
|
||||
"zrh":[8.54,47.37],
|
||||
|
|
|
|||
|
|
@ -201,6 +201,45 @@ const CITIES=[
|
|||
{id:'edi',name:'Edinburgh',x:0,y:0,land:'uk',reg:'EU',P:200,ix:'Haggis-IX',dc:'Castle Rock Colo',note:tr('cities.scotland_s_capital_north_sea_cables')},
|
||||
{id:'bde',name:'Bude',x:0,y:0,land:'uk',reg:'EU',P:3,ix:'',dc:'Clifftop Landing Station',note:tr('cities.a_tiny_surfing_town_in_cornwall')},
|
||||
{id:'svg',name:'Stavanger',x:0,y:0,land:'eu',reg:'EU',P:60,ix:'Brunost-IX',dc:'Inside-a-Mountain DC',note:tr('cities.norway_s_oil_capital_now_full')},
|
||||
// The Caribbean (#125)
|
||||
{id:'sju',name:'San Juan',x:0,y:0,land:'pr',reg:'AM',cc:'PR',P:120,ix:'Mofongo-IX',dc:'El Morro Colo',note:tr('cities.puerto_rico_s_capital_where_a')},
|
||||
{id:'sdq',name:'Santo Domingo',x:0,y:0,land:'hs',reg:'AM',cc:'DO',P:150,ix:'',dc:'Merengue Racks',note:tr('cities.the_dominican_republic_s_capital_the')},
|
||||
{id:'kin',name:'Kingston',x:0,y:0,land:'jm',reg:'AM',cc:'JM',P:60,ix:'Jerk-IX',dc:'Blue Mountain Colo',note:tr('cities.jamaica_s_capital_with_cables_to')},
|
||||
{id:'hav',name:'Havana',x:0,y:0,land:'cu',reg:'AM',cc:'CU',P:40,arpu:0.3,ix:'',dc:'1957 Chevy Server Room',note:tr('cities.cuba_s_only_cable_comes_from')},
|
||||
{id:'nas',name:'Nassau',x:0,y:0,land:'bs',reg:'AM',cc:'BS',P:20,ix:'',dc:'Conch Shell Colo',note:tr('cities.the_bahamas_capital_a_short_hop')},
|
||||
{id:'pos',name:'Port of Spain',x:0,y:0,land:'tt',reg:'AM',cc:'TT',P:40,ix:'Doubles-IX',dc:'Steelpan Server Hall',note:tr('cities.trinidad_s_capital_at_the_southern')},
|
||||
{id:'bgi',name:'Bridgetown',x:0,y:0,land:'bb',reg:'AM',cc:'BB',P:15,ix:'',dc:'Rum Shop Racks',note:tr('cities.barbados_sits_out_east_of_the')},
|
||||
{id:'fdf',name:'Fort-de-France',x:0,y:0,land:'mq',reg:'AM',cc:'MQ',P:18,ix:'',dc:'Pelée Shadow DC',note:tr('cities.martinique_a_corner_of_france_in')},
|
||||
{id:'cur',name:'Willemstad',x:0,y:0,land:'cw',reg:'AM',cc:'CW',P:10,ix:'Blue-Curaçao-IX',dc:'Pastel Waterfront DC',note:tr('cities.a_dutch_island_off_venezuela_that')},
|
||||
// The south-west Indian Ocean (#152) and Pitcairn (#124)
|
||||
{id:'run',name:'Saint-Denis',x:0,y:0,land:'re',reg:'AF',cc:'RE',P:30,ix:'Rougail SAUCIX',dc:'Piton Colo',note:tr('cities.r_union_a_piece_of_france')},
|
||||
{id:'mru',name:'Port Louis',x:0,y:0,land:'mu',reg:'AF',cc:'MU',P:30,ix:'Dholl-Puri-IX',dc:'Dodo Data Centre',note:tr('cities.mauritius_an_island_of_banks_call')},
|
||||
{id:'tnr',name:'Antananarivo',x:0,y:0,land:'mg',reg:'AF',cc:'MG',P:80,arpu:0.3,blackout:true,ix:'Zebu-IX',dc:'Baobab Avenue DC',note:tr('cities.madagascar_s_capital_up_in_the')},
|
||||
{id:'sez',name:'Victoria',x:0,y:0,land:'sc',reg:'AF',cc:'SC',P:4,ix:'',dc:'Giant Tortoise Colo',note:tr('cities.the_seychelles_capital_on_mah')},
|
||||
{id:'pcn',name:'Adamstown',x:0,y:0,land:'pn',reg:'OC',cc:'PN',P:0.2,blackout:true,beach:true,ix:'',dc:'Bounty Bunker',note:tr('cities.pitcairn_island_about_forty_people')},
|
||||
// Alaska, northern British Columbia and Russia's Arctic and Pacific coasts (#145)
|
||||
{id:'anc',name:'Anchorage',x:0,y:0,land:'am',reg:'AM',cc:'US',P:30,ix:'Mukluk-IX',dc:'Moose Crossing Colo',note:tr('cities.alaska_s_biggest_city_with_cables')},
|
||||
{id:'jnu',name:'Juneau',x:0,y:0,land:'aks',reg:'AM',cc:'US',P:3,ix:'',dc:'No Road In DC',note:tr('cities.alaska_s_capital_has_no_road')},
|
||||
{id:'ome',name:'Nome',x:0,y:0,land:'swd',reg:'AM',cc:'US',P:0.4,blackout:true,ix:'',dc:'Gold Rush Racks',note:tr('cities.a_gold_rush_town_on_the')},
|
||||
{id:'brw',name:'Utqiaġvik',x:0,y:0,land:'nsl',reg:'AM',cc:'US',P:0.5,blackout:true,ix:'',dc:'Top of the World Colo',note:tr('cities.the_northernmost_town_in_the_united')},
|
||||
{id:'dut',name:'Unalaska',x:0,y:0,land:'al',reg:'AM',cc:'US',P:0.5,ix:'',dc:'Deadliest Catch DC',note:tr('cities.the_aleutians_fishing_capital')},
|
||||
{id:'prr',name:'Prince Rupert',x:0,y:0,land:'am',reg:'AM',cc:'CA',ca:true,P:1.5,ix:'',dc:'Rain Gauge Racks',note:tr('cities.a_pacific_port_in_northern_british')},
|
||||
{id:'mmk',name:'Murmansk',x:0,y:0,land:'eu',reg:'EU',P:25,ru:true,beach:true,arpu:0.5,ix:'',dc:'Polar Night DC',note:tr('cities.the_biggest_city_north_of_the')},
|
||||
{id:'dks',name:'Dikson',x:0,y:0,land:'tay',reg:'AS',P:0.1,ru:true,beach:true,arpu:0.5,blackout:true,ix:'',dc:'Last Weather Station Rack',note:tr('cities.a_weather_station_and_a_port')},
|
||||
{id:'tik',name:'Tiksi',x:0,y:0,land:'lap',reg:'AS',P:0.5,ru:true,beach:true,arpu:0.5,blackout:true,ix:'',dc:'Permafrost Colo',note:tr('cities.a_port_on_the_laptev_sea')},
|
||||
{id:'pvs',name:'Pevek',x:0,y:0,land:'pvk',reg:'AS',P:0.5,ru:true,beach:true,arpu:0.5,ix:'',dc:'Floating Reactor Rack',note:tr('cities.russia_s_northernmost_town_powered_by')},
|
||||
{id:'dyr',name:'Anadyr',x:0,y:0,land:'chu',reg:'AS',P:1.3,ru:true,arpu:0.5,ix:'',dc:'Date Line Colo',note:tr('cities.chukotka_s_capital_closer_to_alaska')},
|
||||
{id:'pkc',name:'Petropavlovsk',x:0,y:0,land:'kam',reg:'AS',P:16,ru:true,arpu:0.5,ix:'',dc:'Volcano Row DC',note:tr('cities.kamchatka_s_capital_ringed_by_volcanoes')},
|
||||
{id:'gdx',name:'Magadan',x:0,y:0,land:'eu',reg:'AS',P:9,ru:true,arpu:0.5,ix:'',dc:'Kolyma Highway Colo',note:tr('cities.once_the_gateway_to_the_kolyma')},
|
||||
{id:'uus',name:'Yuzhno-Sakhalinsk',x:0,y:0,land:'sak',reg:'AS',P:18,ru:true,arpu:0.5,ix:'',dc:'Oil Platform Racks',note:tr('cities.sakhalin_s_capital_on_an_island')},
|
||||
{id:'vvo',name:'Vladivostok',x:0,y:0,land:'eu',reg:'AS',P:60,ru:true,arpu:0.5,ix:'Ikra-IX',dc:'Golden Horn Colo',note:tr('cities.the_end_of_the_trans_siberian')},
|
||||
// More landings around the North Sea and the Baltic, the Gulf of Oman, the Maldives and Kyushu
|
||||
{id:'krs',name:'Kristiansand',x:0,y:0,land:'eu',reg:'EU',cc:'NO',P:12,ix:'',dc:'Skagerrak Shore DC',note:tr('cities.norway_s_southern_tip_where_cables')},
|
||||
{id:'ebj',name:'Esbjerg',x:0,y:0,land:'eu',reg:'EU',cc:'DK',P:12,ix:'',dc:'Wind Farm Racks',note:tr('cities.denmark_s_west_coast_where_the')},
|
||||
{id:'rix',name:'Riga',x:0,y:0,land:'eu',reg:'EU',cc:'LV',P:60,ix:'Black-Balsam-IX',dc:'Art Nouveau DC',note:tr('cities.latvia_s_capital_its_cables_to')},
|
||||
{id:'mct',name:'Muscat',x:0,y:0,land:'eu',reg:'AS',cc:'OM',P:50,ix:'Halwa-IX',dc:'Frankincense Colo',note:tr('cities.oman_s_capital_just_outside_the')},
|
||||
{id:'mle',name:'Malé',x:0,y:0,land:'mv',reg:'AS',cc:'MV',P:4,ix:'',dc:'One-Metre-Up DC',note:tr('cities.the_maldives_capital_a_stop_on')},
|
||||
{id:'fuk',name:'Fukuoka',x:0,y:0,land:'jp',reg:'AS',P:120,ix:'Mentaiko-IX',dc:'Hakata Ramen Racks',note:tr('cities.japan_s_closest_city_to_korea')},
|
||||
];
|
||||
// Display-only nudges for cities that sit on top of each other at map scale; distances still use real lon/lat.
|
||||
const CITY_NUDGE={
|
||||
|
|
@ -256,13 +295,14 @@ const CITY_NUDGE={
|
|||
rao:[3.6,-2.6],
|
||||
rec:[-2.4,7.2],
|
||||
ria:[-2.4,4.9],
|
||||
rix:[-2,18],
|
||||
sea:[1,4],
|
||||
sin:[-1.3,-1.3],
|
||||
sjp:[-3.5,0.4],
|
||||
slz:[0.3,0.3],
|
||||
ssa:[0.5,-0.2],
|
||||
stg:[7,1],
|
||||
tll:[-4,22],
|
||||
tll:[4,10],
|
||||
van:[-3,-6],
|
||||
vix:[-0.4,0.4],
|
||||
zrh:[-3,3],
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,12 +1,12 @@
|
|||
/* ================= NETWORKS ================= */
|
||||
const NETS=[
|
||||
{id:'lvl',name:'Level Tree',asn:3535,type:'t1',pol:'restrictive',share:.07,price:9,col:'#7B61FF',pops:['syd','hfx','bda','hnl','bde','man','edi','svg','mil','rom','lis','ath','atn','den','phx','bos','hou','slc','ber','zrh','dub','cph','osl','tor','lax','mex','mtl','sea','sjc','dal','chi','ash','nyc','mia','sao','lon','ams','fra','par','mad','rio','bue','scl','bog','lim','pan','waw','prg','vie','bud','buh','ist','kcy','cal','van','ott','bru','bet','ham','muc','cpq','gdl','mty','qro'],ix:[],blurb:tr('networks.grew_from_a_seedling_into_a')},
|
||||
{id:'ntt',name:'Not That Telecom',asn:2941,type:'t1',pol:'restrictive',share:.06,price:8,col:'#4B3FC4',pops:['hnl','gum','man','mil','atn','den','bos','hou','phx','jkt','mnl','lax','dxb','icn','sea','sjc','dal','ash','nyc','lon','ams','fra','sin','hkg','tok','syd','tpe','del','maa','blr','hyd','osa','kul','bkk','sgn','kcy','dus'],ix:[],blurb:tr('networks.huge_in_asia_which_telecom_not')},
|
||||
{id:'tly',name:'Tell-Ya Carrier',asn:1229,type:'t1',pol:'restrictive',share:.05,price:8,col:'#9D4EDD',pops:['pdl','tci','svg','edi','man','mil','rom','pmo','ath','ber','osl','cph','hel','beg','sof','chi','ash','nyc','mia','lon','ams','fra','par','sto','mad','mrs','hkg','sin','tpe','tll','waw','vie','bud','buh','prg','kyv','van','bru','ham','muc','dus'],ix:[],blurb:tr('networks.nordic_backbone_that_tells_you')},
|
||||
{id:'ntt',name:'Not That Telecom',asn:2941,type:'t1',pol:'restrictive',share:.06,price:8,col:'#4B3FC4',pops:['hnl','gum','man','mil','atn','den','bos','hou','phx','jkt','mnl','lax','dxb','icn','sea','sjc','dal','ash','nyc','lon','ams','fra','sin','hkg','tok','syd','tpe','del','maa','blr','hyd','osa','kul','bkk','sgn','kcy','dus','fuk'],ix:[],blurb:tr('networks.huge_in_asia_which_telecom_not')},
|
||||
{id:'tly',name:'Tell-Ya Carrier',asn:1229,type:'t1',pol:'restrictive',share:.05,price:8,col:'#9D4EDD',pops:['pdl','tci','svg','edi','man','mil','rom','pmo','ath','ber','osl','cph','hel','beg','sof','chi','ash','nyc','mia','lon','ams','fra','par','sto','mad','mrs','hkg','sin','tpe','tll','waw','vie','bud','buh','prg','kyv','van','bru','ham','muc','dus','krs','ebj','rix'],ix:[],blurb:tr('networks.nordic_backbone_that_tells_you')},
|
||||
{id:'cog',name:'Cogentle',asn:714,type:'t1',pol:'restrictive',share:.04,price:3,col:'#B35CF0',pops:['hfx','bde','man','edi','bcn','mil','rom','lis','ath','atn','den','phx','bos','hou','slc','ber','zrh','dub','hel','sof','beg','tor','lax','mex','cph','icn','sea','sjc','dal','chi','ash','nyc','mia','sao','lon','ams','fra','par','mad','mrs','sto','sin','hkg','tok','rio','bue','scl','bog','lim','osa','waw','prg','vie','bud','buh','ist','kyv','kcy','van','ott','bru','oos','bet','ham','muc','dus','syd','per'],ix:[],blurb:tr('networks.cheapest_transit_on_the_map_famously')},
|
||||
{id:'tat',name:'Ta-Ta Comms',asn:6543,type:'t1',pol:'restrictive',share:.04,price:9,col:'#6A4C93',pops:['tci','gum','mil','pmo','lis','nbo','cai','jkt','dxb','nyc','ash','lon','fra','mrs','lag','jnb','bom','sin','hkg','tok','del','maa','blr','hyd','cpt','fuj','auh','tpe','khi','dac','cbo','kul','bkk','jed','ruh','doh','jib','dar','mba','dkr'],ix:[],blurb:tr('networks.waves_goodbye_to_latency_across_the')},
|
||||
{id:'drz',name:'Drizzle Electric',asn:9369,type:'t2',pol:'open',share:.04,price:4,col:'#1E90FF',auIx:['syd','mel','bne','per'],pops:['man','chc','edi','svg','bde','bcn','mil','rom','pmo','lis','ath','atn','den','phx','bos','hou','slc','ber','zrh','nbo','akl','per','jkt','mnl','dub','rek','tor','mtl','lax','mex','sof','osl','icn','sea','sjc','dal','chi','ash','nyc','mia','lon','ams','fra','par','sto','mad','hkg','sin','tok','syd','jnb','for','rio','bue','scl','lim','bog','pan','del','maa','blr','hyd','tpe','auh','cpt','mel','bne','osa','kul','bkk','sgn','khi','dac','cbo','waw','prg','vie','bud','buh','tll','ist','kyv','jed','ruh','doh','kcy','cal','van','ott','bru','oos','bet','ham','muc','ccs','lpb','alg','tun','cas','dkr','dus'],ix:'ALL',blurb:tr('networks.will_peer_with_anyone_anywhere')},
|
||||
{id:'tng',name:'Tangerine Telecom',asn:5115,type:'t2',pol:'selective',minIx:15,minPni:40,share:.03,price:6,col:'#FF8C42',pops:['tci','bcn','cai','nbo','dxb','par','mrs','mad','lon','ams','lag','jnb','waw','buh','dkr','abj','cas','tun','dla','fih'],ix:['bcn','par','mrs','mad','lon','ams','lag','jnb','waw','dkr','abj','cas','tun','dla','fih'],blurb:tr('networks.juicy_reach_into_europe_and_africa')},
|
||||
{id:'tng',name:'Tangerine Telecom',asn:5115,type:'t2',pol:'selective',minIx:15,minPni:40,share:.03,price:6,col:'#FF8C42',pops:['tci','bcn','cai','nbo','dxb','par','mrs','mad','lon','ams','lag','jnb','waw','buh','dkr','abj','cas','tun','dla','fih','fdf','run','tnr'],ix:['bcn','par','mrs','mad','lon','ams','lag','jnb','waw','dkr','abj','cas','tun','dla','fih'],blurb:tr('networks.juicy_reach_into_europe_and_africa')},
|
||||
{id:'sgt',name:'SingTell',asn:7474,type:'t2',pol:'selective',minIx:15,minPni:40,share:.03,price:7,col:'#00A6A6',pops:['jkt','mnl','per','akl','icn','sin','hkg','tok','syd','bom','tpe','maa','kul','bkk','sgn','mel','bne'],ix:['sin','hkg','tok','bom','tpe','maa','kul','bkk'],blurb:tr('networks.sings_your_packets_across_asia')},
|
||||
{id:'vdp',name:'Voda-Phony',asn:1373,type:'t2',pol:'paid',freeLv:7,paidFee:8000,share:.03,price:6,col:'#E63946',pops:['man','edi','mil','rom','lis','ath','nbo','cai','ber','dub','dxb','lon','fra','ams','mad','mrs','jnb','bom','lag','cpt','del','maa','ist','prg','bud','buh','doh','acc','dar','fih','mpm','dus'],ix:[],blurb:tr('networks.ended_free_peering_across_europe_and')},
|
||||
{id:'ctc',name:'China Telecomet',asn:4314,type:'t2',pol:'restrictive',share:.02,price:22,premium:2.5,cn:true,col:'#0B5CAD',pops:['pek','sha','hkg','sin','tok','lon','fra','nyc','sjc'],ix:[],blurb:tr('networks.the_biggest_network_in_china_its')},
|
||||
|
|
@ -29,7 +29,7 @@ NETS.push(
|
|||
{id:'abc',name:'AliBubble Cloud',asn:37936,type:'cdn',pol:'selective',minIx:5,minPni:20,share:.015,cn:true,col:'#FF6A00',pops:['pek','sha','hkg','sin','tok','fra','sjc','syd'],ix:['hkg','sin','tok','fra','sjc'],blurb:tr('networks.shopping_festivals_that_melt_traffic')},
|
||||
{id:'byd',name:'Bye-du',asn:38635,type:'cdn',pol:'selective',minIx:5,minPni:20,share:.01,cn:true,col:'#2932E1',pops:['pek','sha','hkg'],ix:['hkg'],blurb:tr('networks.search_maps_and_a_cheerful_goodbye')});
|
||||
NETS.push(
|
||||
{id:'rtc',name:'Rostelecomedy',asn:12389,type:'t2',pol:'selective',minIx:20,minPni:40,share:.01,price:6,col:'#7700FF',pops:['mos','hel','sto','fra','ams'],ix:['mos','fra','ams'],blurb:tr('networks.the_national_carrier_every_punchline')},
|
||||
{id:'rtc',name:'Rostelecomedy',asn:12389,type:'t2',pol:'selective',minIx:20,minPni:40,share:.01,price:6,col:'#7700FF',pops:['mos','hel','sto','fra','ams','mmk','vvo','uus','pkc','gdx','dyr','pvs','tik','dks'],ix:['mos','fra','ams'],blurb:tr('networks.the_national_carrier_every_punchline')},
|
||||
{id:'ydx',name:'Yawndex',asn:13238,type:'cdn',pol:'open',share:.008,col:'#FC3F1D',pops:['mos','hel','fra','ams'],ix:['mos','hel','fra','ams'],blurb:tr('networks.search_taxis_and_maps_slightly')},
|
||||
{id:'vkl',name:'VKontakt-lens',asn:47541,type:'cdn',pol:'open',share:.006,col:'#0077FF',pops:['mos','hel'],ix:['mos','hel'],blurb:tr('networks.social_network_with_perfect_vision')},
|
||||
{id:'ets',name:'Etis-a-lot',asn:5384,type:'eye',pol:'paid',freeLv:9,paidFee:8000,share:.006,col:'#719E19',pops:['dxb','mrs','lon','fra','sin','auh','fuj','doh'],ix:[],blurb:tr('networks.charges_a_lot_paid_peering_only')},
|
||||
|
|
@ -46,19 +46,19 @@ NETS.push(
|
|||
{id:'agc',name:'Angle-a Cables',asn:37470,type:'t2',pol:'open',up:['tly','cog'],share:.004,price:5,col:'#E30613',pops:['lad','fih','for','sao','mia','lon'],ix:['lad','for','sao','mia'],blurb:tr('networks.owns_the_cables_from_luanda_to')},
|
||||
{id:'djt',name:'Djibouti Calling',asn:30992,type:'t2',pol:'selective',up:['tat','tly'],minIx:3,minPni:15,share:.003,price:8,col:'#0D7F3F',pops:['jib','add','mrs','bom','jed'],ix:['jib'],blurb:tr('networks.a_tiny_telco_in_a_country')},
|
||||
{id:'mtx',name:'Empty-N',asn:29977,type:'eye',pol:'selective',up:['tat','lvl'],minIx:5,minPni:20,share:.008,col:'#FFCB05',pops:['lag','acc','abj','dla','kla','kgl','jnb','cpt','dur','lun','gbe','lad'],ix:['lag','acc','abj','dla','kla','kgl','jnb','cpt','dur','lun','gbe','lad'],blurb:tr('networks.africa_s_mobile_giant_in_a')},
|
||||
{id:'art',name:'Air-Tell Africa',asn:36928,type:'eye',pol:'selective',up:['tat','tly'],minIx:4,minPni:18,share:.006,col:'#ED1C24',pops:['lag','kla','kgl','dar','lun','fih','nbo'],ix:['lag','kla','kgl','dar','lun','fih','nbo'],blurb:tr('networks.mobile_money_and_prepaid_data_in')},
|
||||
{id:'art',name:'Air-Tell Africa',asn:36928,type:'eye',pol:'selective',up:['tat','tly'],minIx:4,minPni:18,share:.006,col:'#ED1C24',pops:['lag','kla','kgl','dar','lun','fih','nbo','tnr','sez'],ix:['lag','kla','kgl','dar','lun','fih','nbo'],blurb:tr('networks.mobile_money_and_prepaid_data_in')},
|
||||
{id:'eth',name:'Ethio-Tele-Calm',asn:24759,type:'eye',pol:'selective',up:['tat'],minIx:2,minPni:12,share:.005,col:'#8DC63F',pops:['add'],ix:['add'],blurb:tr('networks.ethiopia_s_state_telco_a_hundred')},
|
||||
{id:'mrc',name:'Atlas Shrugged Telecom',asn:36905,type:'eye',pol:'selective',up:['lvl','tly'],minIx:3,minPni:15,share:.004,col:'#F28C00',pops:['cas','abj','dkr'],ix:['cas'],blurb:tr('networks.morocco_s_incumbent_with_sister')},
|
||||
{id:'sfc',name:'Safari-Comic',asn:33771,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#4CB848',pops:['nbo','mba','add'],ix:['nbo','mba','add'],blurb:tr('networks.kenya_s_mobile_giant_pays_you')},
|
||||
{id:'teg',name:'Tele-Comet Egypt',asn:8452,type:'t2',pol:'selective',minIx:15,minPni:40,share:.006,price:8,col:'#5B2D8E',pops:['cai','mrs','fra','lon'],ix:['cai','mrs'],blurb:tr('networks.owns_the_land_crossing_every_red')});
|
||||
NETS.push(
|
||||
{id:'clr',name:'Clarovision',asn:28537,type:'t2',pol:'selective',minIx:10,minPni:30,share:.012,price:5,col:'#DA291C',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix','mvd','asu','cor','uio','mde','gua','sjo','qro','mty','gdl','bue','scl','lim','bog','pan','mex','mia'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix','mvd','asu','cor','uio','mde','gua','sjo','qro','mty','gdl','bue','scl','lim','bog'],blurb:tr('networks.the_big_regional_carrier_sees')},
|
||||
{id:'clr',name:'Clarovision',asn:28537,type:'t2',pol:'selective',minIx:10,minPni:30,share:.012,price:5,col:'#DA291C',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix','mvd','asu','cor','uio','mde','gua','sjo','qro','mty','gdl','bue','scl','lim','bog','pan','mex','mia','sju','sdq'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix','mvd','asu','cor','uio','mde','gua','sjo','qro','mty','gdl','bue','scl','lim','bog'],blurb:tr('networks.the_big_regional_carrier_sees')},
|
||||
{id:'viv',name:'Viva Vivo',asn:26959,type:'eye',pol:'selective',minIx:8,minPni:25,share:.01,col:'#660099',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],blurb:tr('networks.brazil_s_mobile_giant_very_much')},
|
||||
{id:'oio',name:'Oi Oi',asn:7739,type:'eye',pol:'selective',up:['lvl','tly'],minIx:6,minPni:20,share:.008,col:'#FFD000',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],blurb:tr('networks.says_oi_to_every_home_in')},
|
||||
{id:'tmt',name:'TIM-TIM Mobile',asn:26616,type:'eye',pol:'selective',up:['skl'],minIx:6,minPni:20,share:.007,col:'#004691',pops:['sao','rio','bsb','bhz','cwb','poa','cpq','rec','ssa','for','gyn','bel','mao','vix','fln'],ix:['sao','rio','bsb','bhz','cwb','poa','cpq','rec','ssa','for','gyn','bel','mao','vix','fln'],blurb:tr('networks.a_mobile_network_named_after_the')},
|
||||
{id:'bsn',name:'Brisanada',asn:28127,type:'eye',pol:'open',up:['lvl'],share:.004,col:'#F7941D',pops:['for','nat','jpa','cpv','rec','cau','mcz','aju','ssa','fec','the','slz'],ix:['for','nat','jpa','cpv','rec','cau','mcz','aju','ssa','fec','the','slz'],blurb:tr('networks.fiber_across_the_sertao_of_the')},
|
||||
{id:'mvs',name:'Moviestar',asn:12957,type:'t2',pol:'selective',up:['tly','lvl'],minIx:8,minPni:25,share:.008,price:6,col:'#019DF4',pops:['mex','gua','bog','mde','uio','lim','lpb','scl','bue','cor','mvd','ccs','sao','mia'],ix:['mex','bog','lim','scl','bue','mvd','ccs','sao'],blurb:tr('networks.a_spanish_carrier_starring_in_every')},
|
||||
{id:'llt',name:'Liberty Latte America',asn:23521,type:'t2',pol:'open',up:['lvl','cog'],share:.005,price:5,col:'#6C2C91',pops:['mia','pan','sjo','gua','bog','mde','ccs'],ix:['pan','sjo','gua','bog'],blurb:tr('networks.cables_all_around_the_caribbean')},
|
||||
{id:'llt',name:'Liberty Latte America',asn:23521,type:'t2',pol:'open',up:['lvl','cog'],share:.005,price:5,col:'#6C2C91',pops:['mia','pan','sjo','gua','bog','mde','ccs','sju','kin','nas','pos','bgi','cur'],ix:['pan','sjo','gua','bog','kin','pos'],blurb:tr('networks.cables_all_around_the_caribbean')},
|
||||
{id:'ant',name:'Antelope',asn:6058,type:'eye',pol:'selective',up:['skl','tly'],minIx:3,minPni:15,share:.004,col:'#0072BC',pops:['mvd'],ix:['mvd'],blurb:tr('networks.uruguay_s_state_telco_fast')},
|
||||
{id:'tgo',name:'Tiger Mobile',asn:27743,type:'eye',pol:'selective',up:['lvl'],minIx:4,minPni:15,share:.005,col:'#00377B',pops:['asu','lpb','gua','sjo','pan','bog','mde'],ix:['asu','lpb','gua','sjo','bog'],blurb:tr('networks.prepaid_mobile_from_paraguay_to')},
|
||||
{id:'mlv',name:'Mercado Livre-ly',asn:52850,type:'cdn',pol:'open',share:.006,col:'#FFE600',pops:['sao','rio','bue','scl','bog','lim','mia'],ix:['sao','rio','bue','scl','bog','lim'],blurb:tr('networks.ships_parcels_and_packets_both')},
|
||||
|
|
@ -67,13 +67,13 @@ NETS.push(
|
|||
{id:'cht',name:'Chunghwa Tele-calm',asn:3426,type:'t2',pol:'selective',minIx:10,minPni:30,share:.008,price:7,col:'#00A0E9',pops:['tpe','hkg','tok','lax','sin'],ix:['tpe','hkg'],blurb:tr('networks.taiwan_s_incumbent_stays_calm_while')},
|
||||
{id:'duu',name:'Du-opoly',asn:15820,type:'eye',pol:'paid',freeLv:11,paidFee:6000,share:.004,col:'#00A9CE',pops:['dxb','auh','fuj'],ix:[],blurb:tr('networks.the_other_half_of_the_uae')});
|
||||
NETS.push(
|
||||
{id:'kdi',name:'KD-DIY',asn:2561,type:'t2',pol:'selective',minIx:10,minPni:30,share:.008,price:6,col:'#E85D04',pops:['tok','osa','lax','sin','hkg'],ix:['tok','osa'],blurb:tr('networks.japanese_carrier_that_builds')},
|
||||
{id:'kdi',name:'KD-DIY',asn:2561,type:'t2',pol:'selective',minIx:10,minPni:30,share:.008,price:6,col:'#E85D04',pops:['tok','osa','lax','sin','hkg','fuk'],ix:['tok','osa','fuk'],blurb:tr('networks.japanese_carrier_that_builds')},
|
||||
{id:'opt',name:'Floptus',asn:4804,type:'eye',pol:'selective',minIx:8,minPni:25,share:.006,col:'#00837E',pops:['syd','mel','bne','per'],ix:[],blurb:tr('networks.australia_s_number_two_once_took')},
|
||||
{id:'tpr',name:'Toilet Paper Group',asn:7545,type:'eye',pol:'selective',minIx:8,minPni:25,share:.0035,col:'#4E2A84',pops:['syd','mel','bne','per','adl','cbr'],ix:[],blurb:tr('networks.stockpiled_bandwidth_in_2020_and')},
|
||||
{id:'abb',name:'Aussie Boyband',asn:4764,type:'eye',pol:'open',share:.002,col:'#00B140',pops:['syd','mel','bne','per','adl','cbr','drw','hba'],ix:['syd','mel','bne','per','adl','drw'],blurb:tr('networks.matching_outfits_perfect_harmonies')},
|
||||
{id:'voc',name:'Hocus Pocus',asn:4826,type:'t2',pol:'open',up:['ntt','tly'],share:.002,price:7,col:'#E4002B',pops:['syd','mel','bne','per','adl','cbr','drw','hba','sin'],ix:['syd','mel','bne','per','adl','hba','drw','sin'],blurb:tr('networks.now_you_see_the_fibre_now')},
|
||||
{id:'ddo',name:'Doodoo',asn:9443,type:'eye',pol:'open',up:['voc'],share:.0011,col:'#FFC20E',pops:['syd','mel','bne','per','adl'],ix:[],blurb:tr('networks.the_cheapest_plan_in_the_country')},
|
||||
{id:'stb',name:'Musklink',asn:14593,type:'eye',pol:'selective',minIx:3,minPni:10,share:.001,col:'#1B1F24',pops:['syd','mel','bne','per','drw'],ix:['mel','bne','per','drw'],blurb:tr('networks.beams_the_outback_online_from_550')},
|
||||
{id:'stb',name:'Musklink',asn:14593,type:'eye',pol:'selective',minIx:3,minPni:10,share:.001,col:'#1B1F24',pops:['syd','mel','bne','per','drw','sea','lax','dal','chi','ash'],ix:['mel','bne','per','drw'],blurb:tr('networks.beams_the_outback_online_from_550')},
|
||||
{id:'spl',name:'Speedyloop',asn:38195,type:'t2',pol:'open',up:['tly'],share:.001,price:6,col:'#FF5F00',pops:['syd','mel','bne','per','adl','sin','hkg','cbr','drw'],ix:['mel','bne','per','adl','hba','drw','sin','hkg'],blurb:tr('networks.speedy_by_name_owns_a_slice')},
|
||||
{id:'blg',name:'Beshort',asn:135887,type:'eye',pol:'selective',minIx:8,minPni:25,up:['tsy'],share:.0005,col:'#FF5A00',pops:['syd','mel','bne'],ix:[],blurb:tr('networks.telstraya_s_budget_brand_cheaper')},
|
||||
{id:'spn',name:'Spin2wintel',asn:18390,type:'eye',pol:'open',up:['voc'],share:.00015,col:'#0072CE',pops:['syd','mel','bne','per','adl'],ix:['syd','mel','bne','per','adl'],blurb:tr('networks.cheap_broadband_with_the_sales_pitch')},
|
||||
|
|
@ -87,7 +87,7 @@ NETS.push(
|
|||
{id:'dgi',name:'Digi-tally Cheap',asn:8798,type:'eye',pol:'open',share:.006,col:'#2A5CAA',pops:['buh','bud','mad'],ix:['buh','bud','mad'],blurb:tr('networks.gigabit_to_every_flat_for_the')},
|
||||
{id:'ups',name:'UPC-You-Later',asn:6380,type:'eye',pol:'selective',minIx:8,minPni:25,share:.006,col:'#D8001B',pops:['waw','prg','vie','bud','zrh','kyv'],ix:['waw','prg','vie','kyv'],blurb:tr('networks.cable_broadband_across_central')});
|
||||
NETS.push(
|
||||
{id:'tlu',name:'Tell Us',asn:852,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,up:['lvl','tly'],col:'#4B286D',pops:['van','cal','tor','mtl','ott','sea'],ix:['van','cal','tor'],blurb:tr('networks.western_canada_s_incumbent_tell_us')},
|
||||
{id:'tlu',name:'Tell Us',asn:852,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,up:['lvl','tly'],col:'#4B286D',pops:['van','cal','tor','mtl','ott','sea','prr'],ix:['van','cal','tor'],blurb:tr('networks.western_canada_s_incumbent_tell_us')},
|
||||
{id:'rgc',name:'Bodgers Communications',asn:812,type:'eye',pol:'selective',minIx:10,minPni:30,share:.01,up:['cog','ntt'],col:'#DA291C',pops:['tor','ott','mtl','van','cal'],ix:['tor','ott','van'],blurb:tr('networks.canada_s_cable_giant_held_together')});
|
||||
NETS.push(
|
||||
{id:'tny',name:'Telenyet',asn:6848,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,up:['lvl'],col:'#FFC421',pops:['bru','oos','ams','fra','lon'],ix:['bru'],blurb:tr('networks.half_of_the_flanders_duopoly_on')},
|
||||
|
|
@ -98,13 +98,27 @@ NETS.push(
|
|||
{id:'cms',name:'CityMess',asn:199095,type:'eye',pol:'open',share:.002,up:['cog'],col:'#00B2A9',pops:['oos','bru'],ix:['bru'],blurb:tr('networks.private_5g_and_business_fiber_from')});
|
||||
NETS.push({id:'kys',name:'Kyiv Superstar',asn:15859,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#0055B8',pops:['kyv','waw','fra'],ix:['kyv'],blurb:tr('networks.ukraine_s_biggest_mobile_network_has')});
|
||||
NETS.push({id:'stc',name:'Sticky Telecom',asn:39368,type:'t2',pol:'selective',minIx:10,minPni:30,share:.01,price:8,col:'#4F008C',pops:['ruh','jed','dxb','fra','lon','cai'],ix:['ruh'],blurb:tr('networks.the_kingdom_s_incumbent_once_you')},
|
||||
{id:'ord',name:'Ooh-redoo',asn:8871,type:'eye',pol:'paid',freeLv:11,paidFee:5000,share:.004,col:'#ED1C24',pops:['doh','dxb','jkt'],ix:[],blurb:tr('networks.qatar_s_big_operator_paid_peering')});
|
||||
{id:'ord',name:'Ooh-redoo',asn:8871,type:'eye',pol:'paid',freeLv:11,paidFee:5000,share:.004,col:'#ED1C24',pops:['doh','dxb','jkt','mct'],ix:[],blurb:tr('networks.qatar_s_big_operator_paid_peering')});
|
||||
NETS.push(
|
||||
{id:'tim',name:'TIM-Tam Italia',asn:3269,type:'eye',pol:'selective',minIx:8,minPni:25,share:.008,col:'#004691',pops:['mil','rom','pmo'],ix:['mil','rom'],blurb:tr('networks.italy_s_incumbent_sweet_on_the')},
|
||||
{id:'skl',name:'Sparkly Seabone',asn:6762,type:'t1',pol:'restrictive',share:.04,price:6,col:'#5B2C83',pops:['pmo','mil','rom','ath','mrs','bcn','mad','lis','par','lon','ams','fra','zrh','vie','bud','prg','waw','buh','sof','ist','ber','sto','nyc','ash','mia','atn','dal','chi','lax','sjc','tor','mex','pan','bog','lim','scl','bue','sao','rio','for','cai','jed','dxb','bom','sin','hkg','tok'],ix:[],blurb:tr('networks.the_tier_1_that_grew_up')},
|
||||
{id:'skl',name:'Sparkly Seabone',asn:6762,type:'t1',pol:'restrictive',share:.04,price:6,col:'#5B2C83',pops:['pmo','mil','rom','ath','mrs','bcn','mad','lis','par','lon','ams','fra','zrh','vie','bud','prg','waw','buh','sof','ist','ber','sto','nyc','ash','mia','atn','dal','chi','lax','sjc','tor','mex','pan','bog','lim','scl','bue','sao','rio','for','cai','jed','dxb','bom','sin','hkg','tok','hav'],ix:[],blurb:tr('networks.the_tier_1_that_grew_up')},
|
||||
{id:'fwb',name:'Fast-Webby',asn:12874,type:'eye',pol:'open',share:.004,col:'#FDC300',pops:['mil','rom'],ix:['mil','rom'],blurb:tr('networks.fiber_to_the_italian_home_with')},
|
||||
{id:'meo',name:'MEO-w Portugal',asn:3243,type:'eye',pol:'selective',minIx:5,minPni:20,share:.004,col:'#00A3E0',pops:['pdl','lis','mad'],ix:['lis'],blurb:tr('networks.portugal_s_incumbent_purrs_when_you')},
|
||||
{id:'nos',name:'NOS-y Neighbour',asn:2860,type:'eye',pol:'open',share:.003,col:'#111111',pops:['lis'],ix:['lis'],blurb:tr('networks.peers_with_anyone_and_wants_to')},
|
||||
{id:'cos',name:'Cosmo-Note',asn:6799,type:'eye',pol:'selective',minIx:5,minPni:20,share:.004,col:'#7DC242',pops:['ath','sof'],ix:['ath'],blurb:tr('networks.greece_s_incumbent_takes_careful')},
|
||||
{id:'spc',name:'Spectre-um Cable',asn:20115,type:'eye',pol:'selective',minIx:12,minPni:35,share:.02,col:'#0099D8',pops:['nyc','lax','dal','chi','atn','den','phx','slc','hou','bos','sjc'],ix:['nyc','lax','dal','chi','atn','den'],blurb:tr('networks.cable_broadband_for_half_of_america')},
|
||||
{id:'vzn',name:'Very-Zone',asn:701,type:'eye',pol:'paid',paidFee:9000,share:.015,col:'#CD040B',pops:['nyc','ash','bos','dal','lax','chi','atn','mia'],ix:[],blurb:tr('networks.can_you_hear_me_now_only')});
|
||||
NETS.push(
|
||||
{id:'att',name:'AT&Tease',asn:7018,type:'t1',pol:'restrictive',share:.02,price:8,col:'#00A8E0',pops:['nyc','ash','chi','dal','atn','lax','sjc','sea','mia','hou','lon','fra','ams','par'],ix:[],blurb:tr('networks.the_phone_company_s_favourite_child')},
|
||||
{id:'tmo',name:'Tee-Hee Mobile',asn:21928,type:'eye',pol:'selective',minIx:6,minPni:20,share:.01,up:['lvl','ntt'],col:'#E20074',pops:['nyc','bos','den','sea','sjc','lax','mia','chi','sju'],ix:['nyc','bos','den','sea','sjc','lax','mia','sju'],blurb:tr('networks.pink_loud_and_almost_entirely_ipv6')},
|
||||
{id:'cxc',name:'Coax Communications',asn:22773,type:'eye',pol:'selective',minIx:8,minPni:25,share:.006,up:['spc'],col:'#0072CE',pops:['ash','atn','bos','chi','dal','kcy','lax','nyc','sjc','phx'],ix:[],blurb:tr('networks.cable_broadband_for_the_sun_belt')},
|
||||
{id:'pes',name:'Pessimum',asn:6128,type:'eye',pol:'open',share:.005,up:['cog','lvl'],col:'#1A3D8F',pops:['nyc','ash','chi'],ix:['nyc','ash','chi'],blurb:tr('networks.expects_the_worst_from_every_link')},
|
||||
{id:'ftr',name:'Final Frontear',asn:5650,type:'eye',pol:'selective',minIx:6,minPni:20,share:.005,up:['vzn'],col:'#D2232A',pops:['ash','chi','dal','nyc','mia','lax'],ix:['ash','chi','dal','nyc','mia','lax'],blurb:tr('networks.fiber_to_30_million_homes_and')},
|
||||
{id:'gfb',name:'GFibber',asn:16591,type:'eye',pol:'open',share:.002,up:['lvl','cog'],col:'#34A853',pops:['kcy','ash','atn','chi','dal','den','nyc','phx','slc','sjc'],ix:['kcy','ash','atn','chi','dal','den','nyc','phx','slc','sjc'],blurb:tr('networks.started_in_kansas_city_in_2012')},
|
||||
{id:'snc',name:'Sonic Boomer',asn:46375,type:'eye',pol:'open',share:.0008,up:['cog','lvl'],col:'#F7A600',pops:['sjc'],ix:['sjc'],blurb:tr('networks.bay_area_fiber_with_an_old')});
|
||||
NETS.push(
|
||||
{id:'npt',name:'Neptoon Internet',asn:151660,type:'eye',pol:'open',share:.00008,col:'#3D5AFE',pops:['syd','mel','bne','per','adl'],ix:['syd','mel','bne','per','adl'],blurb:tr('networks.privacy_first_broadband_from_melbourne')},
|
||||
{id:'lnt',name:'Lawn-tel',asn:134697,type:'eye',pol:'selective',minIx:2,minPni:10,share:.00015,col:'#3FA34D',pops:['hba','syd','mel','bne','per','adl'],ix:['hba','syd','mel','bne','per','adl'],blurb:tr('networks.tasmania_s_own_mowing_its_way')},
|
||||
{id:'pnt',name:'Pent-Up Net',asn:10214,type:'eye',pol:'open',share:.0003,col:'#8E24AA',pops:['per','syd'],ix:['per','syd'],blurb:tr('networks.perth_wireless_and_fibre_pent_up')},
|
||||
{id:'mag',name:'Dive-Bomb Magpie',asn:58511,type:'t2',pol:'open',up:['ntt','cog'],share:.0003,price:7,col:'#212121',pops:['syd','mel','bne','per','adl','akl','sin','sjc','sea','lon','ams','fra','par'],ix:['syd','mel','bne','per','adl','akl','sin','sjc','sea','lon','ams','fra','par'],blurb:tr('networks.dive_bombs_every_exchange_in_the')},
|
||||
{id:'inp',name:'Internope',asn:4739,type:'eye',pol:'restrictive',up:['tpr'],share:.0015,col:'#F57C00',pops:['syd','mel','bne','per','adl','cbr'],ix:[],blurb:tr('networks.once_the_nerds_favourite_isp_now')});
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const XIX=[
|
|||
{id:'sin~2',c:'sin',name:'Kopi-IX',cheap:0.6,take:0.5,blurb:tr('rival_exchanges.strong_sweet_and_cheaper_than_the')},
|
||||
{id:'hkg~2',c:'hkg',name:'Dim-Sum-IX',cheap:0.6,take:0.5,blurb:tr('rival_exchanges.lots_of_small_sessions_on_little')},
|
||||
{id:'tok~2',c:'tok',name:'Bento-IX',cheap:0.65,take:0.5,core:['drz','akm','cfl','sgt','msf','amz'],blurb:tr('rival_exchanges.tokyo_has_more_exchanges_than_anyone')},
|
||||
{id:'syd~2',c:'syd',name:'At-The-Edge IX',cheap:.7,take:0.5,core:['drz','nfx','ggl','fbk','akm','cfl','amz','msf','bdc','slw','abb','voc','stb','spl','lpt'],blurb:tr('rival_exchanges.the_challenger_to_ix_straya_pops')},
|
||||
{id:'syd~2',c:'syd',name:'At-The-Edge IX',cheap:.7,take:0.5,core:['drz','nfx','ggl','fbk','akm','cfl','amz','msf','bdc','slw','abb','voc','stb','spl','lpt','npt','mag'],blurb:tr('rival_exchanges.the_challenger_to_ix_straya_pops')},
|
||||
{id:'bom~2',c:'bom',name:'Vada-Pav-IX',cheap:0.45,take:0.45,blurb:tr('rival_exchanges.mumbai_s_street_food_exchange_fast')},
|
||||
{id:'dxb~2',c:'dxb',name:'Shawarma-IX',cheap:0.6,take:0.4,blurb:tr('rival_exchanges.the_challenger_to_the_de_kicks')},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ NETS.push(
|
|||
{id:'btt',name:'Bee-Tee',asn:2856,type:'eye',pol:'selective',minIx:10,minPni:30,share:.012,col:'#5514B4',pops:['lon','man','edi','bde'],ix:['lon','man'],blurb:tr('long_tail.the_uk_s_incumbent_buzzes_politely')},
|
||||
{id:'sky',name:'Sky-High Broadband',asn:5607,type:'eye',pol:'selective',minIx:6,minPni:25,share:.008,col:'#0072C9',pops:['lon','man','edi','dub'],ix:['lon','man','edi'],blurb:tr('long_tail.football_films_and_a_router_that')},
|
||||
{id:'vmo',name:'Virgin Mediocre',asn:5089,type:'eye',pol:'selective',minIx:6,minPni:25,share:.007,col:'#E10A0A',pops:['lon','man','edi'],ix:['lon','man'],blurb:tr('long_tail.cable_broadband_for_half_of_britain')},
|
||||
{id:'tnr',name:'Tele-Nor-Way',asn:2119,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#00A9E0',pops:['osl','svg','sto','cph'],ix:['osl','svg'],blurb:tr('long_tail.norway_s_incumbent_neither_yes_nor')});
|
||||
{id:'tnr',name:'Tele-Nor-Way',asn:2119,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#00A9E0',pops:['osl','svg','sto','cph','krs'],ix:['osl','svg'],blurb:tr('long_tail.norway_s_incumbent_neither_yes_nor')});
|
||||
NETS.push(
|
||||
{id:'hwt',name:'Hawaiian Telecombo',asn:36149,type:'eye',pol:'selective',minIx:3,minPni:15,share:.004,up:['ntt','lvl'],col:'#5B2A86',pops:['hnl'],ix:['hnl'],blurb:tr('long_tail.hawaii_s_incumbent_every_plan_comes')},
|
||||
{id:'gtg',name:'Grand Theft Teleguam',asn:9246,type:'t2',pol:'open',share:.002,price:8,up:['ntt','tat'],col:'#0072CE',pops:['gum','ror','maj','hnl','tok'],ix:['gum','hnl'],blurb:tr('long_tail.guam_s_incumbent_and_the_way')},
|
||||
|
|
@ -93,3 +93,25 @@ NETS.push(
|
|||
{id:'cvt',name:'Curriculum Vitae Telecom',asn:37517,type:'t2',pol:'open',share:.002,price:8,up:['tat','tly'],col:'#004B87',pops:['rai','lis','for','dkr'],ix:['rai'],blurb:tr('long_tail.cape_verde_s_incumbent_and_the')},
|
||||
{id:'pss',name:'Pretty Sure South Atlantic',asn:210841,type:'t2',pol:'open',share:.0005,price:12,up:['tat'],col:'#7D2B8B',pops:['jam','cpt'],ix:[],blurb:tr('long_tail.the_telco_for_st_helena_ascension')},
|
||||
{id:'bst',name:'Beastlink',asn:11260,type:'eye',pol:'selective',minIx:2,minPni:10,share:.002,up:['cog','lvl'],col:'#EE3124',pops:['hfx','tor'],ix:['hfx'],blurb:tr('long_tail.atlantic_canada_s_cable_company')});
|
||||
NETS.push(
|
||||
{id:'dgc',name:'Digi-Sell Caribbean',asn:40786,type:'eye',pol:'open',share:.002,up:['tly','lvl'],col:'#E2001A',pops:['kin','pos','bgi','fdf','cur','mia'],ix:['kin'],blurb:tr('long_tail.the_same_phone_company_as_in')},
|
||||
{id:'wnt',name:'Whirled Net',asn:11367,type:'eye',pol:'open',share:.0005,up:['lvl'],col:'#1F6FB2',pops:['sju'],ix:['sju'],blurb:tr('long_tail.puerto_rico_s_own_business_isp')},
|
||||
{id:'cbh',name:'Cable Bahamamama',asn:15146,type:'eye',pol:'selective',minIx:2,minPni:10,share:.0008,up:['lvl','cog'],col:'#00A3AD',pops:['nas','mia'],ix:[],blurb:tr('long_tail.cable_tv_and_broadband_for_the')},
|
||||
{id:'etc',name:'Etecs-ah',asn:27725,type:'eye',pol:'open',share:.002,up:['skl'],col:'#0055A4',pops:['hav'],ix:[],blurb:tr('long_tail.cuba_s_state_telco_and_only')},
|
||||
{id:'tst',name:'TSTT (This Should Take Time)',asn:5639,type:'eye',pol:'selective',minIx:2,minPni:10,share:.001,up:['lvl'],col:'#C8102E',pops:['pos'],ix:['pos'],blurb:tr('long_tail.trinidad_and_tobago_s_incumbent_your')},
|
||||
{id:'cwt',name:'Curaçao Teal-ecom',asn:27660,type:'eye',pol:'open',share:.0004,up:['tly'],col:'#00A6A6',pops:['cur'],ix:['cur'],blurb:tr('long_tail.the_island_s_own_telco_the')},
|
||||
{id:'cnp',name:'Canal Minus',asn:21351,type:'eye',pol:'selective',minIx:2,minPni:8,share:.0006,up:['tly'],col:'#111111',pops:['fdf','run','par'],ix:['run'],blurb:tr('long_tail.french_pay_tv_that_also_runs')},
|
||||
{id:'zeo',name:'Zealot',asn:37002,type:'eye',pol:'open',share:.0005,up:['tly'],col:'#7A1FA2',pops:['run'],ix:['run'],blurb:tr('long_tail.r_union_s_fiber_challenger_very')},
|
||||
{id:'srr',name:'Signal Frequently Ruined',asn:49902,type:'eye',pol:'selective',minIx:1,minPni:8,share:.0005,up:['tly'],col:'#E2001A',pops:['run'],ix:['run'],blurb:tr('long_tail.mobile_and_broadband_on_r_union')},
|
||||
{id:'mtc',name:'Dodo Telecom',asn:23889,type:'t2',pol:'open',share:.001,price:9,up:['tat','tly'],col:'#D52B1E',pops:['mru','run','tnr','jnb','mrs'],ix:['mru'],blurb:tr('long_tail.the_island_s_incumbent_and_a')},
|
||||
{id:'emt',name:'Em-Tell',asn:30999,type:'eye',pol:'open',share:.0004,up:['tat'],col:'#00953B',pops:['mru'],ix:['mru'],blurb:tr('long_tail.mauritius_number_two_telling_everyone')},
|
||||
{id:'tlm',name:'Telmaybe',asn:37054,type:'t2',pol:'open',share:.0015,price:10,up:['tat','tly'],col:'#FFCC00',pops:['tnr','run','mru','jnb'],ix:['tnr'],blurb:tr('long_tail.madagascar_s_incumbent_and_the_only')},
|
||||
{id:'cws',name:'Cable & Witless Seychelles',asn:36958,type:'t2',pol:'open',share:.0003,price:12,up:['tat'],col:'#E4007C',pops:['sez','mba'],ix:[],blurb:tr('long_tail.the_seychelles_old_telco_open_to')},
|
||||
{id:'acs',name:'Alaska Commotions',asn:7782,type:'eye',pol:'open',share:.0008,up:['lvl','cog'],col:'#0072CE',pops:['anc','jnu','sea'],ix:['anc'],blurb:tr('long_tail.alaska_s_old_phone_company_and')},
|
||||
{id:'gci',name:'Glacier Comms Inc.',asn:8047,type:'t2',pol:'open',share:.0015,price:11,up:['lvl','ntt'],col:'#00467F',pops:['anc','jnu','ome','brw','dut','sea'],ix:['sea'],blurb:tr('long_tail.alaska_s_biggest_network_from_anchorage')},
|
||||
{id:'mgf',name:'MegaPhone',asn:31133,type:'eye',pol:'selective',minIx:4,minPni:15,share:.003,up:['rtc'],col:'#00B956',pops:['mos','vvo','uus','pkc','mmk','gdx'],ix:['mos','vvo'],blurb:tr('long_tail.one_of_russia_s_big_mobile')},
|
||||
{id:'ert',name:'Er-Um Telecom',asn:9049,type:'eye',pol:'open',share:.002,up:['rtc'],col:'#E30613',pops:['mos','vvo'],ix:['mos','vvo'],blurb:tr('long_tail.broadband_in_dozens_of_russian_cities')});
|
||||
NETS.push(
|
||||
{id:'tet',name:'Tet-à-Tête',asn:12578,type:'eye',pol:'selective',minIx:2,minPni:10,share:.001,up:['tly'],col:'#3F2A56',pops:['rix','sto'],ix:['rix'],blurb:tr('long_tail.latvia_s_incumbent_peers_face_to')},
|
||||
{id:'omt',name:'Omantell',asn:8529,type:'t2',pol:'selective',minIx:3,minPni:12,share:.002,price:9,up:['tat','tly'],col:'#2F6E3B',pops:['mct','fuj','mrs','lon','bom'],ix:['mct'],blurb:tr('long_tail.oman_s_incumbent_and_owner_of')},
|
||||
{id:'dhr',name:'Dhiraa-goo',asn:7642,type:'t2',pol:'open',share:.0003,price:12,up:['tat'],col:'#E2231A',pops:['mle','cbo'],ix:[],blurb:tr('long_tail.the_maldives_telco_on_islands_one')});
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,ci
|
|||
if(o.scn){const sc=o.scn;S.scn={id:sc.id,rules:sc.rules||{},days:sc.days,name:sc.n||tr('features.weekly_challenge_key',{key:sc.key}),key:sc.key||null,mods:(sc.mods||[]).map(m=>m.id)};S.rng=(o.seed||hstr(sc.id))|0;S.mode='scenario';S.asn=200000+Math.floor(Math.random()*15000);
|
||||
if(sc.cash)S.cash=sc.cash;if(sc.setup)sc.setup();
|
||||
for(const m of S.scn.mods){if(m==='pricey')S.priceMul=1.3;if(m==='poor')S.cash=100000;if(m==='chaos')S.scn.rules.chaos=true;if(m==='boom')S.scn.rules.boom=true;if(m==='dk')S.scn.rules.dkAll=true;if(m==='sharks')S.scn.rules.sharks=true;}}
|
||||
// Every new network starts at ½ speed (#186), whatever the last one ran at: slow enough to look around, but things happen.
|
||||
UI.speed=UI.lastSpeed=0.5;UI.resumeSpeed=null;
|
||||
track('game_new');UI.started=true;closeModal();compute();cam.x=CITY[city].x;cam.y=CITY[city].y;cam.z=innerWidth<760?1.1:1.4;selectCity(city);
|
||||
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${o.scn.goal?esc(o.scn.goal)+'.':tr('common.serve_as_much_traffic_as_you')} ${tr('scenarios.you_have_n_days',{n:S.scn.days})}`:S.mode==='sandbox'?tr('scenarios.sandbox_mode_a_billion_dollars_every'):tr('scenarios.welcome_name_the_ripe_ncc_assigned',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
||||
renderAll();save();if(!S.scn&&S.mode!=='sandbox')tutorialStart();}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
/* ---------- traceroute and looking glass ---------- */
|
||||
const slug=t=>String(t).toLowerCase().normalize('NFKD').replace(/[̀-ͯ]/g,'').replace(/[^a-z0-9]+/g,'-').replace(/^-|-$/g,'')||'x';
|
||||
function trPaths(src){const live=S.links.filter(l=>!linkDown(l)),rem=remoteCities(),ok=c=>popUp(c)||rem.includes(c),adj={};
|
||||
for(const l of live){if(!ok(l.a)||!ok(l.b))continue;const w=(l.km+60)*MET[l.metric||'normal'].f;(adj[l.a]=adj[l.a]||[]).push([l.b,l,w]);(adj[l.b]=adj[l.b]||[]).push([l.a,l,w]);}
|
||||
// Every link between two cities costs what the pair costs, as in compute(); the trace shows an active link over one on standby.
|
||||
const pw={};for(const l of live){const k=edgeKey(l);pw[k]=Math.min(pw[k]??Infinity,(l.km+60)*MET[pairMet(k)].f);}
|
||||
for(const l of live){if(!ok(l.a)||!ok(l.b))continue;const w=pw[edgeKey(l)]+(l.standby?1e-6:0);(adj[l.a]=adj[l.a]||[]).push([l.b,l,w]);(adj[l.b]=adj[l.b]||[]).push([l.a,l,w]);}
|
||||
const dist={[src]:0},prev={},done=new Set();for(;;){let u=null,ud=Infinity;for(const k in dist)if(!done.has(k)&&dist[k]<ud){u=k;ud=dist[k];}if(u===null)break;done.add(u);for(const [v,l,w] of adj[u]||[]){const nd=ud+w;if(nd<(dist[v]??Infinity)){dist[v]=nd;prev[v]=l;}}}
|
||||
const path=dst=>{if(dist[dst]===undefined)return null;const out=[];let v=dst;while(v!==src){const l=prev[v];out.unshift({l,from:l.a===v?l.b:l.a,to:v});v=l.a===v?l.b:l.a;}return out;};return {dist,path};}
|
||||
function trExits(net){const day=S.day,ev=S.ev,leak=ev.leak&&ev.leak.until>day?ev.leak.net:null,out=[];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
function newGame(name,home){
|
||||
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
|
||||
ltv:2,t1v:2,auV:1,seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},
|
||||
ltv:2,t1v:3,auV:1,seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},pairMet:{},
|
||||
done:{},inc:[],ev:{},priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,inbox:{items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0},hw:{}};
|
||||
}
|
||||
|
||||
|
|
|
|||
5
src/game/60-features/85-pitcairn.js
Normal file
5
src/game/60-features/85-pitcairn.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/* Pitcairn (#124): no cable lands there yet, but you may land your own, and the UK pays a monthly grant while the
|
||||
islanders are online through you: a POP with broadband, up and nearly fully served. */
|
||||
const GRANT_MO=300000;
|
||||
const grantOn=r=>!!(S&&S.pops.pcn&&S.pops.pcn.bb&&!(S.pops.pcn.down>S.day)&&sfOf(r,'pcn')>=0.9);
|
||||
function grantFact(c){if(c!=='pcn')return '';const on=grantOn(R);return `<span class="fact${on?' mine':''}">${on?tr('pitcairn.uk_grant_mo',{mo:fmt$(GRANT_MO)}):tr('pitcairn.uk_grant_mo_once_islanders',{mo:fmt$(GRANT_MO)})}</span>`;}
|
||||
|
|
@ -21,7 +21,7 @@ function ibxLog(m,a){const I=ibx();I.log.unshift({d:S.day,m,a:a||{}});I.log.leng
|
|||
function inboxDay(d){const I=ibx(),ixs=Object.keys(S.ixp);
|
||||
// new peering requests: more exchange ports, more mail
|
||||
if(ixs.length&&Math.random()<Math.min(0.9,0.15*ixs.length)*({open:1,selective:0.7,closed:0}[ppol()])){const c=pick(ixs),set=ixSessions(c);
|
||||
const real=ixMembers(c).filter(id=>{const n=NET[id];return !set.has(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006&&!I.items.some(x=>x.net===id&&x.ix===c);});
|
||||
const real=ixMembers(c).filter(id=>{const n=NET[id];return !set.has(id)&&!merged(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006&&!I.items.some(x=>x.net===id&&x.ix===c);});
|
||||
const it={id:++I.seq,k:'req',ix:c,day:d,stale:Math.random()<0.6,yrs:1+Math.floor(Math.random()*9),say:Math.floor(Math.random()*REQ_SAY.length)};
|
||||
if(real.length&&Math.random()<0.4)it.net=pick(real);else{it.nm=pick(TINY);it.asn=Math.random()<0.05?64512+Math.floor(Math.random()*1000):200000+Math.floor(Math.random()*200000);}
|
||||
I.items.push(it);if(ppol()==='open')ibxAnswer(it.id,'accept',true);}
|
||||
|
|
|
|||
12
src/game/70-rules/55-mergers.js
Normal file
12
src/game/70-rules/55-mergers.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* Mergers (#155): a year in, Spectre-um Cable finishes swallowing Coax; a year later Very-Zone does the same to Final
|
||||
Frontear. The old brand's PNIs move to the new owner and come under its terms (Very-Zone charges for peering), its IX
|
||||
sessions end, and it takes no new sessions. Its customers stay reachable through the new owner (its `up`). */
|
||||
const MERGERS=[{id:'cxc',into:'spc',day:365},{id:'ftr',into:'vzn',day:730}];
|
||||
const merged=id=>!!(S&&S.merged&&S.merged[id]);
|
||||
function mergerDay(d){for(const m of MERGERS){if(d<m.day||merged(m.id))continue;S.merged=S.merged||{};S.merged[m.id]=d;
|
||||
let moved=0,ended=0;
|
||||
for(const p of S.pni.slice()){if(p.net!==m.id)continue;moved++;
|
||||
if(S.pni.some(x=>x!==p&&x.net===m.into&&x.city===p.city))S.pni=S.pni.filter(x=>x!==p);else p.net=m.into;}
|
||||
for(const k in S.peers)if(k.startsWith(m.id+'@')){delete S.peers[k];ended++;}
|
||||
const v={net:esc(NET[m.into].name),old:esc(NET[m.id].name)};
|
||||
toast(tr('mergers.net_has_swallowed_old',v)+(moved?' '+trn('mergers.n_pni_moves_to_net',moved,v):'')+(ended?' '+trn('mergers.n_ix_session_ended',ended,v):'')+(moved&&NET[m.into].pol==='paid'&&!paidFree(NET[m.into])?' '+tr('mergers.net_charges_for_peering',v):''),moved||ended?'bad':'');}}
|
||||
|
|
@ -10,6 +10,7 @@ function snubWhy(sn){const d=Math.max(1,sn.until-S.day);return sn.why+' '+trn('s
|
|||
const paidFree=n=>!!(n&&n.freeLv&&lvl()>=n.freeLv);
|
||||
function peerOk(id,via,city){
|
||||
const n=NET[id],dem=R.demTo[id]||0;
|
||||
if(merged(id)){const m=MERGERS.find(x=>x.id===id);return {ok:false,why:tr('mergers.now_part_of_net',{net:esc(NET[m.into].name)})};}
|
||||
const sn=snub(id,city);if(sn&&(via==='ix'||sn.all))return {ok:false,snub:true,why:snubWhy(sn)};
|
||||
if(msfNope(id,city))return {ok:false,why:tr(MSF_NOPE[hstr(ixCity(city)+S.day)%MSF_NOPE.length])};
|
||||
if(via==='ix'&&city&&isRemote(city)&&noRemote(id))return {ok:false,remote:true,why:REMOTE_WHY[hstr(id)%REMOTE_WHY.length]};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ function hotPorts(){const out=[];if(!R||!S)return out;
|
|||
function hotByCity(){const m={};for(const h of hotPorts())(m[h.city]=m[h.city]||{})[h.k]=Math.max((m[h.city]||{})[h.k]||0,h.u);return m;}
|
||||
function isTier2(){return Object.keys(S.pops).length>=5&&Object.keys(S.ixp).length>=3&&R.sessions>=15;}
|
||||
// Sparkly Seabone joined the Tier 1s in 1.12. Older saves keep the five they were playing for.
|
||||
const t1Need=()=>NETS.filter(n=>n.type==='t1'&&(n.id!=='skl'||(S&&S.t1v>=2)));
|
||||
// Tier 1s added later only count for games started after them, so old saves keep their win (#155).
|
||||
const t1Need=()=>NETS.filter(n=>n.type==='t1'&&(n.id!=='skl'||(S&&S.t1v>=2))&&(n.id!=='att'||(S&&S.t1v>=3)));
|
||||
function isTier1(){return t1Need().every(n=>S.pni.some(p=>p.net===n.id&&pniOn(p)))&&S.transit.length===0&&R.reach>0.999;}
|
||||
// What you are now, not what you once were (#46): buying transit again or losing reach drops the label.
|
||||
function tierLabel(){return S.won&&isTier1()?'Tier 1':isTier2()?'Tier 2':'Tier 3';}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ function compute(){
|
|||
const remote=remoteCities(),adj=new Array(NC); pops.concat(remote).forEach(p=>adj[CIDX[p]]=[]);
|
||||
const edges={},TRX=teRules(),live=[];let NE=0;R2.bizDem={};R2.bizSrv={};
|
||||
for(const l of S.links){const ai=CIDX[l.a],bi=CIDX[l.b];if(linkDown(l)||!adj[ai]||!adj[bi])continue;live.push(l);const key=l.a<l.b?l.a+'|'+l.b:l.b+'|'+l.a;let e=edges[key];
|
||||
if(!e){e=edges[key]={id:key,a:l.a,b:l.b,ai,bi,i:NE++,km:l.km,cap:0,w:Infinity,lat:Infinity,links:[],res:0,ld:0,tr:null,pl:0};adj[ai].push([bi,e]);adj[bi].push([ai,e]);}e.cap+=capOf(l);e.links.push(l);e.w=Math.min(e.w,(l.km+60)*MET[l.metric||'normal'].f*(TRX&&TRX.avoid.has(key)?60:1));e.lat=Math.min(e.lat,linkLat(l));}
|
||||
// The metric belongs to the city pair; links on standby add capacity that fills only after the others (#122).
|
||||
if(!e){const f=MET[pairMet(key)].f;e=edges[key]={id:key,a:l.a,b:l.b,ai,bi,i:NE++,km:l.km,cap:0,scap:0,w:Infinity,lat:Infinity,slat:Infinity,links:[],res:0,ld:0,tr:null,pl:0,f:f*(TRX&&TRX.avoid.has(key)?60:1)};adj[ai].push([bi,e]);adj[bi].push([ai,e]);}
|
||||
const c=capOf(l),lt=linkLat(l);e.cap+=c;e.links.push(l);e.w=Math.min(e.w,(l.km+60)*e.f);if(l.standby){e.scap+=c;e.slat=Math.min(e.slat,lt);}else e.lat=Math.min(e.lat,lt);}
|
||||
for(const k in edges){const e=edges[k];if(e.lat===Infinity)e.lat=e.slat;}
|
||||
// Shortest paths from every POP: SPD[pop] the distance to each city index (Infinity: no path), SPP[pop] the edge it arrives by.
|
||||
// ALONE[i]: no other city lies within 1e-6 of POP i (so only its own exits can be at distance 0 from it).
|
||||
const SPD={},SPP={},SDi=[],SPi=[],ALONE=new Uint8Array(NC),wW=e=>e.w,wLat=e=>e.lat+0.05;
|
||||
|
|
@ -242,7 +245,8 @@ function compute(){
|
|||
Object.defineProperty(R2.ef,l.id,{enumerable:true,configurable:true,get(){if(!rec){rec={eg:{},net:{},dst:{}};for(const [k,v] of t.g)rec.eg[k]=v;
|
||||
for(const j of t.n)rec.net[j<NN?NETS[j].id:j===NN?'junk':'l2vpn']=ACN[i*NKN+j];for(const ci of t.d)rec.dst[CITIES[ci].id]=ACD[i*NC+ci];}return rec;}});}
|
||||
Object.defineProperty(R2,'efg',{value:efg});}
|
||||
for(const k in edges){const e=edges[k],ld=e.ld||0;for(const l of e.links)R2.load[l.id]=ld*capOf(l)/e.cap;}
|
||||
// Active links fill first, by capacity; standby links take what is left over.
|
||||
for(const k in edges){const e=edges[k],ld=e.ld||0,ac=e.cap-e.scap,a=Math.min(ld,ac),sp=ld-a;for(const l of e.links){const c=capOf(l);R2.load[l.id]=l.standby?(e.scap>0?sp*c/e.scap:0):(ac>0?a*c/ac:0);}}
|
||||
R2.peerShare=R2.served>0?R2.peered/R2.served:0;
|
||||
for(const e of E){if(e.k==='t')R2.useT[e.id]=(R2.useT[e.id]||0)+e.used;else if(e.k==='ix')R2.useIx[e.id]=e.used;else if(e.k==='p')R2.usePni[e.id]=e.used;else R2.useCache[e.id]=e.used;}
|
||||
// money
|
||||
|
|
@ -257,12 +261,12 @@ function compute(){
|
|||
C.caches=S.caches.length*CACHE_MO;
|
||||
C.loans=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity?0:l.model==='transit'?Math.round((C.transit||0)*(l.cut||0.3)):l.pay)+loanFees(l),0);
|
||||
C.extras=(S.cnLic&&S.cnLic.state==='ok'?CN_JV_MO:0)+scrubMo()+Object.keys(S.pops).filter(ruCity).length*RU_BOX_MO+Object.values(S.pops).filter(p=>p.site2).length*SITE2_MO+(S.te?TE_MO:0)+(S.inbox&&S.inbox.bot?AI_MO:0);
|
||||
V.eyeballs=0;V.business=0;V.ix=0;
|
||||
V.eyeballs=0;V.business=0;V.ix=0;V.grant=grantOn(R2)?GRANT_MO:0;
|
||||
C.wholesale=0;C.levy=0;const lev=scnRule('levy');for(const c in S.pops){const sf=sfOf(R2,c),v=R2.cityEye[c]*sf*EYE_RATE*(CITY[c].arpu||1);V.eyeballs+=v;if(CITY[c].au){if(lev)C.levy+=v*AU_LEVY;else C.wholesale+=v*AU_WHOLESALE;}}
|
||||
const ids=linkIds();for(const b of S.biz){if(capPend(b))continue;const sf=BIZ_T[b.type].fiber?(fiberOk(b,ids)?1:0):BIZ_T[b.type].l2?clamp((R2.l2[b.id]||0)/b.bw,0,1):sfOf(R2,b.city);V.business+=b.bw*b.rate*Math.min(1,sf/0.95);}
|
||||
for(const c in S.myIx)V.ix+=S.myIx[c].members.length*MYIX_FEE;
|
||||
C.revshare=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity||l.bal>0?l.share||0:0),0)*(V.eyeballs+V.business+V.ix);
|
||||
R2.costMo=Object.values(C).reduce((a,b)=>a+b,0);
|
||||
R2.revMo=V.eyeballs+V.business+V.ix;
|
||||
R2.revMo=V.eyeballs+V.business+V.ix+V.grant;
|
||||
R=R2;UI.hotMap=hotByCity();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ const num=(v,d=0)=>{v=+v;return Number.isFinite(v)?v:d;},int=(v,lo,hi,d)=>{v=Mat
|
|||
function sanitize(s){
|
||||
const arr=k=>{if(!Array.isArray(s[k]))s[k]=[];},obj=k=>{if(!s[k]||typeof s[k]!=='object'||Array.isArray(s[k]))s[k]={};};
|
||||
['links','nni','transit','pni','caches','biz','offers','inc','usedNames','loans','loanOffers','hist','log'].forEach(arr);
|
||||
['pops','ixp','rs','peers','myIx','done','ev','stats','ixn','ixPref','ixSite','confReg','ach'].forEach(obj);
|
||||
['pops','ixp','rs','peers','myIx','done','ev','stats','ixn','ixPref','ixSite','confReg','ach','pairMet'].forEach(obj);
|
||||
s.v=1;s.name=String(s.name==null?'Packet Pals':s.name).slice(0,24);s.day=int(s.day,0,1e7,0);s.cash=num(s.cash,0);s.asn=int(s.asn,1,4294967294,200000);
|
||||
s.priceMul=num(s.priceMul,1);s.nextFail=num(s.nextFail,s.day+45);s.nextEvent=num(s.nextEvent,s.day+40);s.lvl=int(s.lvl,1,LEVELS.length,1);s.neg=int(s.neg,0,1e7,0);s.loanStrikes=int(s.loanStrikes,0,1e3,0);
|
||||
for(const k of Object.keys(s.stats)){const v=s.stats[k];if(k==='by'||k==='f'){if(!v||typeof v!=='object')s.stats[k]={};else for(const j of Object.keys(v))v[j]=num(v[j],0);}else if(typeof v!=='boolean')s.stats[k]=num(v,0);}
|
||||
|
|
@ -14,8 +14,13 @@ function sanitize(s){
|
|||
for(const c of Object.keys(s.pops)){const p=s.pops[c];if(!isCity(c)||!p||typeof p!=='object'){delete s.pops[c];continue;}p.routers=int(p.routers,1,RMAX,1);if(p.rupDay!==undefined)p.rupDay=num(p.rupDay,-1);if(p.rgen!==undefined)p.rgen=int(p.rgen,0,RG.length-1,0);p.down=num(p.down,0);if(p.bb&&typeof p.bb==='object')p.bb.d=num(p.bb.d,0);else p.bb=null;}
|
||||
if(!isCity(s.home))s.home=Object.keys(s.pops)[0]||'fra';
|
||||
const tier=v=>int(v,0,PORT.length-1,0),lag=v=>int(v,1,LAG_MAX,1),sid=v=>String(v==null?uid():v).slice(0,40);
|
||||
s.links=s.links.filter(l=>l&&isCity(l.a)&&isCity(l.b)&&l.a!==l.b).map(l=>{l.id=sid(l.id);l.km=num(l.km,kmBetween(l.a,l.b));l.mo=num(l.mo,0);l.cut=num(l.cut,0);if(l.pairs!==undefined)l.pairs=Math.min(l.sub?SUB_PAIRS_MAX:s.lvl>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,Math.max(1,Math.floor(+l.pairs)||1));if(l.kind!=='df'&&l.kind!=='vxc')l.kind='wave';if(l.kind==='wave')l.tier=int(l.tier,0,LT.length-1,0);if(l.cable&&!own(CAB,l.cable))l.cable=null;if(l.kind==='vxc'&&!own(VXC,l.vt))l.vt=0;if(l.kind==='df'){if(!own(DF_SYS,l.sys))l.sys='lite';l.ch=Array.isArray(l.ch)?l.ch.filter(o=>own(OPT,o)):[];l.ready=num(l.ready,0);for(const k of Object.keys(SUB_UPGRADES)){const f='sub'+k;if(l[f]!==undefined){if(l.own&&l.sub&&Number.isFinite(l[f])&&l[f]>=0)l[f]=Math.round(l[f]);else delete l[f];}}if(l.seaPath!==undefined){if(l.own&&l.sub&&Array.isArray(l.seaPath)&&l.seaPath.length>=2&&l.seaPath.length<=2048&&l.seaPath.every(p=>Array.isArray(p)&&p.length===2&&p.every(Number.isFinite)&&Math.abs(p[0])<=180&&Math.abs(p[1])<=90))l.seaPath=l.seaPath.map(p=>p.slice());else delete l.seaPath;}if(l.paid!==undefined){if(l.own&&l.sub&&Number.isFinite(l.paid)&&l.paid>=0)l.paid=Math.round(l.paid);else delete l.paid;}if(l.own&&l.sub&&!own(SEA_DESIGNS,l.seaDesign))l.seaDesign='standard';l.regen=int(l.regen,0,REGEN_MAX,0);}const deg=v=>v&&typeof v==='object'?{until:num(v.until,0),f:Math.min(1,Math.max(0,num(v.f,1)))}:null;if(l.loss)l.loss=deg(l.loss);if(l.metric&&!own(MET,l.metric))l.metric='normal';return l;});
|
||||
s.links=s.links.filter(l=>l&&isCity(l.a)&&isCity(l.b)&&l.a!==l.b).map(l=>{l.id=sid(l.id);l.km=num(l.km,kmBetween(l.a,l.b));l.mo=num(l.mo,0);l.cut=num(l.cut,0);if(l.pairs!==undefined)l.pairs=Math.min(l.sub?SUB_PAIRS_MAX:s.lvl>=PAIRS_LV?PAIRS_BIG:PAIRS_MAX,Math.max(1,Math.floor(+l.pairs)||1));if(l.kind!=='df'&&l.kind!=='vxc')l.kind='wave';if(l.kind==='wave')l.tier=int(l.tier,0,LT.length-1,0);if(l.cable&&!own(CAB,l.cable))l.cable=null;if(l.kind==='vxc'&&!own(VXC,l.vt))l.vt=0;if(l.kind==='df'){if(!own(DF_SYS,l.sys))l.sys='lite';l.ch=Array.isArray(l.ch)?l.ch.filter(o=>own(OPT,o)):[];l.ready=num(l.ready,0);for(const k of Object.keys(SUB_UPGRADES)){const f='sub'+k;if(l[f]!==undefined){if(l.own&&l.sub&&Number.isFinite(l[f])&&l[f]>=0)l[f]=Math.round(l[f]);else delete l[f];}}if(l.seaPath!==undefined){if(l.own&&l.sub&&Array.isArray(l.seaPath)&&l.seaPath.length>=2&&l.seaPath.length<=2048&&l.seaPath.every(p=>Array.isArray(p)&&p.length===2&&p.every(Number.isFinite)&&Math.abs(p[0])<=180&&Math.abs(p[1])<=90))l.seaPath=l.seaPath.map(p=>p.slice());else delete l.seaPath;}if(l.paid!==undefined){if(l.own&&l.sub&&Number.isFinite(l.paid)&&l.paid>=0)l.paid=Math.round(l.paid);else delete l.paid;}if(l.own&&l.sub&&!own(SEA_DESIGNS,l.seaDesign))l.seaDesign='standard';l.regen=int(l.regen,0,REGEN_MAX,0);}const deg=v=>v&&typeof v==='object'?{until:num(v.until,0),f:Math.min(1,Math.max(0,num(v.f,1)))}:null;if(l.loss)l.loss=deg(l.loss);return l;});
|
||||
for(const l of s.links)repairSubUpgradeDates(l,s.day);
|
||||
/* Metrics moved from each link to its city pair (#122). Older saves routed a pair at the lowest metric of its
|
||||
links, with all of them carrying traffic, so the pair keeps that metric and nothing goes on standby. */
|
||||
{const pm=s.pairMet,lo={};for(const l of s.links){if(l.metric!==undefined){const k=edgeKey(l),m=own(MET,l.metric)?l.metric:'normal';if(!lo[k]||MET[m].f<MET[lo[k]].f)lo[k]=m;}if(l.standby!==true)delete l.standby;}
|
||||
for(const l of s.links){const k=edgeKey(l);if(lo[k]&&l.metric===undefined)lo[k]='normal';delete l.metric;}
|
||||
for(const k in lo)pm[k]=lo[k];const ks=new Set(s.links.map(edgeKey));for(const k of Object.keys(pm))if(!ks.has(k)||!own(MET,pm[k])||pm[k]==='normal')delete pm[k];}
|
||||
const degO=v=>v&&typeof v==='object'?{until:num(v.until,0),f:Math.min(1,Math.max(0,num(v.f,1)))}:null;
|
||||
s.transit=s.transit.filter(t=>t&&isCity(t.city)&&isNet(t.net)).map(t=>(t.lacp=degO(t.lacp),t.site=['a','b','ab'].includes(t.site)?t.site:'a',t.id=sid(t.id),t.tier=tier(t.tier),t.n=lag(t.n),t.down=num(t.down,0),t.clean=!!t.clean,t));
|
||||
s.pni=s.pni.filter(x=>x&&isCity(x.city)&&isNet(x.net)).map(x=>(x.lacp=degO(x.lacp),x.site=['a','b','ab'].includes(x.site)?x.site:'a',x.id=sid(x.id),x.tier=tier(x.tier),x.n=lag(x.n),x.sacrif=!!x.sacrif,x));
|
||||
|
|
@ -40,7 +45,7 @@ function sanitize(s){
|
|||
for(const c of Object.keys(s.myIx)){const m=s.myIx[c];if(!isCity(c)||!m||typeof m!=='object'){delete s.myIx[c];continue;}m.members=Array.isArray(m.members)?m.members.filter(isNet):[];m.name=String(m.name||tr('common.your_ix')).slice(0,40);m.next=num(m.next,s.day);m.fab=int(m.fab,0,MYIX_FAB.length-1,0);}
|
||||
const okBiz=b=>b&&own(BIZ_T,b.type)&&(!BIZ_T[b.type].nni||own(FAB,b.prov))&&isCity(b.city)&&(!b.city2||isCity(b.city2))&&(!b.sites||Array.isArray(b.sites)&&b.sites.every(isCity));
|
||||
const fixBiz=b=>{b.id=sid(b.id);b.name=String(b.name||tr('common.customer')).slice(0,80);b.bw=num(b.bw,1);b.rate=num(b.rate,0);if(b.fee!==undefined)b.fee=num(b.fee,0);if(b.start!==undefined)b.start=num(b.start,0);if(b.dur!==undefined)b.dur=num(b.dur,1);if(b.slots!==undefined)b.slots=num(b.slots,0);if(b.what!==undefined)b.what=String(b.what).slice(0,200);if(b.broker!==undefined)b.broker=!!b.broker;if(!Array.isArray(b.reqs))b.reqs=[];b.reqs=b.reqs.filter(r=>own(REQS,r));if(b.mood!==undefined)b.mood=num(b.mood,100);if(b.pm!==undefined)b.pm=num(b.pm,b.mood||100);if(b.exp!==undefined)b.exp=num(b.exp,0);if(b.latMax!=null)b.latMax=num(b.latMax,10);if(b.route&&!own(RT,b.route))b.route='normal';if(b.due!==undefined)b.due=num(b.due,0);if(b.win!==undefined)b.win=num(b.win,180);if(b.live!==undefined)b.live=!!b.live;if(b.link!==undefined&&typeof b.link!=='string')delete b.link;return b;};
|
||||
s.biz=s.biz.filter(okBiz).map(fixBiz);s.offers=s.offers.filter(okBiz).map(fixBiz);
|
||||
{const ids=new Map(s.links.map(l=>[l.id,l]));s.biz=s.biz.filter(okBiz).map(b=>unpackBiz(fixBiz(b),ids));}s.offers=s.offers.filter(okBiz).map(fixBiz);
|
||||
// Sponsorships and capacity conferences (#168): registrations are true or 'sp', the glow and the pending deals are checked.
|
||||
for(const k of Object.keys(s.confReg))s.confReg[k]=s.confReg[k]==='sp'?'sp':!!s.confReg[k];
|
||||
if(s.conf){const c=s.conf;if(typeof c!=='object'||!own(REG,c.reg))s.conf=null;else s.conf={until:num(c.until,0),reg:c.reg,name:String(c.name||'').slice(0,40),sp:!!c.sp};}
|
||||
|
|
@ -58,6 +63,7 @@ function sanitize(s){
|
|||
else{a.gbps=num(a.gbps,2);a.until=num(a.until,s.day);a.bh=!!a.bh;a.ixbh=!!a.ixbh;a.start=num(a.start,s.day);
|
||||
if(!a.entry||typeof a.entry!=='object')a.entry={k:'edge',lab:''};else{a.entry.lab=String(a.entry.lab||'').slice(0,60);a.entry.id=a.entry.id==null?undefined:String(a.entry.id).slice(0,40);}}}
|
||||
s.auV=s.auV===1?1:0;if(s.auNews!==true)delete s.auNews;
|
||||
if(s.merged){const o={};if(typeof s.merged==='object')for(const m of MERGERS)if(isFinite(s.merged[m.id]))o[m.id]=+s.merged[m.id];s.merged=Object.keys(o).length?o:undefined;}
|
||||
if(s.te){if(typeof s.te!=='object')s.te=null;else{s.te.on=!!s.te.on;s.te.script=typeof s.te.script==='string'?s.te.script.slice(0,4000):'';}}
|
||||
return s;}
|
||||
function migrate(s){sanitize(s);
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ function fireFailure(){
|
|||
const l=pick(lit),A=CITY[l.a].name,B=CITY[l.b].name,o=pick(l.ch),dur=l.spares?1:4;l.chFail={n:1,o,until:S.day+dur};
|
||||
addInc({type,ref:l.id,until:S.day+dur,msg:pick([tr('failures.a_optic_on_a_b_overheated',{optic:OPT[o].n,a:A,b:B}),tr('failures.the_laser_in_a_optic_on',{optic:OPT[o].n,a:A,b:B}),tr('failures.a_optic_on_a_b_started',{optic:OPT[o].n,a:A,b:B})])+(l.spares?' '+tr('failures.swapped_from_your_spares_kit_by'):''),cost:l.spares?0:OPT[o].cost,fix:tr('failures.buy_a_replacement')});
|
||||
}else if(type==='cut'){
|
||||
const mon=Math.floor((S.day%365)/30.42),monsoon=mon>=5&&mon<=8,tw=x=>x.sub&&(x.a==='tpe'||x.b==='tpe'||['clion','balt'].includes(x.cable)),vn=x=>x.sub&&(x.a==='sgn'||x.b==='sgn'),inl=x=>!x.sub&&(CITY[x.a].india||CITY[x.b].india);
|
||||
const mon=Math.floor((S.day%365)/30.42),monsoon=mon>=5&&mon<=8,tw=x=>x.sub&&(x.a==='tpe'||x.b==='tpe'||(x.cable&&CAB[x.cable].anchor)),vn=x=>x.sub&&(x.a==='sgn'||x.b==='sgn'),inl=x=>!x.sub&&(CITY[x.a].india||CITY[x.b].india);
|
||||
const l=pick(live.flatMap(x=>{const w=(x.cable&&CAB[x.cable].age==='old'?3:1)*(x.cable&&CAB[x.cable].fragile?3:1)*(tw(x)?4*(scnRule('anchors')?3:1):1)*(scnRule('sharks')&&x.sub?2:1)*(vn(x)?3:1)*(!x.sub&&andesPair(x.a,x.b)?4:1)*(monsoon&&inl(x)?3:1)*(x.sub&&(x.a==='oos'||x.b==='oos')?3:1);return Array(w).fill(x);})),dur=10+Math.floor(Math.random()*8),trc=l.trench||l.id,hit=S.links.filter(x=>(x.trench||x.id)===trc);hit.forEach(x=>x.cut=Math.max(x.cut||0,S.day+dur));
|
||||
const A=CITY[l.a].name,B=CITY[l.b].name,au=CITY[l.a].au&&CITY[l.b].au,auSummer=mon>=11||mon<=1;
|
||||
const en=l.sub&&(CITY[l.a].au||CITY[l.b].au)&&!(l.cable&&CAB[l.cable].fragile)&&Math.random()<0.35?pick([N_('failures.box_jellyfish_season_at_the_a'),N_('failures.a_great_white_took_an_interest')]):l.cable&&CAB[l.cable].fragile&&Math.random()<0.8?pick([N_('failures.your_a_b_cable_is_cut'),N_('failures.a_b_is_down_same_cable')]):!l.sub&&CITY[l.a].land==='nzs'&&CITY[l.b].land==='nzs'&&Math.random()<0.75?pick([N_('failures.a_kea_pulled_the_rubber_seals'),N_('failures.the_sandflies_drove_your_splicing'),N_('failures.a_farmer_s_post_hole_digger')]):l.cable==='cook'&&Math.random()<0.6?N_('failures.a_ferry_dropped_anchor_in_cook'):!l.sub&&au&&Math.random()<0.75?pick([N_('failures.a_sulphur_crested_cockatoo_chewed'),N_('failures.a_kangaroo_hit_the_fiber_hut'),N_('failures.thieves_dug_up_your_a_b'),N_('failures.a_kilometre_of_copper_went_missing'),N_('failures.a_backhoe_putting_in_a_new'),N_('failures.the_emus_won_again_a_mob'),N_('failures.a_kangaroo_boxed_your_field_tech'),N_('failures.a_drop_bear_fell_on_the'),N_('failures.an_eastern_brown_snake_moved_into'),...((S.day%365)/30.42>=8&&(S.day%365)/30.42<11?[N_('failures.magpie_swooping_season_the_field')]:[]),...(auSummer?[N_('failures.bushfire_season_the_fiber_along_a')]:[]),...(nullPair(l.a,l.b)?[N_('failures.your_a_b_fiber_broke_somewhere')]:[])]):l.sub&&(l.a==='bda'||l.b==='bda')&&Math.random()<0.7?pick([N_('failures.your_a_b_cable_went_quiet'),N_('failures.the_repair_ship_s_compass_spun')]):l.sub&&(l.a==='tbu'||l.b==='tbu')&&Math.random()<0.7?pick([N_('failures.an_undersea_volcano_erupted_next_to'),N_('failures.the_seabed_off_tonga_slid_down')]):vn(l)&&Math.random()<0.8?pick([N_('failures.another_of_vietnam_s_subsea_cables'),N_('failures.your_a_b_cable_broke_in')]):!l.sub&&(l.a==='drw'||l.b==='drw')&&Math.random()<0.7?pick([N_('failures.a_crocodile_took_a_bite_out'),N_('failures.termites_ate_the_duct_on_a')]):tw(l)&&Math.random()<0.8?pick([N_('failures.a_cargo_ship_forgot_to_raise'),N_('failures.another_anchor_another_cut_your_a'),N_('failures.a_fishing_boat_with_an_unusually')]):l.sub&&(l.a==='oos'||l.b==='oos')&&Math.random()<0.8?pick([N_('failures.a_trawler_off_ostend_dragged_its'),N_('failures.a_wind_farm_service_vessel_dropped')]):!l.sub&&(CITY[l.a].ca||CITY[l.b].ca)&&Math.random()<0.4?pick([N_('failures.a_beaver_chewed_through_your_a'),N_('failures.your_a_b_fiber_is_down'),N_('failures.frost_heave_cracked_the_duct_on')]):!l.sub&&andesPair(l.a,l.b)?pick([N_('failures.a_landslide_in_the_andes_buried'),N_('failures.snow_closed_the_mountain_pass_and'),N_('failures.an_earthquake_shook_your_a_b'),N_('failures.a_llama_herd_trampled_the_fiber')]):!l.sub&&(CITY[l.a].india||CITY[l.b].india)?pick([N_('failures.road_widening_near_a_cut_your'),N_('failures.the_monsoon_flooded_a_manhole_on'),N_('failures.a_digger_found_your_a_b')]):l.sub?pick([N_('failures.a_curious_shark_bit_your_subsea'),N_('failures.a_ship_dragged_its_anchor_across'),N_('failures.an_undersea_landslide_snapped_a_b')]):pick([N_('failures.a_backhoe_found_your_fiber_between'),N_('failures.squirrels_chewed_through_a_b_they'),N_('failures.road_works_cut_a_b_nobody')]);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ function dayTick(){
|
|||
if(!S||S.lost)return;
|
||||
S.day++;
|
||||
const d=S.day;
|
||||
dkTick(d);ixPriceWar(d);inboxDay(d);pniDay(d);
|
||||
dkTick(d);ixPriceWar(d);inboxDay(d);pniDay(d);mergerDay(d);
|
||||
if(!S.phpDone&&d>45&&Math.random()<1/400)elephant();
|
||||
if(R&&R.teMoved)S.stats.teMax=Math.max(S.stats.teMax||0,R.teMoved);
|
||||
{const t1=!!S.won&&isTier1();if(S.t1Now&&!t1)toast(tr('day_tick.you_are_no_longer_tier_1',{why:t1Why()}),'bad');S.t1Now=t1;}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Object.assign(ACT,{
|
|||
decomOpen:({city})=>{UI.decom=new Set(city&&S.pops[city]?[city]:[]);decomModal();},
|
||||
decomToggle:({city})=>{if(!S.pops[city])return;UI.decom=UI.decom||new Set();if(UI.decom.has(city))UI.decom.delete(city);else UI.decom.add(city);decomModal();},
|
||||
decomGo:()=>{const sel=[...(UI.decom||[])].filter(c=>S.pops[c]);if(!sel.length||sel.length>=Object.keys(S.pops).length)return;closeModal();UI.decom=null;UI.sel=null;decommission(sel);sfx('alert');after();},
|
||||
rmLink:({id})=>{if(UI.confirm!==id){UI.confirm=id;renderPanel();return;}{const l=S.links.find(x=>x.id===id),back=cabBack(l);if(back>0){S.cash+=back;toast(tr('links.name_is_called_off_the_cable',{name:esc(l.cname||tr('common.your_cable')),price:fmt$(back)}),'good');}}S.links=S.links.filter(l=>l.id!==id);UI.sel=null;UI.confirm=null;after();},
|
||||
rmLink:({id})=>{if(UI.confirm!==id){UI.confirm=id;renderPanel();return;}{const l=S.links.find(x=>x.id===id),back=cabBack(l);if(back>0){S.cash+=back;toast(tr('links.name_is_called_off_the_cable',{name:esc(l.cname||tr('common.your_cable')),price:fmt$(back)}),'good');}}S.links=S.links.filter(l=>l.id!==id);prunePairMet();UI.sel=null;UI.confirm=null;after();},
|
||||
fixInc:({id})=>{const i=S.inc.find(x=>x.id===id);if(!i||!(i.cost>0))return;if(i.slow&&i.rushed)return;if(!spend(i.cost))return;
|
||||
if(i.slow&&i.until>S.day+1){i.rushed=true;i.cost=0;i.until=S.day+1;const p=S.pops[i.ref];if(p)p.down=Math.min(p.down,S.day+1);toast(tr('links.power_cycled_the_router_in_city',{city:esc(CITY[i.ref].name),chip:esc(RG[(p&&p.rgen)||0].chip)}),'good');after();return;}clearInc(i);toast(tr('links.fixed_what_resolved_early',{what:incTitle(i.type)}),'good');after();},
|
||||
myIxUp:({city})=>{const m=S.myIx[city];if(!m)return;const f=(m.fab|0)+1,N=MYIX_FAB[f];if(!N)return;if(N.lvl>lvl()){toast(tr('links.a_fab_fabric_unlocks_at_customer',{fab:N.n,lv:N.lvl}),'bad');sfx('err');return;}if(!spend(N.cost))return;m.fab=f;toast(tr('links.ix_now_runs_a_fab_fabric',{ix:esc(m.name),fab:N.n,max:N.max}),'good');m.next=Math.min(m.next,S.day+3);after();},
|
||||
|
|
@ -26,8 +26,9 @@ Object.assign(ACT,{
|
|||
const km=kmBetween(a,b),sub=isSub(a,b),mo=vxcMo(km,sub,t);if(!spend(mo))return;S.links.push({id:uid(),a,b,kind:'vxc',prov,vt:t,km,sub,mo,cut:0,day:S.day});closeModal();
|
||||
toast(tr('links.circuit_up_in_59_seconds_vxc',{vxc:VXC[t].n,fab:esc(FAB[prov].name),a:CITY[a].name,b:CITY[b].name})+(S.pops[b]?'':' '+tr('links.now_grab_an_ix_port_there')),'good');if(!S.pops[b])selectCity(b);after();},
|
||||
upVxc:({id,t})=>{t=+t;const l=S.links.find(x=>x.id===id);if(!l||l.kind!=='vxc'||!VXC[t]||t<=l.vt)return;const extra=VXC[t].g-VXC[l.vt].g;for(const c of [l.a,l.b]){const pt=nniPort(c,l.prov);if(pt&&nniUsed(c,l.prov)+extra>NNI[pt.tier].g){toast(tr('links.fabric_port_in_city_is_full',{city:CITY[c].name}),'bad');sfx('err');return;}}const mo=vxcMo(l.km,l.sub,t);if(!spend(mo))return;l.vt=t;l.mo=mo;after();},
|
||||
cancelVxc:({id})=>{if(UI.confirm!==id){UI.confirm=id;renderPanel();return;}S.links=S.links.filter(l=>l.id!==id);const rem=remoteCities();for(const c in S.ixp){if(!S.pops[ixCity(c)]&&!rem.includes(ixCity(c))){delete S.ixp[c];delete S.rs[c];for(const k in S.peers)if(k.endsWith('@'+c))delete S.peers[k];}}UI.sel=null;UI.confirm=null;after();},
|
||||
cancelVxc:({id})=>{if(UI.confirm!==id){UI.confirm=id;renderPanel();return;}S.links=S.links.filter(l=>l.id!==id);prunePairMet();const rem=remoteCities();for(const c in S.ixp){if(!S.pops[ixCity(c)]&&!rem.includes(ixCity(c))){delete S.ixp[c];delete S.rs[c];for(const k in S.peers)if(k.endsWith('@'+c))delete S.peers[k];}}UI.sel=null;UI.confirm=null;after();},
|
||||
setPref:({kind,id,v})=>{if(!own(PREF,v))return;if(kind!=='t'&&kind!=='p'&&!(isIx(id)&&S.ixp[id]!==undefined))return;if(kind==='t'){const t=S.transit.find(x=>x.id===id);if(t)t.pref=v;}else if(kind==='p'){const x=S.pni.find(y=>y.id===id);if(x)x.pref=v;}else{S.ixPref=S.ixPref||{};S.ixPref[id]=v;}sfx('click');after();},
|
||||
setMetric:({id,v})=>{if(!own(MET,v))return;const l=S.links.find(x=>x.id===id);if(!l)return;for(const x of pairLinks(l.a,l.b))x.metric=v;sfx('click');after();},
|
||||
setMetric:({id,v})=>{if(!own(MET,v))return;const l=S.links.find(x=>x.id===id);if(!l)return;const m=S.pairMet||(S.pairMet={}),k=edgeKey(l);if(v==='normal')delete m[k];else m[k]=v;sfx('click');after();},
|
||||
setStandby:({id,on})=>{const l=S.links.find(x=>x.id===id);if(!l)return;if(on)l.standby=true;else delete l.standby;sfx('click');after();},
|
||||
goEgress:({city,k})=>{ACT.focusCity({city});UI.tab=k==='t'?'up':k==='l2'?'cust':k==='nni'?'links':'peer';renderPanel();},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
Object.assign(ACT,{
|
||||
randomName:()=>{const input=$('nmIn');if(input)input.value=UI.nm=randomNetworkName(input.value);},
|
||||
start:()=>{const nm=(($('nmIn')&&$('nmIn').value)||randomNetworkName()).slice(0,24);beginGame(nm,UI.startCity,{mode:UI.mode==='sandbox'?'sandbox':'normal'});},
|
||||
start:()=>{const nm=(($('nmIn')&&$('nmIn').value)||randomNetworkName()).slice(0,24);beginGame(nm,homeOk(UI.startCity)?UI.startCity:'fra',{mode:UI.mode==='sandbox'?'sandbox':'normal'});},
|
||||
modeSet:({m})=>{UI.mode=m;document.querySelectorAll('.modeb').forEach(b=>b.classList.toggle('pink',b.dataset.m===m));document.querySelectorAll('.modeb').forEach(b=>b.classList.toggle('ghost',b.dataset.m!==m));},
|
||||
scenarios:()=>{UI.nm=(($('nmIn')&&$('nmIn').value)||UI.nm||(S&&S.name)||randomNetworkName()).slice(0,24);scenarioModal();},
|
||||
startScn:({id,sure})=>{const sc=SCN.find(x=>x.id===id);if(!sc)return;if(!sure&&S&&UI.started&&!S.lost&&!(S.scn&&(S.scn.done||S.scn.failed))){openModal(`<h2 style="font-size:26px">${tr('game_and_settings.start_name',{name:esc(sc.n)})}</h2><p class="tagline">${tr('game_and_settings.name_will_be_replaced_export_it',{name:esc(S.name)})}</p><div class="btns">${btn(tr('game_and_settings.start_the_scenario'),'startScn',{id,sure:1},'pink big')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost big')}</div>`);return;}beginGame(UI.nm||(S&&S.name)||randomNetworkName(),sc.city,{scn:sc});},
|
||||
startWeekly:({sure}={})=>{if(!sure&&S&&UI.started&&!S.lost&&!(S.scn&&(S.scn.done||S.scn.failed))){openModal(`<h2 style="font-size:26px">${tr('game_and_settings.start_the_weekly_challenge')}</h2><p class="tagline">${tr('game_and_settings.name_will_be_replaced_export_it',{name:esc(S.name)})}</p><div class="btns">${btn(tr('game_and_settings.start_the_challenge'),'startWeekly',{sure:1},'pink big')}${btn(tr('common.keep_playing'),'closeModal',{},'ghost big')}</div>`);return;}const wk=weekly();beginGame(UI.nm||(S&&S.name)||randomNetworkName(),wk.city,{scn:wk,seed:wk.seed});},
|
||||
pickStart:({city})=>{UI.startCity=city;document.querySelectorAll('.start').forEach(b=>b.classList.toggle('on',b.dataset.city===city));},
|
||||
pickStart:({city})=>{if(!homeOk(city))return;UI.startCity=city;document.querySelectorAll('.start').forEach(b=>b.classList.toggle('on',b.dataset.city===city||(b.classList.contains('own')&&!START5.includes(city))));const s=$('homeSel');if(s&&START5.includes(city))s.value='';const w=$('homeWhat');if(w)w.innerHTML=homeWhat();},
|
||||
pickHome:({v})=>{if(v)ACT.pickStart({city:v});else ACT.pickStart({city:'fra'});},
|
||||
cont:()=>{migrate(S);track('game_continue',true);UI.started=true;closeModal();renderAll();},
|
||||
newgame:()=>{try{localStorage.removeItem('sot-save-v1');}catch(e){}S=null;UI.started=false;UI.sel=null;UI.nm=null;$('dash').hidden=true;$('bankBox').hidden=true;renderAll();showTitle();},
|
||||
keepPlaying:()=>{closeModal();},
|
||||
|
|
@ -13,10 +14,10 @@ Object.assign(ACT,{
|
|||
importPick:()=>{let f=$('importIn');if(!f){f=document.createElement('input');f.type='file';f.accept='.json,application/json';f.id='importIn';f.hidden=true;document.body.appendChild(f);f.addEventListener('change',()=>{importFile(f.files[0]);f.value='';});}f.click();},
|
||||
importGo:()=>{const s0=UI.importing;if(!s0)return;UI.importing=null;const prev=S;try{S=migrate(JSON.parse(JSON.stringify(s0)));compute();checkGoals();renderAll();}catch(e){S=prev;if(S)compute();renderAll();toast(tr('game_and_settings.import_failed_that_save_is_damaged'),'bad');sfx('err');return;}UI.confirm=null;$('bankBox').hidden=true;$('dash').hidden=true;UI.started=true;UI.sel=null;UI.speed=S.uiSpeed===undefined?1:S.uiSpeed;if(S.cam&&isFinite(S.cam.x))Object.assign(cam,S.cam);else{const h=CITY[S.home];if(h){cam.x=h.x;cam.y=h.y;}}closeModal();$('modal').hidden=true;compute();renderAll();save();toast(tr('game_and_settings.welcome_back_name_imported_and_saved',{name:esc(S.name)}),'good');sfx('coin');track('game_import');},
|
||||
menu:()=>{if(!S||!UI.started){showTitle();return;}openModal(`<div style="display:flex;align-items:center"><div><div class="eyebrow">AS${S.asn} · ${esc(dateStr(S.day))} · ${tierLabel()}</div><h2 style="font-size:28px">${esc(S.name)}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>
|
||||
<p class="tagline">${tr('game_and_settings.your_game_saves_itself_every_few')}</p>${isPhone()?installRow():''}
|
||||
${saveFailing()?`<p class="why">${saveFailMsg()}</p>`:`<p class="tagline">${tr('game_and_settings.your_game_saves_itself_every_few')}</p>`}${isPhone()?installRow():''}
|
||||
<div class="menu-list">
|
||||
${btn(tr('common.back_to_the_map'),'closeModal',{},'pink big')}
|
||||
${btn(tr('game_and_settings.export_save_download_a_file'),'exportSave',{},'')}
|
||||
${btn(tr('game_and_settings.export_save_download_a_file'),'exportSave',{},saveFailing()?'pink':'')}
|
||||
${btn(tr('game_and_settings.import_a_save_from_a_file'),'importPick',{},'')}
|
||||
${btn(tr('game_and_settings.share_your_network_image_card'),'share',{},'')}
|
||||
${btn(tr('game_and_settings.scenarios_amp_weekly_challenge'),'scenarios',{},'ghost')}
|
||||
|
|
@ -24,7 +25,7 @@ Object.assign(ACT,{
|
|||
${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}
|
||||
${btn(tr('common.settings'),'settings',{},'ghost')}
|
||||
${btn(tr('common.start_a_new_network'),'resetAsk',{},'red')}
|
||||
</div>${chatHtml()}`);},
|
||||
</div>${chatHtml()}${issueHtml()}`);},
|
||||
settings:()=>{UI.setOpen=true;openModal(settingsHtml());},
|
||||
settingsClose:()=>{UI.setOpen=false;if(!S||!UI.started)showTitle();else closeModal();},
|
||||
prefSet:({v})=>{const [k,b]=String(v).split(':');if(!own(PREF_DEF,k))return;setPref(k,b==='1');sfx('click');refreshSettings();},
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ function landTrenches(a,b){const out=[];for(const l of pairLinks(a,b)){if(l.kind
|
|||
// Which route a new wave joins: null = a new diverse route. 'same' is the old two-way choice (the main route).
|
||||
function routeJoin(a,b){const ts=landTrenches(a,b),r=UI.route||'';if(r==='same')return ts[0]||null;if(r.startsWith('t:'))return ts.find(t=>t.k===r.slice(2))||null;return null;}
|
||||
function pairLinks(a,b){return S.links.filter(l=>(l.a===a&&l.b===b)||(l.a===b&&l.b===a));}
|
||||
// A city pair's metric goes with its last link, so a new link between the same cities starts on normal.
|
||||
function prunePairMet(){const m=S.pairMet;if(!m)return;const k=new Set(S.links.map(edgeKey));for(const x of Object.keys(m))if(!k.has(x))delete m[x];}
|
||||
// Short, busy subsea routes (London–Amsterdam, London–Paris) sell dark fiber pairs too.
|
||||
function subDfCable(a,b){return cablesOk(a,b).filter(c=>CAB[c.cid].df).sort((x,y)=>x.km-y.km)[0]||null;}
|
||||
function dfAllowed(a,b){if(isSub(a,b))return !!subDfCable(a,b);return cnCity(a)===cnCity(b)&&!uaePair(a,b)&&!landX(a,b);}
|
||||
|
|
|
|||
|
|
@ -4,16 +4,55 @@
|
|||
again (1 minute, then 2, 4, at most 5); leaving the page, exporting or another game (a new S) still try at once. */
|
||||
function save(force){if(!S||S.lost)return;S.uiSpeed=UI.speed;S.cam={x:cam.x,y:cam.y,z:cam.z};const f=UI.saveFail;
|
||||
if(!force&&f&&f.s===S&&performance.now()-f.at<f.wait){UI.lastSave=performance.now();return;}
|
||||
try{localStorage.setItem('sot-save-v1',JSON.stringify(S));UI.saveFail=null;}
|
||||
catch(e){UI.saveFail={s:S,at:performance.now(),wait:f&&f.s===S?Math.min(300000,f.wait*2):60000};}
|
||||
const txt=JSON.stringify(packSave(S));
|
||||
const seq=UI.saveSeq=(UI.saveSeq||0)+1;
|
||||
if(txt.length>=GZ_MIN&&gzOk())gzSave(S,txt,seq);
|
||||
else try{localStorage.setItem('sot-save-v1',txt);UI.saveFail=null;}catch(e){saveErr(e,S);}
|
||||
UI.lastSave=performance.now();}
|
||||
function saveErr(e,s){const f=UI.saveFail,again=f&&f.s===s;UI.saveFail={s,at:performance.now(),wait:again?Math.min(300000,f.wait*2):60000,full:saveFull(e)};
|
||||
// Say so once per game (#176): a save that silently fails loses everything since the last one that worked.
|
||||
if(!again&&s===S)toast(saveFailMsg(),'bad',[{l:tr('common.export_save'),act:'exportSave',args:{}}]);}
|
||||
/* Saves of huge networks are gzipped by the browser (#176): about ten times smaller, so they fit in its storage.
|
||||
Compressing runs in the background, one at a time, and the newest save wins; one that a newer save or another
|
||||
game has overtaken meanwhile is dropped. Small saves stay plain JSON, written at once, as before. */
|
||||
const GZ='gz:',GZ_MIN=1e6,gzOk=()=>typeof CompressionStream==='function'&&typeof DecompressionStream==='function';
|
||||
async function gzPipe(bytes,stream){const w=stream.writable.getWriter(),no=()=>{};w.write(bytes).catch(no);w.close().catch(no);// a bad stream is reported by read() below
|
||||
const r=stream.readable.getReader(),parts=[];let n=0;
|
||||
for(;;){const {done,value}=await r.read();if(done)break;parts.push(value);n+=value.length;}
|
||||
const out=new Uint8Array(n);let o=0;for(const p of parts){out.set(p,o);o+=p.length;}return out;}
|
||||
const b64=u=>{let s='';for(let i=0;i<u.length;i+=0x8000)s+=String.fromCharCode.apply(null,u.subarray(i,i+0x8000));return btoa(s);};
|
||||
const unb64=t=>{const s=atob(t),u=new Uint8Array(s.length);for(let i=0;i<s.length;i++)u[i]=s.charCodeAt(i);return u;};
|
||||
const gzip=async txt=>GZ+b64(await gzPipe(new TextEncoder().encode(txt),new CompressionStream('gzip')));
|
||||
const gunzip=async raw=>new TextDecoder().decode(await gzPipe(unb64(raw.slice(GZ.length)),new DecompressionStream('gzip')));
|
||||
function gzSave(s,txt,seq){if(UI.gzBusy){UI.gzNext={s,txt,seq};return;}UI.gzBusy=true;
|
||||
gzip(txt).then(v=>{if(s!==S||seq!==UI.saveSeq)return;try{localStorage.setItem('sot-save-v1',v);UI.saveFail=null;}catch(e){saveErr(e,s);}})
|
||||
.catch(e=>{console.error('[tubes] compressing the save failed',e);})
|
||||
.finally(()=>{UI.gzBusy=false;const n=UI.gzNext;UI.gzNext=null;if(n&&n.s===S)gzSave(n.s,n.txt,n.seq);});}
|
||||
// A compressed save is unpacked before the game boots, so loadSave() stays synchronous for everything else.
|
||||
async function gzBoot(go){let raw=null;try{raw=localStorage.getItem('sot-save-v1');}catch(e){}
|
||||
if(raw&&raw.startsWith(GZ)){try{UI.gzRaw=raw;UI.gzText=await gunzip(raw);}catch(e){console.error('[tubes] unpacking the save failed',e);UI.gzRaw=UI.gzText=null;
|
||||
try{localStorage.setItem('sot-save-broken',raw);localStorage.removeItem('sot-save-v1');}catch(e2){}UI.gzBroken=true;}}
|
||||
go();}
|
||||
/* Big networks are mostly customers, and most of a customer record was defaults (#176): no second city, no
|
||||
requirements, the normal route, no warnings yet. The save leaves defaults out and sanitize() puts them back, so
|
||||
the game after loading is the same; older versions read a missing field as its default too. An alien wave's
|
||||
description is rebuilt from its fiber. */
|
||||
const BIZ_DEF={city2:null,latMax:null,route:'normal',sites:null,slots:0,warned:false,warn60:false};
|
||||
function packBiz(b){const o={};for(const k in b){const v=b[k];if(v===undefined||BIZ_DEF[k]===v||(k==='reqs'&&Array.isArray(v)&&!v.length)||(k==='pm'&&v===b.mood)||(k==='what'&&b.type==='wwave'&&b.link))continue;o[k]=v;}return o;}
|
||||
function unpackBiz(b,links){for(const k in BIZ_DEF)if(!(k in b))b[k]=BIZ_DEF[k];if(!('pm' in b)&&b.mood!==undefined)b.pm=b.mood;if(!Array.isArray(b.reqs))b.reqs=[];
|
||||
if(b.type==='wwave'&&b.what===undefined){const l=links.get(b.link);b.what=l?wwWhat(l,b.slots||1):'';}return b;}
|
||||
const packSave=s=>({...s,biz:s.biz.map(packBiz)});
|
||||
// Out of room (quota) or not allowed to store at all (private window, blocked site data): different advice.
|
||||
const saveFull=e=>!!e&&(e.name==='QuotaExceededError'||e.name==='NS_ERROR_DOM_QUOTA_REACHED'||e.code===22||e.code===1014);
|
||||
const saveFailing=()=>!!(UI.saveFail&&UI.saveFail.s===S);
|
||||
const saveFailMsg=()=>UI.saveFail&&UI.saveFail.full?tr('save.your_network_is_too_big_to'):tr('save.this_browser_is_not_letting_the');
|
||||
// Save whenever the player might be leaving: tab hidden, page closing or reloading.
|
||||
addEventListener('pagehide',()=>save(true));
|
||||
document.addEventListener('visibilitychange',()=>{if(document.visibilityState==='hidden')save(true);else checkUpdate();});
|
||||
/* Export / import: move a network to another device or keep a backup. The file is the same
|
||||
object the autosave writes, wrapped with a little metadata. */
|
||||
function saveFileName(){const d=new Date().toISOString().slice(0,10),n=(S&&S.name||'network').toLowerCase().replace(/[^a-z0-9]+/g,'-').replace(/^-|-$/g,'')||'network';return `series-of-tubes-${n}-${d}.json`;}
|
||||
function exportSave(){if(!S)return;save(true);const blob=new Blob([JSON.stringify({app:'series-of-tubes',version:APP_VERSION,exported:new Date().toISOString(),S},null,1)],{type:'application/json'});
|
||||
function exportSave(){if(!S)return;save(true);const blob=new Blob([JSON.stringify({app:'series-of-tubes',version:APP_VERSION,exported:new Date().toISOString(),S:packSave(S)},null,1)],{type:'application/json'});
|
||||
const a=document.createElement('a');a.href=URL.createObjectURL(blob);a.download=saveFileName();document.body.appendChild(a);a.click();setTimeout(()=>{URL.revokeObjectURL(a.href);a.remove();},1000);
|
||||
toast(tr('save.save_exported_file_is_in_your',{file:esc(saveFileName())}),'good');}
|
||||
function parseSave(txt){if(typeof txt!=='string')return {err:tr('save.that_file_is_not_valid_json')};let j;try{j=JSON.parse(txt);}catch(e){return {err:tr('save.that_file_is_not_valid_json')};}
|
||||
|
|
@ -26,5 +65,5 @@ function importFile(file){if(!file)return;if(file.size>8e6){toast(tr('save.that_
|
|||
const rd=new FileReader();rd.onload=()=>{const r=parseSave(String(rd.result));if(r.err){toast(tr('save.import_failed_err',{err:esc(r.err)}),'bad');sfx('err');return;}
|
||||
UI.importing=r.s;openModal(`<div class="eyebrow">${tr('common.import_a_save')}</div><h2 style="font-size:26px">${tr('save.load_name',{name:esc(r.name)})}</h2><p class="tagline">${esc(dateStr(r.s.day))} · ${tr('save.cash_in_the_bank',{cash:fmt$(r.s.cash)})} · ${trn('save.n_pop',Object.keys(r.s.pops).length)} · ${tr('save.saved_by_v_ver',{ver:esc(r.ver)})}</p>${S&&UI.started&&!S.lost?`<p class="note" style="color:var(--bad)">${tr('save.this_replaces_name_export_it_first',{name:esc(S.name)})}</p>`:''}<div class="btns">${btn(tr('save.load_this_network'),'importGo',{},'pink big')}${btn(tr('common.cancel'),UI.started?'closeModal':'helpClose',{},'ghost big')}</div>`);};
|
||||
rd.readAsText(file);}
|
||||
function loadSave(){try{const t=localStorage.getItem('sot-save-v1');if(t){const s=JSON.parse(t);if(s&&s.v===1&&!s.lost)return s;}}catch(e){}return null;}
|
||||
function loadSave(){try{let t=localStorage.getItem('sot-save-v1');if(t&&t.startsWith(GZ))t=t===UI.gzRaw?UI.gzText:null;if(t){const s=JSON.parse(t);if(s&&s.v===1&&!s.lost)return s;}}catch(e){}return null;}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
function cityPanel(c){
|
||||
const C=CITY[c],p=S.pops[c],ix=ixName(c),down=p&&p.down>S.day;
|
||||
let h=`<div class="ph"><div style="min-width:0"><div class="eyebrow">${REG[C.reg]} · ${esc(siteName(c,'a'))}</div><h2>${C.name}</h2>
|
||||
<div class="facts"><span class="fact">${tr('city_panel.g_of_eyeballs',{g:fmtG(eyeP(c))})}</span>${latSlow(c)?`<span class="fact bad">🐢 ${tr('city_panel.ms_ms_to_transit',{ms:Math.round(R.latFar[c].ms)})}</span>`:''}${regionMult(c)>1?`<span class="fact">${tr('city_panel.transit_x_pricier',{x:regionMult(c)})}</span>`:''}${C.reg==='AS'&&!C.cn?'<span class="fact ixf">'+tr('city_panel.underserved_users_grow_60_faster')+'</span>':''}${ix?`<span class="fact ixf">${tr('city_panel.ix_ix',{ix:esc(ix)})}</span>`:''}${p?`<span class="fact mine">${tr('common.your_pop')}</span><button class="fact trb" data-act="trace" data-args='{"city":"${c}"}'>🔍 ${tr('common.traceroute')}</button>`:''}${down?`<span class="fact down">DOWN</span>`:''}</div></div>
|
||||
<div class="facts"><span class="fact">${tr('city_panel.g_of_eyeballs',{g:fmtG(eyeP(c))})}</span>${grantFact(c)}${latSlow(c)?`<span class="fact bad">🐢 ${tr('city_panel.ms_ms_to_transit',{ms:Math.round(R.latFar[c].ms)})}</span>`:''}${regionMult(c)>1?`<span class="fact">${tr('city_panel.transit_x_pricier',{x:regionMult(c)})}</span>`:''}${C.reg==='AS'&&!C.cn?'<span class="fact ixf">'+tr('city_panel.underserved_users_grow_60_faster')+'</span>':''}${ix?`<span class="fact ixf">${tr('city_panel.ix_ix',{ix:esc(ix)})}</span>`:''}${p?`<span class="fact mine">${tr('common.your_pop')}</span><button class="fact trb" data-act="trace" data-args='{"city":"${c}"}'>🔍 ${tr('common.traceroute')}</button>`:''}${down?`<span class="fact down">DOWN</span>`:''}</div></div>
|
||||
<button class="x" data-act="closePanel" aria-label="${tr('common.close')}">×</button></div>`;
|
||||
if(!p){
|
||||
h+=`<div class="scroll">${C.note?`<p class="note" style="margin-top:0">${esc(C.note)}</p>`:''}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ function decomModal(){const sel=[...(UI.decom||[])],im=decomImpact(sel),all=Obje
|
|||
${left<1?`<p class="why">${tr('decommission.keep_at_least_one_pop')}</p>`:''}
|
||||
<div class="btns" style="margin-top:10px">${btn(sel.length?trn('decommission.decommission_n_pop_pay_fee',sel.length,{fee:fmt$(im.fee)}):tr('decommission.pick_a_pop'),'decomGo',{},'red',!sel.length||left<1)}${btn(tr('common.keep_them'),'closeModal',{},'ghost')}</div>`);}
|
||||
function decommission(cities){const set=new Set(cities),im=decomImpact(cities),lids=new Set(im.links.map(l=>l.id)),bids=new Set(im.biz.map(b=>b.id));
|
||||
S.links=S.links.filter(l=>!lids.has(l.id));S.biz=S.biz.filter(b=>!bids.has(b.id));S.offers=S.offers.filter(o=>!bCities(o).some(c=>set.has(c)));
|
||||
S.links=S.links.filter(l=>!lids.has(l.id));prunePairMet();S.biz=S.biz.filter(b=>!bids.has(b.id));S.offers=S.offers.filter(o=>!bCities(o).some(c=>set.has(c)));
|
||||
S.transit=S.transit.filter(t=>!set.has(t.city));S.pni=S.pni.filter(x=>!set.has(x.city));S.caches=S.caches.filter(x=>!set.has(x.city));S.nni=(S.nni||[]).filter(x=>!set.has(x.city));
|
||||
for(const c of cities){for(const x of ixIdsIn(c)){delete S.ixp[x];delete S.rs[x];if(S.ixn)delete S.ixn[x];if(S.ixSite)delete S.ixSite[x];for(const k in S.peers)if(k.endsWith('@'+x))delete S.peers[k];}delete S.myIx[c];S.scrubs=S.scrubs.filter(x=>x.city!==c);delete S.pops[c];}
|
||||
const rem=remoteCities();for(const x in S.ixp){const c=ixCity(x);if(!S.pops[c]&&!rem.includes(c)){delete S.ixp[x];delete S.rs[x];for(const k in S.peers)if(k.endsWith('@'+x))delete S.peers[k];}}
|
||||
|
|
|
|||
|
|
@ -51,8 +51,13 @@ function trafficSection(l){
|
|||
if(u>=0.8&&egs.length){const d=R.egDesc[egs[0][0]];h+=`<p class="why">${tr('link_panels.biggest_feeder_egress_in_city_set',{egress:esc(d.lab),city:CITY[d.city].name})}</p>`;}
|
||||
return h+`</section>`;
|
||||
}
|
||||
function metricSection(l){const cur=l.metric||'normal';
|
||||
return `<section><h3>${tr('common.routing_metric')}</h3><p class="lead">${tr('link_panels.your_routers_pick_the_lowest_cost')}</p><div class="btns">${Object.keys(MET).map(k=>btn(MET[k].l,'setMetric',{id:l.id,v:k},cur===k?'pink sm':'ghost sm')).join('')}</div></section>`;}
|
||||
function metricSection(l){const cur=pairMet(edgeKey(l)),pl=pairLinks(l.a,l.b),sb=!!l.standby;
|
||||
let h=`<section><h3>${tr('common.routing_metric')}</h3><p class="lead">${tr('link_panels.your_routers_pick_the_lowest_cost')}</p><div class="btns">${Object.keys(MET).map(k=>btn(MET[k].l,'setMetric',{id:l.id,v:k},cur===k?'pink sm':'ghost sm')).join('')}</div>`;
|
||||
// Standby only means something next to another link; a link left on standby alone can still be taken off it.
|
||||
if(pl.length>1||sb){const busy=(R.load[l.id]||0)>1e-3,alone=!pl.some(x=>x!==l&&!x.standby&&!linkDown(x));
|
||||
const st=!sb?tr('link_panels.a_link_on_standby_carries_traffic'):!busy?tr('link_panels.on_standby_idle_while_the_other'):alone?tr('link_panels.on_standby_but_carrying_the_traffic'):tr('link_panels.on_standby_taking_the_overflow');
|
||||
h+=`<h4 class="sub4">${tr('common.standby')}</h4><p class="note">${st}</p><div class="btns">${sb?btn(tr('link_panels.take_it_off_standby'),'setStandby',{id:l.id,on:0},'pink sm'):btn(tr('link_panels.put_this_link_on_standby'),'setStandby',{id:l.id,on:1},'ghost sm')}</div>`;}
|
||||
return h+`</section>`;}
|
||||
function chinaSection(c){const st=S.cnLic?S.cnLic.state:'none',loss=S.ev.gfw>S.day?0.35:0.2;
|
||||
let h=`<section><h3>${tr('link_panels.behind_the_great_firewall')}</h3><p class="lead">${tr('link_panels.mainland_china_plays_by_its_own',{list:CN_BLOCKED.slice(0,4).map(esc).join(', '),pct:pct(loss)})}</p>`;
|
||||
if(st==='none')h+=`<p class="lead">${tr('link_panels.foreign_networks_need_a_local_joint')}</p>${btn(tr('link_panels.apply_for_a_license_price_mo',{price:fmt$(CN_LIC),mo:fmt$(CN_JV_MO)}),'applyCn',{},'pink',S.cash<CN_LIC)}`;
|
||||
|
|
@ -87,7 +92,7 @@ function dfPanel(l){
|
|||
const rg=l.regen|0,rgAdd=REGEN_COST+Math.round((l.ch||[]).reduce((a,c)=>a+optCost(c),0)*REGEN_CH);
|
||||
h+=`</section><section><h3>${tr('common.line_system')}</h3><div class="kv"><span>${esc(sysD.n)}</span><b>${tr('link_panels.n_amplifiers',{n:amps})}</b></div>
|
||||
<div class="kv"><span>${tr('common.regen_sites')}</span><b>${rg?tr('link_panels.n_optical_spans_of_km_km',{n:rg,km:spanKm(l).toLocaleString()}):tr('common.none')}</b></div><p class="note">${tr('link_panels.a_regen_site_turns_the_light',{price:fmt$(REGEN_MO)})}</p>${l.sub&&l.own?`<p class="note">${tr('link_panels.no_regen_sites_in_the_middle')}</p>`:`<div class="btns">${rg<REGEN_MAX?btn(tr('link_panels.regen_site_price',{price:fmt$(rgAdd)}),'regen',{id:l.id,d:1},'sm',S.cash<rgAdd):''}${rg?btn(tr('common.regen_site'),'regen',{id:l.id,d:-1},'ghost sm'):''}</div>`}<p class="note">${esc(sysD.blurb)}</p><div class="btns">${(()=>{const t=sysNext(l);if(!t)return '';const T=DF_SYS[t],c=sysUpCost(l);return T.lvl>lvl()?btn(tr('link_panels.sys_level_n',{sys:T.n,n:T.lvl}),'upSys',{id:l.id},'sm',true):btn(tr('link_panels.upgrade_to_sys_price',{sys:T.n,price:fmt$(c)}),'upSys',{id:l.id},'sm',S.cash<c);})()}${pairBtn(l)}${btn(l.spares?tr('link_panels.spares_kit_on'):tr('link_panels.keep_a_spares_kit_price_mo',{price:fmt$(Math.round(150+(l.ch||[]).length*80))}),'spares',{id:l.id},l.spares?'green sm':'sm')}</div><p class="note">${tr('link_panels.spare_optics_and_amplifier_cards_on')}</p></section>`;
|
||||
{const sib=pairLinks(l.a,l.b).filter(x=>x!==l&&x.kind!=='vxc');h+=`<section><h3>${tr('common.redundancy')}</h3><p class="lead">${sib.length?tr('link_panels.other_links_between_these_cities'):tr('link_panels.this_is_the_only_link_between')}</p>${sib.map(x=>`<div class="row"><div class="grow"><div class="nm">${esc(capName(x))} ${linkDown(x)?'<span class="tag restrictive">'+tr('common.cut')+'</span>':''}</div><div class="meta">${(x.trench||x.id)===(l.trench||l.id)?tr('common.same_trench'):tr('common.diverse_route')}</div></div>${btn(tr('common.open'),'selLink',{id:x.id},'ghost sm')}</div>`).join('')}<div class="btns">${btn(tr('link_panels.add_parallel_link'),'addParallel',{id:l.id},'pink sm')}</div></section>`;}
|
||||
{const sib=pairLinks(l.a,l.b).filter(x=>x!==l&&x.kind!=='vxc');h+=`<section><h3>${tr('common.redundancy')}</h3><p class="lead">${sib.length?tr('link_panels.other_links_between_these_cities'):tr('link_panels.this_is_the_only_link_between')}</p>${sib.map(x=>`<div class="row"><div class="grow"><div class="nm">${esc(capName(x))} ${linkDown(x)?'<span class="tag restrictive">'+tr('common.cut')+'</span>':''}${x.standby?' <span class="tag st">'+tr('common.standby')+'</span>':''}</div><div class="meta">${(x.trench||x.id)===(l.trench||l.id)?tr('common.same_trench'):tr('common.diverse_route')}</div></div>${btn(tr('common.open'),'selLink',{id:x.id},'ghost sm')}</div>`).join('')}<div class="btns">${btn(tr('link_panels.add_parallel_link'),'addParallel',{id:l.id},'pink sm')}</div></section>`;}
|
||||
h+=`${trafficSection(l)}${metricSection(l)}<section>${btn(UI.confirm===l.id?tr('link_panels.really_give_it_up'):(l.own?tr('link_panels.abandon_the_fiber'):tr('link_panels.cancel_the_iru')),'rmLink',{id:l.id},'ghost sm')}${cabBack(l)>0?`<p class="note">${tr('link_panels.giving_it_up_now_returns_price',{price:fmt$(cabBack(l))})}</p>`:''}</section></div>`;
|
||||
return h;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,5 +20,8 @@ const HTIW='https://tkjaer.github.io/how-the-internet-works/';
|
|||
// The real thing: an interactive, zoomable guide to how packets actually travel. Go read it.
|
||||
// Where players hang out: the community Signal group.
|
||||
const SIGNAL='https://signal.group/#CjQKIJwvEt5fYt1pvw7J2pV664CyUyGJXmAJLV8ia3nUdAD7EhA_FzdxflEzkNmcvDHdVgLQ';
|
||||
const chatHtml=()=>`<a class="plug chat" href="${SIGNAL}" target="_blank" rel="noopener"><span class="pi" aria-hidden="true">💬</span><span><b>${tr('modal_and_names.join_the_noc_chat')}</b><span class="meta">${tr('modal_and_names.our_signal_group_swap_screenshots')}</span></span><span class="go">${tr('common.join')}</span></a>`;
|
||||
const chatHtml=()=>`<a class="plug chat" href="${SIGNAL}" target="_blank" rel="noopener"><span class="pi" aria-hidden="true">💬</span><span><b>${tr('modal_and_names.join_the_noc_chat')}</b><span class="meta">${tr('modal_and_names.our_signal_group_screenshots_chat')}</span></span><span class="go">${tr('common.join')}</span></a>`;
|
||||
// Bugs and ideas go to GitHub, where they get tracked; the chat is for chatting. Its forms sort them by kind.
|
||||
const ISSUES='https://github.com/fjaeckel/seriesoftubes/issues/new/choose';
|
||||
const issueHtml=()=>`<a class="plug" href="${ISSUES}" target="_blank" rel="noopener"><span class="pi" aria-hidden="true">🐛</span><span><b>${tr('modal_and_names.found_a_bug_or_have_an')}</b><span class="meta">${tr('modal_and_names.tell_us_on_github_a_short')}</span></span><span class="go">${tr('modal_and_names.open')}</span></a>`;
|
||||
const plugHtml=(big)=>`<a class="plug" href="${HTIW}" target="_blank" rel="noopener"><span class="pi" aria-hidden="true">🌍</span><span><b>How the Internet Works</b><span class="meta">${big?tr('modal_and_names.the_real_thing_by_thomas_kj'):tr('modal_and_names.the_real_thing_follow_a_packet')}</span></span><span class="go">${tr('common.explore')}</span></a>`;
|
||||
|
|
|
|||
|
|
@ -1,16 +1,25 @@
|
|||
// Five suggested homes, or any city with someone selling transit there. Hidden cities and China (which needs
|
||||
// a license first) can't be a home, and neither can a city where nobody sells transit: you'd start cut off.
|
||||
const homeOk=c=>own(CITY,c)&&!CITY[c].off&&!CITY[c].cn&&NETS.some(n=>sellsAt(n,c));
|
||||
const START5=['fra','nyc','sin','sao','syd'];
|
||||
function homePick(){const cs=Object.keys(CITY).filter(homeOk),cur=START5.includes(UI.startCity)?'':UI.startCity;
|
||||
return `<select class="pick" id="homeSel" data-chg="pickHome" aria-label="${tr('title.anywhere_else')}"><option value="">${tr('title.choose')}</option>${Object.keys(REG).map(r=>{const g=cs.filter(c=>CITY[c].reg===r).sort((a,b)=>CITY[a].name.localeCompare(CITY[b].name));
|
||||
return g.length?`<optgroup label="${esc(REG[r])}">${g.map(c=>`<option value="${c}"${c===cur?' selected':''}>${esc(CITY[c].name)}</option>`).join('')}</optgroup>`:'';}).join('')}</select>`;}
|
||||
// A dropdown can't wrap, so long names (Yuzhno-Sakhalinsk) get cut on phones: the line above it says the whole name.
|
||||
const homeWhat=()=>START5.includes(UI.startCity)?trn('title.n_more_cities_with_transit',Object.keys(CITY).filter(c=>homeOk(c)&&!START5.includes(c)).length):`${esc(CITY[UI.startCity].name)} · ${esc(REG[CITY[UI.startCity].reg])}`;
|
||||
function showTitle(){
|
||||
const sv=loadSave();
|
||||
if(UI.nm==null)UI.nm=randomNetworkName();
|
||||
const starts=[['fra',tr('title.crossroads_of_europe_de_kicks_ix')],['nyc',tr('title.huge_eyeball_market_pricey')],['sin',tr('title.asia_hub_great_peering_far_from')],['sao',tr('title.big_hungry_market_few_providers')],['syd',tr('title.hard_mode_everything_overseas_costs')]];
|
||||
const starts=[['fra',tr('title.crossroads_of_europe_de_kicks_ix')],['nyc',tr('title.huge_eyeball_market_pricey')],['sin',tr('title.asia_hub_great_peering_far_from')],['sao',tr('title.big_hungry_market_few_providers')],['syd',tr('title.hard_mode_pricey_everything')]];
|
||||
openModal(`<div class="title-art"><svg width="74" height="74" viewBox="0 0 74 74" aria-hidden="true"><path d="M10 60V40c0-14 10-24 24-24h18" fill="none" stroke="#1E2640" stroke-width="16" stroke-linecap="round"/><path d="M10 60V40c0-14 10-24 24-24h18" fill="none" stroke="#FFD23F" stroke-width="9" stroke-linecap="round"/><circle cx="58" cy="16" r="11" fill="#FF4F9A" stroke="#1E2640" stroke-width="4"/><circle cx="21" cy="44" r="3" fill="#fff"/><circle cx="30" cy="27" r="3" fill="#fff"/></svg>
|
||||
<h1>Series<br>of <span>Tubes</span></h1></div>
|
||||
<p class="tagline">${tr('title.build_an_internet_lay_fiber_between')}</p>${plugHtml(false)}${isPhone()?installRow():''}
|
||||
${sv?`<div class="btns" style="margin-bottom:6px">${btn(tr('title.continue_name_date',{name:esc(sv.name),date:dateStr(sv.day)}),'cont',{},'pink big')}</div>`:''}
|
||||
<label class="f" for="nmIn">${tr('title.name_your_network')}</label><div class="network-name"><input class="t" id="nmIn" maxlength="24" value="${esc(UI.nm)}" autocomplete="off">${btn(tr('common.another_one'),'randomName',{},'ghost sm')}</div>
|
||||
<label class="f">${tr('title.pick_your_home_city')}</label><div class="starts">${starts.map(([c,d])=>`<button class="start ${UI.startCity===c?'on':''}" data-city="${c}" data-act="pickStart" data-args='{"city":"${c}"}'><b>${CITY[c].name}</b><span>${d}</span></button>`).join('')}</div>
|
||||
<label class="f">${tr('title.pick_your_home_city')}</label><div class="starts homes">${starts.map(([c,d])=>`<button class="start ${UI.startCity===c?'on':''}" data-city="${c}" data-act="pickStart" data-args='{"city":"${c}"}'><b>${CITY[c].name}</b><span>${d}</span></button>`).join('')}<label class="start own ${START5.includes(UI.startCity)?'':'on'}" for="homeSel"><b>${tr('title.anywhere_else')}</b><span id="homeWhat">${homeWhat()}</span>${homePick()}</label></div>
|
||||
<label class="f">${tr('common.mode')}</label><div class="btns">${[['normal',tr('common.normal')],['sandbox',tr('common.sandbox')]].map(([m,l])=>`<button class="b sm modeb ${(UI.mode||'normal')===m?'pink':'ghost'}" data-m="${m}" data-act="modeSet" data-args='{"m":"${m}"}'>${l}</button>`).join('')}${btn(tr('title.scenarios_amp_weekly_challenge'),'scenarios',{},'sm')}</div>
|
||||
<label class="f">${tr('common.language')}</label><div class="btns">${segBtns('langSet',LANG,Object.entries(LANGS))}</div>
|
||||
<div class="btns cta" style="margin-top:16px;justify-content:space-between;align-items:center">${btn(sv?tr('common.start_a_new_network'):tr('common.start_building'),'start',{},'big')}${btn(tr('common.how_to_play'),'help',{},'ghost')}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}</div><p class="ver">v${APP_VERSION} · <a href="https://github.com/fjaeckel/seriesoftubes" target="_blank" rel="noopener">${tr('title.source_on_github')}</a> · <a href="${SIGNAL}" target="_blank" rel="noopener">${tr('title.chat_on_signal')}</a> · ${tr('title.cookieless_stats_no_tracking')}</p>`);
|
||||
<label class="f" for="langTitle">${tr('common.language')}</label>${langPick('langTitle')}
|
||||
<div class="btns cta tcta" style="margin-top:16px">${btn(sv?tr('common.start_a_new_network'):tr('common.start_building'),'start',{},'big')}${btn(tr('common.how_to_play'),'help',{},'ghost')}${btn(tr('common.import_a_save'),'importPick',{},'ghost')}${btn(tr('common.settings'),'settings',{},'ghost')}</div><p class="ver">v${APP_VERSION} · <a href="https://github.com/fjaeckel/seriesoftubes" target="_blank" rel="noopener">${tr('title.source_on_github')}</a> · <a href="${SIGNAL}" target="_blank" rel="noopener">${tr('title.chat_on_signal')}</a> · ${tr('title.cookieless_stats_no_tracking')}</p>`);
|
||||
$('nmIn').addEventListener('input',e=>{UI.nm=e.target.value;});
|
||||
if(sv){S=migrate(sv);compute();}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ function showHelp(){
|
|||
<dt>${tr('common.waves')}</dt><dd>${tr('help.your_fiber_links_are_leased_waves')}</dd><dt>${tr('common.95th_percentile')}</dt><dd>${tr('help.transit_bills_sample_your_usage')}</dd><dt>${tr('common.routers')}</dt><dd>${tr('help.each_pop_s_router_model_caps')}</dd><dt>${tr('common.dark_fiber')}</dt><dd>${tr('help.lease_an_iru_or_build_your')}</dd><dt>${tr('common.subsea_cables')}</dt><dd>${tr('help.subsea_waves_can_only_follow_cable')}</dd><dt>${tr('common.latency')}</dt><dd>${tr('help.every_link_has_latency_high')}</dd><dt>${tr('common.noc_dashboard')}</dt><dd>${tr('help.the_chart_button_at_the_top')}</dd><dt>${tr('common.asia')}</dt><dd>${tr('help.a_weird_underserved_market_transit')}</dd><dt>${tr('common.russia')}</dt><dd>${tr('help.moscow_needs_a_mandatory_government')}</dd><dt>${tr('help.events_chains_and_wholesale')}</dt><dd>${tr('help.event_networks_a_final_a_festival')}</dd><dt>${tr('common.bank')}</dt><dd>${tr('help.tap_your_cash_to_open_the')}</dd><dt>${tr('common.lags')}</dt><dd>${tr('help.out_of_port_speed_bundle_up')}</dd><dt>${tr('common.traffic_engineering')}</dt><dd>${tr('help.tap_a_link_to_see_which')}</dd><dt>${tr('common.china')}</dt><dd>${tr('help.mainland_china_needs_a_license_and')}</dd><dt>${tr('common.weird_requirements')}</dt><dd>${tr('help.some_customers_come_with_conditions')}</dd><dt>${tr('common.customer_levels')}</dt><dd>${tr('help.as_your_peak_traffic_and_footprint')}</dd><dt>${tr('help.l2vpn_ddos_protection')}</dt><dd>${tr('help.businesses_may_want_a_private')}</dd><dt>${tr('common.scrubbing_centers')}</dt><dd>${tr('help.build_one_in_as_many_pops')}</dd><dt>${tr('common.nni_fabrics')}</dt><dd>${tr('help.megapork_pocketfabric_and')}</dd>
|
||||
<dt>${tr('common.conferences')}</dt><dd>${tr('help.nanog_ripe_denog_and_friends_come')}</dd><dt>${tr('common.modes')}</dt><dd>${tr('help.sandbox_gives_you_a_billion_dollars')}</dd><dt>${tr('common.traceroute')}</dt><dd>${tr('help.tap_traceroute_on_any_of_your')}</dd><dt>${tr('common.badges')}</dt><dd>${tr('help.below_your_goals_sits_a_wall')}</dd><dt>${tr('common.the_giants')}</dt><dd>${tr('help.at_customer_level_3_and_4')}</dd><dt>RouteScript</dt><dd>${tr('help.once_auto_te_is_installed_you')}</dd><dt>Auto-TE</dt><dd>${tr('help.traffic_follows_the_shortest_path_by')}</dd><dt>${tr('common.metro_diversity')}</dt><dd>${tr('help.a_pop_is_one_building_until')}</dd><dt>${tr('common.wave_markets')}</dt><dd>${tr('help.what_a_wave_costs_depends_on')}</dd><dt>${tr('common.regional_quirks')}</dt><dd>${tr('help.in_the_gulf_saudi_pops_need')}</dd><dt>${tr('common.boot_times')}</dt><dd>${tr('help.some_routers_take_forever_to_boot')}</dd><dt>${tr('common.failures')}</dt><dd>${tr('help.things_break_all_the_time_fiber')}</dd>
|
||||
<dt>RouteScript</dt><dd>${tr('help.rules_for_your_auto_te_controller')}</dd>
|
||||
</dl><h3 style="margin:16px 0 0">${tr('help.want_to_know_how_it_really')}</h3>${plugHtml(true)}${chatHtml()}</dl><div class="btns" style="margin-top:14px">${btn(UI.started?tr('common.back_to_the_map'):tr('common.got_it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('common.start_a_new_network'),'resetAsk',{},'ghost sm'):''}</div><div class="btns" style="margin-top:6px">${UI.started&&S&&!S.lost?btn(tr('common.export_save'),'exportSave',{},'ghost sm'):''}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}</div>`);
|
||||
</dl><h3 style="margin:16px 0 0">${tr('help.want_to_know_how_it_really')}</h3>${plugHtml(true)}${chatHtml()}${issueHtml()}</dl><div class="btns" style="margin-top:14px">${btn(UI.started?tr('common.back_to_the_map'):tr('common.got_it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('common.start_a_new_network'),'resetAsk',{},'ghost sm'):''}</div><div class="btns" style="margin-top:6px">${UI.started&&S&&!S.lost?btn(tr('common.export_save'),'exportSave',{},'ghost sm'):''}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}</div>`);
|
||||
}
|
||||
function showWin(){setTimeout(()=>{const m=$('modalCard');if(m&&!m.querySelector('[data-act=share]'))m.insertAdjacentHTML('beforeend',`<div class="btns" style="margin-top:8px">${btn(tr('help.share_my_network'),'share',{},'pink')}</div><p class="meta" style="margin:12px 0 0">${tr('help.you_built_a_cartoon_internet_now')}</p>${plugHtml(true)}`);},0);openModal(`<h1 style="font-family:var(--display);font-size:44px;margin:0">${tr('help.you_re_a_tier_1')}</h1><p class="tagline">${tr('help.name_as_asn_is_transit_free',{name:esc(S.name),asn:S.asn,days:S.day,n:S.stats.incidents})}</p>${btn(tr('common.keep_building'),'keepPlaying',{},'pink big')}`);sfx('coin');}
|
||||
function showLose(){openModal(`<h1 style="font-family:var(--display);font-size:40px;margin:0">${tr('common.bankrupt')}</h1><p class="tagline">${tr('help.the_bank_repossessed_your_routers',{name:esc(S.name),days:S.day,peak:fmtG(S.stats.peak)})}</p>${btn(tr('common.try_again'),'newgame',{},'pink big')}`);try{localStorage.removeItem('sot-save-v1');}catch(e){}}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const SEA_DELAYS=[N_('own_cable.a_whale_has_parked_on_the'),N_('own_cable.the_ca
|
|||
const OWNCAB_LAND=3000000,OWNCAB_KM=6000,OWNCAB_OM=25;
|
||||
const OWNCAB_NAMES=['Big Wet Tube','Davy Jones’ Backhaul','Kraken-1','Mariana Trench Coat','The Wet Ethernet','Sea-ya Later','Deep Pockets Express','Salty Sausage','Poseidon’s Patch Cable','Neptune Neutrality','Moby Disk','Fibre Nemo','The Long Wet Thing','Bermuda Triangle Routing','Seabed & Breakfast','Atlantis Backhaul'];
|
||||
const OWNCAB_SHIPS=['MV Cable Guy','Spool of Thought','Wet Willy','Reel Deal','Splice Girl','Knot Today','Seas the Day','HMS Unplugged'];
|
||||
const landing=c=>CABLE_PAIRS.some(p=>p.a===c||p.b===c);
|
||||
const landing=c=>!!CITY[c].beach||CABLE_PAIRS.some(p=>p.a===c||p.b===c);
|
||||
const nearLanding=c=>CITIES.filter(x=>x.id!==c&&landing(x.id)).sort((x,y)=>kmBetween(c,x.id)-kmBetween(c,y.id))[0].id;
|
||||
const ownCabKm=(a,b)=>seaRoutes(a,b)[0]?.km||Infinity;
|
||||
const ownCabCost=km=>Math.round((2*OWNCAB_LAND+km*OWNCAB_KM+DF_SYS.roadm.cost)*hwMul('build'));
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
function i18nDom(){if(LANG==='en')return;for(const el of document.querySelectorAll('[data-i18n]'))el.textContent=tr(el.dataset.i18n);
|
||||
for(const a of ['aria-label','title'])for(const el of document.querySelectorAll(`[data-i18n-${a}]`))el.setAttribute(a,tr(el.getAttribute('data-i18n-'+a)));}
|
||||
// One button per [value,label] option; the current one is highlighted.
|
||||
// One dropdown instead of a button per language: the list keeps growing, and on phones the system picker opens.
|
||||
// Each language is named in itself (lang= lets screen readers say it right).
|
||||
const langPick=id=>`<select class="pick" id="${id}" data-chg="langSet" aria-label="${tr('common.language')}">${Object.entries(LANGS).map(([v,l])=>`<option value="${v}" lang="${v}"${v===LANG?' selected':''}>${esc(l)}</option>`).join('')}</select>`;
|
||||
function segBtns(act,cur,opts){return opts.map(([v,l])=>btn(l,act,{v},cur===v?'pink sm':'ghost sm')).join('');}
|
||||
/* Animation setting: auto follows the system's reduced-motion preference, or force it on or off. */
|
||||
/* Settings are per device (localStorage), not part of the save: they are about how you like to play. */
|
||||
|
|
@ -23,7 +26,7 @@ function settingsHtml(){const seg=(lab,act,cur,opts,note)=>`<div class="setline"
|
|||
<h3 class="sub4">${tr('settings.display_and_sound')}</h3>
|
||||
${seg(tr('common.animations'),'animSet',UI.anim||'auto',[['auto',tr('common.auto')],['on',tr('common.on')],['off',tr('common.off')]],tr('settings.auto_follows_your_device_s_reduce'))}
|
||||
${seg(tr('common.sound'),'soundSet',UI.muted?'off':'on',[['on',tr('common.on')],['off',tr('common.off')]])}
|
||||
${seg(tr('common.language'),'langSet',LANG,Object.entries(LANGS))}
|
||||
<div class="setline"><label for="langSel">${tr('common.language')}</label>${langPick('langSel')}</div>
|
||||
${seg(tr('common.viewport_info'),'vpSet',VP_T?'on':'off',[['on',tr('common.on')],['off',tr('common.off')]],tr('settings.for_reporting_layout_bugs_shows_what'))}
|
||||
${installRow()}<div class="btns" style="margin-top:12px">${btn(tr('common.done_8dd3'),'settingsClose',{},'pink')}</div>`;}
|
||||
const refreshSettings=()=>{if(UI.setOpen)openModal(settingsHtml());};
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ function drawFrame(now){
|
|||
// links
|
||||
const far=lodFar(),PI=pairIdx(),LG=linkGroups(),GM=LG.map(g=>linkGeom(g[0],PI.get(edgeKey(g[0])))),busy=linesOnScreen(GM,ks)>MAP_BUSY;
|
||||
for(let gi=0;gi<LG.length;gi++){const grp=LG[gi],l=grp[0],many=grp.length>1,up=many?grp.filter(x=>!linkDown(x)):null;
|
||||
const gm=GM[gi],cap=many?up.reduce((a,x)=>a+capOf(x),0):capOf(l),load=many?grp.reduce((a,x)=>a+(R.load[x.id]||0),0):(R.load[l.id]||0),u=cap?load/cap:0,df=l.kind==='df',bld=df&&l.ready>day,cut=!bld&&(many?!up.length:linkDown(l))&&!(df&&!(l.ch||[]).length),dark=df&&!bld&&!(l.ch||[]).length,vx=l.kind==='vxc';
|
||||
const gm=GM[gi],cap=many?up.reduce((a,x)=>a+capOf(x),0):capOf(l),load=many?grp.reduce((a,x)=>a+(R.load[x.id]||0),0):(R.load[l.id]||0),u=cap?load/cap:0,df=l.kind==='df',bld=df&&l.ready>day,cut=!bld&&(many?!up.length:linkDown(l))&&!(df&&!(l.ch||[]).length),dark=df&&!bld&&!(l.ch||[]).length,vx=l.kind==='vxc',idle=!cut&&!bld&&load<1e-3&&(many?up.length>0&&up.every(x=>x.standby):!!l.standby);
|
||||
const sel=UI.sel&&UI.sel.type==='link'&&grp.some(x=>x.id===UI.sel.id);let lab=null;
|
||||
const w=(vx?2.2:(2.5+Math.max(...grp.map(tierW))*1.8+(many?Math.min(1.5,(grp.length-1)*0.5):0)))*sc*(far?0.5:1),np=gm.pts.length;
|
||||
if(SX.length<np){SX=new Float64Array(np*2);SY=new Float64Array(np*2);}
|
||||
|
|
@ -39,8 +39,8 @@ function drawFrame(now){
|
|||
const path=()=>{ctx.beginPath();ctx.moveTo(SX[0],SY[0]);for(let i=1;i<np;i++)ctx.lineTo(SX[i],SY[i]);};
|
||||
ctx.lineCap='round';ctx.lineJoin='round';
|
||||
if(sel){ctx.strokeStyle='rgba(255,79,154,.35)';ctx.lineWidth=w+14;path();ctx.stroke();}
|
||||
ctx.strokeStyle='#1E2640';ctx.lineWidth=w+4;ctx.setLineDash(cut?[8,8]:vx?[2,7]:bld?[10,8]:[]);path();ctx.stroke();
|
||||
ctx.strokeStyle=bld?'#C9B27C':dark?'#5D6788':cut?'#FF4D5E':vx?FAB[l.prov].col:l.sub?(u>0.001?utilCol(u):'#7FD8EE'):utilCol(u);ctx.lineWidth=w;ctx.stroke();ctx.setLineDash([]);
|
||||
ctx.strokeStyle='#1E2640';ctx.lineWidth=w+4;ctx.setLineDash(cut?[8,8]:vx?[2,7]:bld?[10,8]:idle?[4,6]:[]);path();ctx.stroke();
|
||||
ctx.strokeStyle=bld?'#C9B27C':dark?'#5D6788':cut?'#FF4D5E':idle?'#9AA3BE':vx?FAB[l.prov].col:l.sub?(u>0.001?utilCol(u):'#7FD8EE'):utilCol(u);ctx.lineWidth=w;ctx.stroke();ctx.setLineDash([]);
|
||||
// Still the same path: strokes keep it, so the dotted fiber line goes on top without building it again.
|
||||
if(df&&!bld&&!dark&&!busy){ctx.strokeStyle='rgba(255,255,255,.75)';ctx.lineWidth=Math.max(1,w*0.25);ctx.setLineDash([1,6]);ctx.stroke();ctx.setLineDash([]);}
|
||||
const at=t=>polyAtXY(SX,SY,gm.cum,t);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ let pressing=false;
|
|||
document.addEventListener('pointerdown',e=>{if(e.target.closest('#panel,#left,#dash,#bankBox,#modal,#tabbar,#toasts'))pressing=true;});
|
||||
addEventListener('pointerup',()=>setTimeout(()=>pressing=false,0));
|
||||
addEventListener('pointercancel',()=>{pressing=false;});addEventListener('blur',()=>{pressing=false;});
|
||||
document.addEventListener('change',e=>{const el=e.target.closest('[data-chg]');if(!el||!S)return;const fn=ACT[el.dataset.chg];if(fn)fn({v:el.value});});
|
||||
document.addEventListener('change',e=>{const el=e.target.closest('[data-chg]');if(!el||(!S&&!['langSet','pickHome'].includes(el.dataset.chg)))return;const fn=ACT[el.dataset.chg];if(fn)fn({v:el.value});});
|
||||
/* Taps that land on the wrong thing (#44): a real tap only fires the button it went down on, never something that
|
||||
appeared or moved under the finger, nothing behind a menu that opened or closed mid-tap, and no toast button in
|
||||
the first half second after the toast popped up. Synthetic clicks (keyboard, tests) are not affected. */
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ function boot(data){
|
|||
renderAll();if(S.grace&&S.grace.until>S.day&&R.graceNets&&!S.grace.told){S.grace.told=1;toast(tr('loop.new_networks_on_the_map_this',{n:S.grace.until-S.day}),'goal',[{l:tr('common.open_noc'),act:'leftTab',args:{t:'noc'}}]);}
|
||||
if(S.auNews){delete S.auNews;const c=Object.keys(S.pops).find(x=>CITY[x].au);toast(tr('loop.australia_got_more_australian'),'bad',[{l:tr('common.open'),act:'focusCity',args:{city:c}}],{a:'city',v:c});}
|
||||
if(!whatsNew(true))toast(tr('loop.welcome_back_name_your_network_is',{name:esc(S.name),date:dateStr(S.day)}),'good');}
|
||||
else{showTitle();whatsNew(false);if(sv)toast(tr('loop.your_saved_game_could_not_be'),'bad');}}
|
||||
else{showTitle();whatsNew(false);if(sv||UI.gzBroken)toast(tr('loop.your_saved_game_could_not_be'),'bad');}}
|
||||
renderHUD();renderLeft();
|
||||
window.claude?.hot?.snapshot?.(()=>({S:S&&JSON.parse(JSON.stringify(S)),cam:{...cam}}));
|
||||
if(!window.__TUBES_TEST__){requestAnimationFrame(frame);setTimeout(checkUpdate,4000);setInterval(checkUpdate,10*60*1000);}
|
||||
}
|
||||
window.claude?.hot?.ready ? window.claude.hot.ready(boot) : boot(window.claude?.hot?.data ?? {});
|
||||
gzBoot(()=>window.claude?.hot?.ready ? window.claude.hot.ready(boot) : boot(window.claude?.hot?.data ?? {}));
|
||||
|
|
|
|||
144
src/i18n/en.js
144
src/i18n/en.js
|
|
@ -270,22 +270,30 @@
|
|||
"businesses.your_noc_has_a_chat_channel":"Your NOC has a chat channel called #its-always-the-fiber, and it is always the fiber.",
|
||||
"businesses.your_routing_table_needs_its_own":"Your routing table needs its own routing table.",
|
||||
"cables.a_bet_on_a_tiny_island":"A bet on a tiny island in the middle of the Pacific.",
|
||||
"cables.a_buffet_of_landings_down_norway":"A buffet of landings down the Norwegian coast, from the oil fields to Oslo.",
|
||||
"cables.a_friendly_cable_with_french_manners":"A friendly cable with French manners.",
|
||||
"cables.a_gateway_from_europe_to_india":"A gateway from Europe to India, through the Red Sea. Pronounced like a very surprised cable.",
|
||||
"cables.a_quick_hop_across_the_red":"A quick hop across the Red Sea between Egypt and Saudi Arabia.",
|
||||
"cables.a_rainbow_bridge_from_singapore_to":"A rainbow bridge from Singapore to California, via Jakarta and Manila.",
|
||||
"cables.a_ring_around_the_caribbean_from":"A ring around the Caribbean from Florida to Central America, older than most of its customers.",
|
||||
"cables.a_ring_round_east_asia_from":"A ring round East Asia from 2001: Singapore, Hong Kong, Manila, Taipei, Shanghai, Seoul and Tokyo.",
|
||||
"cables.a_short_cable_across_a_very":"A short cable across a very tense strait.",
|
||||
"cables.a_short_cable_from_jamaica_to":"A short cable from Jamaica to the Dominican Republic, the link nobody notices until it is cut.",
|
||||
"cables.a_short_hop_from_sakhalin_to":"A short hop from Sakhalin to Hokkaido.",
|
||||
"cables.a_small_sweet_cable_from_broadstairs":"A small, sweet cable from Broadstairs to Ostend, then inland to Oostkamp. Not to be confused with any other citrus-flavoured cable.",
|
||||
"cables.across_the_mediterranean_egypt_to":"Across the Mediterranean, Egypt to France. Romantic, in a cable way.",
|
||||
"cables.africa_coast_to_europe_twenty_odd":"Africa Coast to Europe: twenty-odd countries on one cable, from France to Cape Town. The best card in a lot of hands.",
|
||||
"cables.alaska_s_old_pair_of_cables":"Alaska’s old cables to the Lower 48, with a branch up to Juneau.",
|
||||
"cables.all_the_way_around_africa_and":"All the way around Africa and back. Cheapest capacity on the map.",
|
||||
"cables.always_agrees_with_you_iberia_to":"Always agrees with you. Iberia to West Africa.",
|
||||
"cables.american_samoa_to_hawaii_and_samoa":"American Samoa to Hawaii and Samoa on old, smoky glass.",
|
||||
"cables.an_asia_america_gateway_cable_that":"An Asia–America gateway cable that breaks so often it has its own support group.",
|
||||
"cables.an_old_cable_from_cape_town":"An old cable from Cape Town round to India, via some very small islands.",
|
||||
"cables.an_old_ring_around_the_whole":"An old ring around the whole continent, the long way round Cape Horn.",
|
||||
"cables.anchorage_to_oregon_under_the_gulf":"Anchorage to Oregon under the Gulf of Alaska, for when the other one breaks.",
|
||||
"cables.another_hop_across_the_channel_with":"Another hop across the Channel, with dark fiber for sale. There is always room for one more.",
|
||||
"cables.another_london_amsterdam_route":"Another London–Amsterdam route. Everyone has one, so prices are low.",
|
||||
"cables.another_ring_round_east_asia_this":"Another ring round East Asia, this one from the telco that owned half of them.",
|
||||
"cables.argentina_to_portugal_via_brazil":"Argentina to Portugal via Brazil, Cape Verde, Dakar and the Canaries. Laid in 2000 and slowly sinking into legend.",
|
||||
"cables.asia_africa_europe_and_one_more":"Asia, Africa, Europe, and one more thing.",
|
||||
"cables.athens_to_alexandria_and_up_the":"Athens to Alexandria, and up the Dardanelles to Istanbul. Opa!",
|
||||
|
|
@ -294,14 +302,19 @@
|
|||
"cables.brazil_straight_to_iberia_skipping":"Brazil straight to Iberia, skipping the US entirely.",
|
||||
"cables.brazil_to_florida_the_invoice":"Brazil to Florida. The invoice arrives just as fast.",
|
||||
"cables.brisbane_to_tokyo_with_a_beach":"Brisbane to Tokyo with a beach break in Guam.",
|
||||
"cables.busan_to_kyushu_the_shortest_way":"Busan to Kyushu, the shortest way between Korea and Japan.",
|
||||
"cables.california_to_hong_kong_via_hawaii":"California to Hong Kong via Hawaii and Guam. A layered cake of repairs.",
|
||||
"cables.california_to_singapore_via_guam":"California to Singapore via Guam. Everyone on it agrees with each other.",
|
||||
"cables.casablanca_down_the_coast_to_abidjan":"Casablanca down the coast to Abidjan, served sweet and very hot.",
|
||||
"cables.chennai_to_singapore_in_one_short":"Chennai to Singapore in one short hop.",
|
||||
"cables.chennai_to_singapore_looking_it":"Chennai to Singapore, looking it straight in the eye.",
|
||||
"cables.connects_doha_to_the_rest_of":"Connects Doha to the rest of the Gulf, by sea, which is handy when the land border is closed.",
|
||||
"cables.cornwall_to_japan_the_long_way":"Cornwall to Japan the long way: through the Mediterranean, the Red Sea and every strait on the way. Since 1997.",
|
||||
"cables.cornwall_to_lagos_down_the_west":"Cornwall to Lagos down the West African coast. Glows faintly when it is working.",
|
||||
"cables.crosses_bass_strait_faster_than_the":"Crosses Bass Strait faster than the ferry, and gets seasick less often.",
|
||||
"cables.crosses_the_pacific_mildly_annoyed":"Crosses the Pacific, mildly annoyed about it.",
|
||||
"cables.cuba_s_only_cable_laid_from":"Cuba’s only cable, laid from Venezuela in 2011 and switched on two years later. Hangs around your neck.",
|
||||
"cables.cura_ao_to_trinidad_along_the":"Curaçao to Trinidad along the coast of Venezuela.",
|
||||
"cables.danish_for_sea_fun_probably":"Danish for “sea fun”. Probably.",
|
||||
"cables.darwin_to_singapore_via_jakarta":"Darwin to Singapore via Jakarta. Survival of the fittest packets.",
|
||||
"cables.discovered_the_atlantic_again_old":"Discovered the Atlantic again. Old, pricey and fragile.",
|
||||
|
|
@ -310,14 +323,23 @@
|
|||
"cables.dubai_to_mumbai_hits_hard":"Dubai to Mumbai. Hits hard.",
|
||||
"cables.dublin_to_london_across_the_irish":"Dublin to London across the Irish Sea.",
|
||||
"cables.east_africa_up_to_europe_via":"East Africa up to Europe via the Red Sea. Lemon squeezy.",
|
||||
"cables.fiber_along_british_columbia_s_coast":"Fiber along British Columbia’s coast to towns that only had satellite.",
|
||||
"cables.fiji_to_samoa_always_room_for":"Fiji to Samoa. Always room for one more packet.",
|
||||
"cables.fiji_to_tonga_the_only_way":"Fiji to Tonga, the only way in. Try saying it three times fast.",
|
||||
"cables.florida_to_brazil_down_the_island":"Florida to Brazil down the island chain, from the year 2000, and it shows.",
|
||||
"cables.florida_to_jamaica_and_colombia_discovering":"Florida to Jamaica and Colombia, discovering the same route a second time.",
|
||||
"cables.florida_to_northern_spain_via":"Florida to northern Spain via Bermuda and the Azores. It goes straight through the Triangle and has come out the other side every time. So far.",
|
||||
"cables.from_florida_round_the_caribbean_to":"From Florida round the Caribbean to Brazil, the big phone company’s very own cable.",
|
||||
"cables.from_vancouver_island_straight_to_japan":"From Vancouver Island straight to Japan, the first new cable on Canada’s Pacific coast in decades.",
|
||||
"cables.fujairah_to_mumbai_round_the_tip":"Fujairah to Mumbai, round the tip of India to Chennai, then on to Singapore.",
|
||||
"cables.genoa_to_sicily_and_on_to":"Genoa to Sicily and on to Athens, laid by a search giant that got tired of renting.",
|
||||
"cables.germany_to_bornholm_and_copenhagen_then":"Germany to Bornholm and Copenhagen, then up the Swedish coast to Stockholm. Anchors permitting.",
|
||||
"cables.guam_to_the_marshall_islands_with":"Guam to the Marshall Islands, with a stop on every atoll that writes in.",
|
||||
"cables.helsinki_to_germany_under_the_baltic":"Helsinki to Germany under the Baltic. Anchors keep finding it.",
|
||||
"cables.helsinki_to_tallinn_and_cut_by":"Helsinki to Tallinn, cut by passing anchors more than once.",
|
||||
"cables.hits_the_high_notes_across_the":"Hits the high notes across the Atlantic. Huge capacity, cheap waves.",
|
||||
"cables.hong_kong_taipei_seoul_and_tokyo_in":"Hong Kong, Taipei, Seoul and Tokyo in one loop.",
|
||||
"cables.hong_kong_to_guam_where_the":"Hong Kong to Guam, where the Pacific cables all meet.",
|
||||
"cables.hops_from_new_york_to_the":"Hops from New York to the UK and Spain.",
|
||||
"cables.hops_the_caribbean_so_bogota_can":"Hops the Caribbean so Bogotá can skip the jungle.",
|
||||
"cables.hops_via_greenland_polar_bears":"Hops via Greenland. Polar bears included.",
|
||||
|
|
@ -326,43 +348,64 @@
|
|||
"cables.iceland_to_ireland_brand_new_and":"Iceland to Ireland, brand new and still smells like plastic.",
|
||||
"cables.india_the_middle_east_and_western":"India, the Middle East and Western Europe, all on one cable. Lands in Cairo on the way.",
|
||||
"cables.ireland_to_norway_the_long_way":"Ireland to Norway, the long way round the top of Scotland. Vikings, but in reverse.",
|
||||
"cables.island_hops_down_the_lesser_antilles":"Island-hops down the Lesser Antilles. Laid in 1995 and repaired after every hurricane since.",
|
||||
"cables.istanbul_to_bucharest_s_coast_across":"Istanbul to Bucharest's coast across the Black Sea.",
|
||||
"cables.its_predecessor_was_faster_marketing":"Its predecessor was FASTER. Marketing had a good day.",
|
||||
"cables.japan_to_singapore_by_way_of":"Japan to Singapore by way of Manila and Hong Kong, no rush.",
|
||||
"cables.kenya_to_the_gulf_makes_the":"Kenya to the Gulf. Makes the dream work.",
|
||||
"cables.kodiak_to_the_aleutians_finished_in":"Kodiak to the Aleutians, switched on at the end of 2022. The crab boats were very excited.",
|
||||
"cables.kristiansand_to_jutland_a_quiet_short":"Kristiansand to Jutland, a short, quiet hop across the Skagerrak.",
|
||||
"cables.laid_last_century_cuts_often_costs":"Laid last century. Cuts often, costs more, still somehow running.",
|
||||
"cables.latvia_to_gotland_and_stockholm_cut":"Latvia to Gotland and on to Stockholm. Cut in 2025, mended a month later.",
|
||||
"cables.leaves_the_gulf_from_fujairah_and":"Leaves the Gulf from Fujairah and runs up the Red Sea to Europe.",
|
||||
"cables.lighter_on_paperwork_than_its":"Lighter on paperwork than its namesake. Still heavy on paperwork.",
|
||||
"cables.lisbon_to_barcelona_and_marseille":"Lisbon to Barcelona and Marseille along the coast. Look straight at the latency graph and it turns to stone.",
|
||||
"cables.lithuania_to_gotland_since_1997_and":"Lithuania to Gotland since 1997, and very popular with dragging anchors.",
|
||||
"cables.london_to_paris_under_the_channel":"London to Paris under the Channel. Cheaper than the train.",
|
||||
"cables.long_island_to_cornwall_follow_it":"Long Island to Cornwall. Follow it all the way to the wizard in the cable hut.",
|
||||
"cables.los_angeles_to_chile_with_a":"Los Angeles to Chile, with a small detour for Panama.",
|
||||
"cables.los_angeles_to_hawaii_guam_and":"Los Angeles to Hawaii, Guam and the Philippines. See you later, packets.",
|
||||
"cables.madagascar_reunion_and_mauritius_tied":"Madagascar, Réunion and Mauritius tied together, with a second leg up to Kenya.",
|
||||
"cables.malaysia_to_thailand_round_the_gulf":"Malaysia to Thailand round the Gulf of Thailand, with a stop in Cambodia.",
|
||||
"cables.marseille_to_singapore_then_it":"Marseille to Singapore, then it leaves the party.",
|
||||
"cables.marseille_to_singapore_with_a_stop":"Marseille to Singapore with a stop at every port on the way, Muscat and Colombo included.",
|
||||
"cables.mumbai_and_chennai_to_malaysia_and":"Mumbai and Chennai to Malaysia and Singapore, lit in 2025. Where exactly it lands is a bit of a mystery.",
|
||||
"cables.mumbai_to_singapore_with_a_stop":"Mumbai to Singapore with a stop in the Maldives.",
|
||||
"cables.nakhodka_to_niigata_across_the_sea":"Nakhodka to Niigata across the Sea of Japan.",
|
||||
"cables.named_after_a_planet_behaves_like":"Named after a planet, behaves like one: big and far away.",
|
||||
"cables.named_after_a_wine_sao_paulo":"Named after a wine. São Paulo to Buenos Aires, past Uruguay.",
|
||||
"cables.nassau_to_florida_the_shortest_hop":"Nassau to Florida, the shortest hop to the mainland.",
|
||||
"cables.new_cables_increasingly_land_in":"New cables increasingly land in Jeddah instead of Egypt. This one heads for India and Singapore.",
|
||||
"cables.new_york_to_ireland_the_tech":"New York to Ireland: the tech-tax express.",
|
||||
"cables.new_york_to_the_cliffs_of":"New York to the cliffs of Bude. It made it home in the end.",
|
||||
"cables.newer_glass_along_the_same_island":"Newer glass along the same island chain, from the phone company that sells to every island.",
|
||||
"cables.nobody_remembers_who_it_is_named":"Nobody remembers who it is named after.",
|
||||
"cables.north_sea_workhorse_from_london_to":"North Sea workhorse from London to Amsterdam. Dark fiber pairs for sale by the dozen.",
|
||||
"cables.norway_to_the_uk_across_the":"Norway to the UK across the North Sea. Fiber pairs for sale, because the oil money wanted a hobby.",
|
||||
"cables.old_pacific_workhorse_everyone_hopes":"Old Pacific workhorse. Everyone hopes it holds.",
|
||||
"cables.one_ring_to_bind_invercargill_to":"One ring to bind Invercargill to Sydney, Melbourne and Auckland. It lands next to a paddock where someone is building an AI factory, which is how you know it might really happen.",
|
||||
"cables.oslo_fjord_to_the_tip_of":"From the Oslo fjord to the tip of Denmark, where two seas meet.",
|
||||
"cables.palermo_to_marseille_and_alexandria":"Palermo to Marseille and Alexandria. Every Europe–Asia shortcut wants a stop in Sicily.",
|
||||
"cables.perth_to_singapore_and_jakarta":"Perth to Singapore and Jakarta. Packed fresh every morning, and cut more often than a sandwich.",
|
||||
"cables.perth_to_the_gulf_across_the":"Perth to the Gulf across the Indian Ocean. Oh man, it is long.",
|
||||
"cables.petropavlovsk_to_anadyr_finished_in":"Petropavlovsk to Anadyr, finished in 2022: Chukotka’s first cable, after decades of satellite.",
|
||||
"cables.portugal_to_lagos_with_stops_in":"Portugal to Lagos, with stops in Dakar, Abidjan and Accra. Only ever thinks about West Africa.",
|
||||
"cables.portugal_to_the_us_southeast_via":"Portugal to the US Southeast via Bermuda. Means cloud in Portuguese, and is owned by one.",
|
||||
"cables.quick_pacific_crossing_with_a_stop":"Quick Pacific crossing with a stop for snacks.",
|
||||
"cables.sakhalin_to_kamchatka_and_magadan_laid":"Sakhalin to Kamchatka and Magadan, laid in 2016 so the peninsula could stop relying on satellites.",
|
||||
"cables.samoa_to_tahiti_by_way_of":"Samoa to Tahiti by way of the Cook Islands. Steeped slowly.",
|
||||
"cables.scotland_to_iceland_via_shetland_and":"Scotland to Iceland via Shetland and the Faroes. More sheep than packets.",
|
||||
"cables.seattle_straight_to_shanghai_seoul_and":"Seattle straight to Shanghai, Seoul and Taipei.",
|
||||
"cables.short_hop_across_the_north_sea":"Short hop across the North Sea. An odyssey it is not.",
|
||||
"cables.short_hops_under_the_baltic_sea":"Short hops under the Baltic Sea. Every passing ship seems to find it.",
|
||||
"cables.singapore_thailand_hong_kong_manila_and":"Singapore, Thailand, Hong Kong, Manila and Japan, with as few detours as the South China Sea allows.",
|
||||
"cables.singapore_to_sydney_via_perth_on":"Singapore to Sydney via Perth, on the days it is up.",
|
||||
"cables.singapore_to_tokyo_via_vietnam_and":"Singapore to Tokyo via Vietnam and Hong Kong.",
|
||||
"cables.sixth_in_a_long_running_series":"Sixth in a long-running series. Europe to India to Singapore.",
|
||||
"cables.south_atlantic_cool_and_confident":"South Atlantic, cool and confident.",
|
||||
"cables.southeast_asia_to_japan_with_snacks":"Southeast Asia to Japan, with snacks.",
|
||||
"cables.stavanger_to_the_netherlands_via":"Stavanger to the Netherlands via every oil platform in the North Sea. The roughnecks stream a lot of football.",
|
||||
"cables.stavanger_to_the_netherlands_and":"Stavanger to the Netherlands and England via every oil platform in the North Sea. The roughnecks stream a lot of football.",
|
||||
"cables.stockholm_to_helsinki_across_the_archipelago":"Stockholm to Helsinki across the archipelago. Light, quick and right where the ships drop anchor.",
|
||||
"cables.straight_across_the_south_atlantic":"Straight across the South Atlantic from Fortaleza to Cameroon. No stops, no islands, no excuses.",
|
||||
"cables.straight_from_sao_paulo_to_new":"Straight from São Paulo to New York, skipping the Miami hairpin.",
|
||||
"cables.sydney_melbourne_adelaide_and_perth":"Sydney, Melbourne, Adelaide and Perth by sea, so your packets never have to cross the Nullarbor. Another one from the bloke who starts a fibre company every time he finishes a flat white.",
|
||||
|
|
@ -374,12 +417,18 @@
|
|||
"cables.tahiti_to_hawaii_trolling_for":"Tahiti to Hawaii, trolling for bandwidth.",
|
||||
"cables.tenerife_to_the_spanish_mainland_as":"Tenerife to the Spanish mainland. As long as it keeps singing, everything is fine.",
|
||||
"cables.the_cable_that_brought_east_africa":"The cable that brought East Africa online, from Durban up to Djibouti and on to Mumbai. Still tells the story at every party.",
|
||||
"cables.the_emirates_oman_and_pakistan_on":"The Emirates, Oman and Pakistan on one light little cable.",
|
||||
"cables.the_first_cable_from_south_america":"The first cable from South America to Oceania. 14,000 km of very lonely glass.",
|
||||
"cables.the_first_subsea_fiber_in_the":"The first subsea fiber in the American Arctic: Nome to Utqiaġvik, then over the North Slope to Anchorage. Sea ice keeps repair ships away half the year.",
|
||||
"cables.the_newest_cable_from_south_africa":"The newest cable from South Africa to Madagascar, Réunion and Mauritius, shared by the islands’ own telcos.",
|
||||
"cables.the_old_workhorse_s_younger_sibling":"The old workhorse’s younger sibling: Los Angeles to Sydney with a branch to Fiji.",
|
||||
"cables.the_pretty_way_around_east_asia":"The pretty way around East Asia.",
|
||||
"cables.the_previous_generation_still":"The previous generation. Still carries most of Pakistan, Sri Lanka and Bangladesh, held together with hope.",
|
||||
"cables.the_sea_stallion_blackpool_to":"The Sea Stallion: Blackpool to Denmark, galloping round the north of Scotland.",
|
||||
"cables.the_sequel_singapore_to_hong_kong":"The sequel: Singapore to Hong Kong, Taiwan, Japan and Korea, lit in 2025.",
|
||||
"cables.the_seychelles_first_cable_to_tanzania":"The Seychelles’ first cable, to Tanzania, after years on satellite.",
|
||||
"cables.the_straightest_line_across_the":"The straightest line across the Atlantic. Traders pay double to save a few milliseconds.",
|
||||
"cables.tokyo_to_los_angeles_built_by":"Tokyo to Los Angeles, built by a search engine and five telcos holding hands.",
|
||||
"cables.up_the_west_coast_of_africa":"Up the west coast of Africa. Something on it is always down.",
|
||||
"cables.west_africa_s_first_big_cable":"West Africa’s first big cable, from Portugal to Cape Town. Old and wobbly, but still holding things up.",
|
||||
"capacity_deals.build_your_own_fiber_a_b":"Build your own fiber between {a} and {b} to hand over the pairs · {n} days left",
|
||||
|
|
@ -402,7 +451,11 @@
|
|||
"cities.a_capital_in_a_valley_under":"A capital in a valley under a green mountain. The national grid has had some famous bad days, so bring a generator.",
|
||||
"cities.a_capital_next_to_the_ruins":"A capital next to the ruins of Carthage, where the Mediterranean is at its narrowest. Cables cross to Sicily in no time.",
|
||||
"cities.a_city_on_seven_hills_by":"A city on seven hills by Lake Victoria. No coast, so every packet to the sea crosses Kenya or Tanzania first.",
|
||||
"cities.a_dutch_island_off_venezuela_that":"A Dutch island off Venezuela that became the Caribbean’s carrier hotel. Half the region’s cables pass by.",
|
||||
"cities.a_gold_rush_town_on_the":"A gold-rush town on the Bering Sea, now on the fiber along Alaska’s Arctic coast.",
|
||||
"cities.a_mile_up_and_halfway_between":"A mile up and halfway between the coasts, so every cross-country route stops here for a breather.",
|
||||
"cities.a_pacific_port_in_northern_british":"A Pacific port in northern British Columbia, where the rain gauge never dries out.",
|
||||
"cities.a_port_on_the_laptev_sea":"A port on the Laptev Sea, frozen in for most of the year. No cable lands here yet: lay your own.",
|
||||
"cities.a_small_capital_in_the_middle":"A small capital in the middle of the desert. The cables land at Swakopmund, then cross the dunes.",
|
||||
"cities.a_small_city_on_a_big":"A small city on a big crossroads. Cables from Asia, Africa and the Middle East land here to skip the long way round.",
|
||||
"cities.a_small_island_at_the_crossroads":"A small island at the crossroads of every Indian Ocean cable.",
|
||||
|
|
@ -411,8 +464,11 @@
|
|||
"cities.a_thousand_kilometres_off_the":"A thousand kilometres off the Carolinas. The new cables from the US to Portugal and Spain stop here, so a POP splits the crossing and each half carries more. Ships are said to vanish nearby. Cables, occasionally, do.",
|
||||
"cities.a_tiny_country_at_the_mouth":"A tiny country at the mouth of the Red Sea where a dozen cables between Europe, Asia and Africa come ashore. It charges accordingly.",
|
||||
"cities.a_tiny_surfing_town_in_cornwall":"A tiny surfing town in Cornwall where a remarkable share of the transatlantic internet comes ashore. The cliffs are full of fiber.",
|
||||
"cities.a_weather_station_and_a_port":"A weather station and a port at the mouth of the Yenisei. The Polar Express cable was meant to land here; it never arrived. Lay your own.",
|
||||
"cities.africa_s_westernmost_capital_where":"Africa’s westernmost capital, where half the cables down the coast stop for a rest. The Atlantic breeze is free cooling.",
|
||||
"cities.agribusiness_capital_and_home_of":"Agribusiness capital and home of sertanejo music. Every truck, tractor and silo wants a connection.",
|
||||
"cities.alaska_s_biggest_city_with_cables":"Alaska’s biggest city, with cables to Seattle and Oregon and moose on the runway.",
|
||||
"cities.alaska_s_capital_has_no_road":"Alaska’s capital has no road to the outside world. Everything arrives by sea, the internet included.",
|
||||
"cities.all_roads_lead_to_rome_most":"All roads lead to Rome. Most packets still go via Milan.",
|
||||
"cities.almost_every_europe_asia_cable":"Almost every Europe–Asia cable crosses Egypt. The tolls are legendary.",
|
||||
"cities.american_samoa_a_deep_harbour_tuna":"American Samoa: a deep harbour, tuna canneries and a branch of the cable from Australia to Oregon.",
|
||||
|
|
@ -426,6 +482,7 @@
|
|||
"cities.asia_s_hub_expensive_humid_very":"Asia's hub. Expensive, humid, very well connected.",
|
||||
"cities.balkan_peering_hub_with_famously":"Balkan peering hub with famously cheap ports.",
|
||||
"cities.banks_very_punctual_packets_and":"Banks, very punctual packets, and racks inside old bank vaults.",
|
||||
"cities.barbados_sits_out_east_of_the":"Barbados sits out east of the island chain, on every cable that runs down the Lesser Antilles.",
|
||||
"cities.bavaria_s_capital_cars_insurers_and":"Bavaria’s capital: cars, insurers and a two-week beer festival that sends mobile traffic through the roof every autumn. Racks must be finished before noon, like the sausages.",
|
||||
"cities.beaches_cable_landings_and_a":"Beaches, cable landings and a Carnival that melts traffic graphs every February.",
|
||||
"cities.beer_is_cheaper_than_water_here":"Beer is cheaper than water here, and IX ports are cheaper than both.",
|
||||
|
|
@ -454,8 +511,11 @@
|
|||
"cities.cheap_land_cheap_power_and_48":"Cheap land, cheap power and 48 °C summers. Hyperscalers love it. Chillers do not.",
|
||||
"cities.cheap_power_dry_air_and_a":"Cheap power, dry air and a surprising number of very quiet data centers.",
|
||||
"cities.cheaper_than_singapore_next_door_the":"Cheaper than Singapore next door. The data center builders noticed, and so did the power grid.",
|
||||
"cities.chukotka_s_capital_closer_to_alaska":"Chukotka’s capital, closer to Alaska than to Moscow. Its cable runs to Kamchatka; none crosses the Bering Strait.",
|
||||
"cities.costa_rica_runs_almost_entirely_on":"Costa Rica runs almost entirely on renewable power, so your racks are green. The cloud forest next door is greener.",
|
||||
"cities.crossroads_for_cables_between_europe":"Crossroads for cables between Europe, Asia and Africa. Some voice apps are blocked, and the A/C bill is legendary.",
|
||||
"cities.cuba_s_only_cable_comes_from":"Cuba’s only cable comes from Venezuela and lands at the far end of the island, not from Florida 150 km away.",
|
||||
"cities.denmark_s_west_coast_where_the":"Denmark’s west coast, where the transatlantic cables and the North Sea wind farms come ashore.",
|
||||
"cities.digital_everything_e_residency_for":"Digital everything, e-residency for anyone, and Baltic cables that ships keep dragging their anchors over.",
|
||||
"cities.dunes_buggies_and_the_corner_of":"Dunes, buggies and the corner of Brazil closest to Africa.",
|
||||
"cities.east_africa_s_hub_cables_land":"East Africa’s hub. Cables land in Mombasa, and mobile money runs everything.",
|
||||
|
|
@ -484,12 +544,19 @@
|
|||
"cities.it_almost_never_rains_but_the":"It almost never rains, but the sea fog keeps the racks cool.",
|
||||
"cities.italian_immigrants_vineyards_and":"Italian immigrants, vineyards and factories. Your racks share the hills with the grape harvest.",
|
||||
"cities.italy_s_digital_capital_fashion_week":"Italy’s digital capital. Fashion-week traffic, an espresso-powered NOC and more exchanges than you would expect.",
|
||||
"cities.jamaica_s_capital_with_cables_to":"Jamaica’s capital, with cables to Florida, Colombia and Cuba, and very big sound systems.",
|
||||
"cities.japan_s_closest_city_to_korea":"Japan’s closest big city to Korea, with ramen stalls and the short cables to Busan.",
|
||||
"cities.japan_s_second_hub_and_tokyo":"Japan’s second hub, and Tokyo’s disaster-recovery plan. Earthquakes rarely hit both.",
|
||||
"cities.kamchatka_s_capital_ringed_by_volcanoes":"Kamchatka’s capital, ringed by volcanoes, with no road to the rest of Russia. Its cable runs to Sakhalin.",
|
||||
"cities.landing_point_for_cables_from_the":"Landing point for cables from the US, Iceland and the Baltic.",
|
||||
"cities.latvia_s_capital_its_cables_to":"Latvia’s capital. Its cables to Sweden cross the Baltic, where anchors keep dragging.",
|
||||
"cities.luxembourg_s_data_centers_are_not":"Luxembourg’s data centers are not in Luxembourg City. They are here, Tier IV, and cooled by a power plant that burns waste wood.",
|
||||
"cities.madagascar_s_capital_up_in_the":"Madagascar’s capital, up in the highlands, with cables landing on three coasts and lemurs everywhere.",
|
||||
"cities.mainland_china_behind_the_great":"Mainland China. Behind the Great Firewall, with its own rules for foreign networks.",
|
||||
"cities.mainland_china_enormous_market":"Mainland China. Enormous market, strict rules, and a famously congested border.",
|
||||
"cities.makes_most_of_the_world_s":"Makes most of the world’s chips and hangs on a handful of subsea cables. Ships keep “accidentally” dragging their anchors over them.",
|
||||
"cities.martinique_a_corner_of_france_in":"Martinique, a corner of France in the Caribbean, under a volcano that destroyed the old capital in 1902.",
|
||||
"cities.mauritius_an_island_of_banks_call":"Mauritius, an island of banks, call centres and every cable in the south-west Indian Ocean.",
|
||||
"cities.mexico_s_data_center_boom_town":"Mexico’s data center boom town, high and dry in the middle of the country. Every cloud wants a region here.",
|
||||
"cities.mexico_s_industrial_capital_a_few":"Mexico’s industrial capital, a few hours from Texas. Factories, steel and grilled goat on weekends.",
|
||||
"cities.mexico_s_silicon_valley_home_of":"Mexico’s Silicon Valley, home of mariachi and tequila. Chip design by day, music by night.",
|
||||
|
|
@ -499,9 +566,12 @@
|
|||
"cities.mozambique_s_capital_an_hour_from":"Mozambique’s capital, an hour from South Africa. Its cables are the east coast’s backup when the others break.",
|
||||
"cities.new_caledonia_a_slice_of_france":"New Caledonia, a slice of France in the Coral Sea, with a cable to Sydney and a nickel mine on every hill.",
|
||||
"cities.norway_s_oil_capital_now_full":"Norway’s oil capital, now full of data centers inside mountains, run on hydro and cooled by the fjord. North Sea cables land here.",
|
||||
"cities.norway_s_southern_tip_where_cables":"Norway’s southern tip, where cables from Denmark, the Atlantic and the rest of the coast come ashore.",
|
||||
"cities.nova_scotia_s_capital_and_the":"Nova Scotia’s capital, and the big North American port closest to Europe. The fastest cable to England starts here, on the shortest line across the ocean, built for traders who pay for every millisecond.",
|
||||
"cities.oil_gas_and_hurricanes_the":"Oil, gas and hurricanes. The generators here are sized for a week, and they have needed it.",
|
||||
"cities.oman_s_capital_just_outside_the":"Oman’s capital, just outside the Strait of Hormuz, where half the cables from Europe to Asia stop on the way.",
|
||||
"cities.on_an_island_so_every_link":"On an island, so every link off it is a subsea cable.",
|
||||
"cities.once_the_gateway_to_the_kolyma":"Once the gateway to the Kolyma camps, now at the end of a cable from Sakhalin.",
|
||||
"cities.one_foot_in_europe_one_in":"One foot in Europe, one in Asia. Every land route between them crosses here.",
|
||||
"cities.one_of_africa_s_biggest_cities":"One of Africa’s biggest cities, right across the river from another capital. The grid comes and goes, the rumba never stops.",
|
||||
"cities.one_of_the_most_remote_islands":"One of the most remote islands people live on: about 4,500 of them, and once Napoleon, sent here so he could not get away. Its first cable came ashore in 2021, a branch of the one from Portugal to South Africa. The power runs on diesel and hope.",
|
||||
|
|
@ -510,10 +580,15 @@
|
|||
"cities.palau_on_a_branch_cable_from":"Palau, on a branch cable from Guam. Coral reefs, jellyfish that do not sting, and very little traffic.",
|
||||
"cities.papua_new_guinea_s_capital_in":"Papua New Guinea’s capital, in a country of eight hundred languages, with a cable to Sydney. The grid fails often, so bring a generator.",
|
||||
"cities.paraguay_shares_two_giant_dams_with":"Paraguay shares two giant dams with its neighbours and has more power than it can use. Crypto miners noticed.",
|
||||
"cities.pitcairn_island_about_forty_people":"Pitcairn: about thirty-five people, descendants of the Bounty mutineers, two thousand kilometres from anywhere. No cable lands here: lay your own, and the UK chips in to keep the islanders online.",
|
||||
"cities.probably_the_cleanest_capital_in":"Probably the cleanest capital in Africa, with fiber to every district and plastic bags banned at the border.",
|
||||
"cities.puerto_rico_s_capital_where_a":"Puerto Rico’s capital, where a dozen Caribbean cables meet. Hurricane season tests the generators most autumns.",
|
||||
"cities.purple_jacaranda_trees_and_long":"Purple jacaranda trees and long power cuts. Every POP here needs a generator and a lot of diesel.",
|
||||
"cities.r_union_a_piece_of_france":"Réunion, a piece of France in the Indian Ocean, on the cables from South Africa to India. Rougail saucisses for lunch.",
|
||||
"cities.right_between_london_amsterdam_paris":"Right between London, Amsterdam, Paris and Frankfurt, and somehow pricier than all four. Two networks own every Belgian living room, and nobody switches unless you advertise.",
|
||||
"cities.right_on_the_equator_at_the":"Right on the equator, at the mouth of the Amazon. No road links it to the rest of Brazil, and its power grid has had very long bad weeks.",
|
||||
"cities.russia_s_northernmost_town_powered_by":"Russia’s northernmost town, powered by a floating nuclear plant in the harbour. No cable lands here yet: lay your own.",
|
||||
"cities.sakhalin_s_capital_on_an_island":"Sakhalin’s capital, on an island of oil and gas just north of Japan.",
|
||||
"cities.samoa_s_capital_with_cables_to":"Samoa’s capital, with cables to Fiji, American Samoa and Tahiti. Sunday is for church, so maintenance windows are on Saturday.",
|
||||
"cities.saudi_arabia_s_red_sea_cable":"Saudi Arabia’s Red Sea cable hub. More and more of the cables between Europe, Africa and Asia stop here instead of in Egypt.",
|
||||
"cities.scotland_s_capital_north_sea_cables":"Scotland’s capital. North Sea cables to Norway and the Faroes land up the coast.",
|
||||
|
|
@ -527,7 +602,10 @@
|
|||
"cities.tahiti_in_french_polynesia_a_cable":"Tahiti, in French Polynesia. A cable runs north to Hawaii, and the new one from Chile to Australia stops here: the stepping stone between South America and Oceania.",
|
||||
"cities.tango_steak_and_a_currency_that":"Tango, steak and a currency that changes value while you read this.",
|
||||
"cities.tanzania_s_biggest_city_and_the":"Tanzania’s biggest city and the sea gate for half a dozen countries with no coast of their own.",
|
||||
"cities.the_aleutians_fishing_capital":"The Aleutians’ fishing capital. Fiber arrived in 2023; before that, satellites and patience.",
|
||||
"cities.the_azores_in_the_middle_of":"The Azores, in the middle of the Atlantic. Cables from Florida to Lisbon and Spain stop here, so a POP splits the crossing and each half carries more. The cows outnumber the servers.",
|
||||
"cities.the_bahamas_capital_a_short_hop":"The Bahamas’ capital, a short hop from Florida. Most cables south stop here on the way.",
|
||||
"cities.the_biggest_city_north_of_the":"The biggest city north of the Arctic Circle. Russia’s Polar Express cable was meant to set off east from here; only the first stretch is in the water. Lay your own.",
|
||||
"cities.the_bottom_of_the_country_on":"The bottom of the country, on power lines built for an aluminium smelter. Someone is building a 280 MW AI campus in a paddock out of town, so the cables are coming. Probably.",
|
||||
"cities.the_bottom_of_the_map_cool":"The bottom of the map. Cool air, cheap hydro, and all of Bass Strait between you and the mainland.",
|
||||
"cities.the_business_capital_of_french":"The business capital of French-speaking West Africa, with glass towers on a lagoon and five cables in the bay.",
|
||||
|
|
@ -539,25 +617,31 @@
|
|||
"cities.the_city_of_eternal_spring_with":"The city of eternal spring, with outdoor escalators up the hillsides and a busy startup scene.",
|
||||
"cities.the_data_center_capital_rumor_says":"The data-center capital. Rumor says 70% of the internet passes through here, and nobody has checked.",
|
||||
"cities.the_deep_south_halfway_to_buenos":"The deep south, halfway to Buenos Aires. Barbecue every Sunday, and a hot gourd of mate in every hand, even in summer.",
|
||||
"cities.the_dominican_republic_s_capital_the":"The Dominican Republic’s capital, the oldest European city in the Americas and a busy cable landing.",
|
||||
"cities.the_easternmost_city_of_the_americas":"The easternmost city of the Americas, where the sun rises first. Your NOC shift starts early too.",
|
||||
"cities.the_end_of_the_trans_siberian":"The end of the Trans-Siberian railway, and of Russia’s cable to Japan.",
|
||||
"cities.the_garden_city_and_the_biggest":"The Garden City, and the biggest city on the South Island, which locals call the Mainland with a straight face. Everything bound for the North Island crosses Cook Strait.",
|
||||
"cities.the_geographic_center_of_south":"The geographic center of South America, and one of the hottest cities in Brazil. The chillers never get a day off.",
|
||||
"cities.the_geographic_middle_of_the_us":"The geographic middle of the US. Data centers sit in old limestone mines underground: steady temperature, no tornadoes, and somebody keeps finding Dorothy’s shoes.",
|
||||
"cities.the_harbour_the_bridge_and_most":"The harbour, the bridge and most of the country’s data centres. Rent is the real latency.",
|
||||
"cities.the_highest_seat_of_government_on":"The highest seat of government on Earth, at 3,600 m. Commuters ride cable cars, and so does some of the fiber.",
|
||||
"cities.the_maldives_capital_a_stop_on":"The Maldives’ capital, one metre above the sea and a stop on the cables from India to the Gulf and Singapore.",
|
||||
"cities.the_most_isolated_big_city_on":"The most isolated big city on Earth. Asia is closer than Sydney.",
|
||||
"cities.the_north_s_hub_with_its":"The North’s hub, with its own exchange and very damp air-conditioning intakes. Cables to Ireland and Denmark come ashore up the coast.",
|
||||
"cities.the_northernmost_town_in_the_united":"The northernmost town in the United States, reached by the first subsea fiber in the American Arctic.",
|
||||
"cities.the_old_gateway_to_eastern_europe":"The old gateway to Eastern Europe. Packets still bow politely on the way through.",
|
||||
"cities.the_only_northeastern_capital_away":"The only northeastern capital away from the sea. Famously hot, with lightning storms that keep the surge protectors busy.",
|
||||
"cities.the_pacific_gateway_the_andes_sit":"The Pacific gateway. The Andes sit between it and everything else, and the ground shakes now and then.",
|
||||
"cities.the_prairie_gateway_between":"The prairie gateway between Vancouver and the rest of Canada. A chinook melts the snow in an afternoon, then it snows again.",
|
||||
"cities.the_rhine_ruhr_hub_more_carrier":"The Rhine-Ruhr hub: more carrier-neutral data centers than Hamburg or Munich, and an hour from the Dutch border, so fiber to Amsterdam is short and cheap. Order an Altbier here, never a Kölsch.",
|
||||
"cities.the_seychelles_capital_on_mah":"The Seychelles’ capital on Mahé: 115 islands, giant tortoises and two cables to the mainland.",
|
||||
"cities.the_solomon_islands_capital_on":"The Solomon Islands’ capital, on Guadalcanal. The cable to Sydney only arrived a few years ago; before that it was all satellite. The power is less reliable than the cable.",
|
||||
"cities.the_southeast_s_carrier_hotel":"The Southeast’s carrier hotel. Busiest airport, busiest peering south of Ashburn.",
|
||||
"cities.the_venice_of_brazil_all_bridges":"The Venice of Brazil, all bridges and rivers, with one of the country’s biggest tech parks in its old harbour.",
|
||||
"cities.throws_the_biggest_sao_joao_festival":"Throws the biggest São João festival in the world: a whole month of forró every June. Also a university town full of engineers.",
|
||||
"cities.tiny_tropical_and_the_closest":"Tiny, tropical and the closest Australian city to Asia. New cables to Singapore and Jakarta land here, next to the crocodiles.",
|
||||
"cities.tonga_hangs_on_one_cable_from":"Tonga hangs on one cable from Fiji. In 2022 an undersea volcano cut it, and the country was offline for weeks.",
|
||||
"cities.trinidad_s_capital_at_the_southern":"Trinidad’s capital, at the southern end of the island chain and a few kilometres off Venezuela.",
|
||||
"cities.twenty_minutes_from_everything":"Twenty minutes from everything, except anywhere else.",
|
||||
"cities.two_million_people_in_the_middle":"Two million people in the middle of the rainforest, with a duty-free factory zone. The fiber follows the rivers, and when it breaks, the repair crew goes by boat.",
|
||||
"cities.typhoons_earthquakes_and_a_lot_of":"Typhoons, earthquakes and a lot of very online people.",
|
||||
|
|
@ -1166,6 +1250,7 @@
|
|||
"common.spreadsheet_ipam":"Spreadsheet IPAM",
|
||||
"common.stage_six":"Stage Six",
|
||||
"common.standard":"Standard",
|
||||
"common.standby":"Standby",
|
||||
"common.start_a_new_network":"Start a new network",
|
||||
"common.start_building":"Start building",
|
||||
"common.start_construction":"Start construction",
|
||||
|
|
@ -2009,6 +2094,7 @@
|
|||
"link_modal.waves_on_the_same_route_share":"Waves on the same route share its fate: one backhoe cuts them all.",
|
||||
"link_modal.you_already_have_n_link_here":{"one":"You already have {n} link here ({list}). Parallel links add capacity. How should this one be routed?","other":"You already have {n} links here ({list}). Parallel links add capacity. How should this one be routed?"},
|
||||
"link_panels.a_bigger_fabric_carries_more_traffic":"A bigger fabric carries more traffic and has room for more members. Your router here still has to keep up.",
|
||||
"link_panels.a_link_on_standby_carries_traffic":"A link on standby carries traffic only when the other links between these cities are full or down.",
|
||||
"link_panels.a_regen_site_turns_the_light":"A regen site turns the light back into bits halfway and sends it on fresh, so optics only have to reach the next site. Each needs a regen card for every lit channel. {price}/mo per site for the hut.",
|
||||
"link_panels.abandon_the_fiber":"Abandon the fiber",
|
||||
"link_panels.add_parallel_link":"Add parallel link",
|
||||
|
|
@ -2068,6 +2154,9 @@
|
|||
"link_panels.not_present_in_any_of_your":"Not present in any of your cities yet",
|
||||
"link_panels.nothing_spare_to_sell_on_this":"Nothing spare to sell on this fiber right now.",
|
||||
"link_panels.off_while_your_peering_policy_is":"Off while your peering policy is {pol}",
|
||||
"link_panels.on_standby_but_carrying_the_traffic":"On standby, but carrying the traffic: no active link between these cities is up.",
|
||||
"link_panels.on_standby_idle_while_the_other":"On standby: idle while the other links between these cities have room.",
|
||||
"link_panels.on_standby_taking_the_overflow":"On standby: taking the overflow, because the other links between these cities are full.",
|
||||
"link_panels.open_peer_but_not_on_any":"Open peer, but not on any IX where you have a POP. Nearest: {city}",
|
||||
"link_panels.open_peer_but_not_on_any_bfbb":"Open peer, but not on any IX where you have a POP",
|
||||
"link_panels.open_peer_join_the_route_server":"Open peer: join the route server at {ix}",
|
||||
|
|
@ -2085,6 +2174,7 @@
|
|||
"link_panels.ports_at_p_of_the_usual":"Ports at {p}% of the usual price.",
|
||||
"link_panels.ports_up_to_port_are_free":"Ports up to {port} are free.",
|
||||
"link_panels.price_n_days":"{price} · {n} days",
|
||||
"link_panels.put_this_link_on_standby":"Put this link on standby",
|
||||
"link_panels.ready_for_a_pni_in_city":"Ready for a PNI in {city}",
|
||||
"link_panels.ready_in_n_days":"Ready in {n} days",
|
||||
"link_panels.really_give_it_up":"Really give it up?",
|
||||
|
|
@ -2107,6 +2197,7 @@
|
|||
"link_panels.spares_kit_on":"Spares kit on ✓",
|
||||
"link_panels.stock_a_spare_optic_price":"Stock a spare {optic} <small>{price}</small>",
|
||||
"link_panels.sys_level_n":"{sys} <small>level {n}</small>",
|
||||
"link_panels.take_it_off_standby":"Take it off standby",
|
||||
"link_panels.there_s_no_ix_in_city":"There's no IX in {city} yet. Found one: networks join over time, pay you for ports, and peer with you for free.",
|
||||
"link_panels.they_need_the_full_internet_your":"They need the full internet. Your reach is {pct}.",
|
||||
"link_panels.this_fiber_is_dark_add_optics":"This fiber is dark. Add optics below to carry traffic.",
|
||||
|
|
@ -2149,11 +2240,15 @@
|
|||
"long_tail.a_fiber_co_op_for_one":"A fiber co-op for one valley. Every member owns a metre of cable.",
|
||||
"long_tail.a_rich_mix_of_everything_the":"A rich mix of everything the fishermen brought in.",
|
||||
"long_tail.a_thousand_tiny_social_networks_on":"A thousand tiny social networks on one rack.",
|
||||
"long_tail.alaska_s_biggest_network_from_anchorage":"Alaska’s biggest network, from Anchorage to the Aleutians. Bought the Arctic fiber in 2026 and peers only in Seattle.",
|
||||
"long_tail.alaska_s_old_phone_company_and":"Alaska’s old phone company and, so far, the only member of its own exchange.",
|
||||
"long_tail.an_isp_run_from_the_back":"An ISP run from the back of a kebab shop. Late-night support is excellent.",
|
||||
"long_tail.atlantic_canada_s_cable_company":"Atlantic Canada’s cable company, raised on lobster and long winters. Polite on the phone, a beast at the peering table.",
|
||||
"long_tail.bermuda_s_phones_tv_and_internet":"Bermuda’s phones, TV and internet from one very busy office. Half its business customers are reinsurers, and they have priced in the Triangle.",
|
||||
"long_tail.broadband_in_dozens_of_russian_cities":"Broadband in dozens of Russian cities: peers openly, ums and errs about everything else.",
|
||||
"long_tail.bunny_suits_mandatory_in_the_server":"Bunny suits mandatory in the server room.",
|
||||
"long_tail.cable_broadband_for_half_of_britain":"Cable broadband for half of Britain. Fast on a good day.",
|
||||
"long_tail.cable_tv_and_broadband_for_the":"Cable TV and broadband for the Bahamas, peering only in Miami, where the party is.",
|
||||
"long_tail.cape_verde_s_incumbent_and_the":"Cape Verde’s incumbent and the islands’ way out. Its CV lists every cable between Europe, Africa and Brazil, and it brings it up at every meeting.",
|
||||
"long_tail.cheap_fast_and_open_late":"Cheap, fast and open late.",
|
||||
"long_tail.cheap_filling_hosting_ask_for_the":"Cheap, filling hosting. Ask for the potato-and-cheese plan.",
|
||||
|
|
@ -2162,6 +2257,7 @@
|
|||
"long_tail.cosy_racks_under_a_hill_second":"Cosy racks under a hill. Second breakfast at 11.",
|
||||
"long_tail.covers_a_lot_of_empty_ground":"Covers a lot of empty ground.",
|
||||
"long_tail.crispy_on_the_outside_cheap_on":"Crispy on the outside, cheap on the inside.",
|
||||
"long_tail.cuba_s_state_telco_and_only":"Cuba’s state telco and only ISP. Happy to peer, if you can get a cable to Havana.",
|
||||
"long_tail.delivered_fresh_every_morning":"Delivered fresh every morning.",
|
||||
"long_tail.down_from_2_to_5_p":"Down from 2 to 5 p.m. every day. By design.",
|
||||
"long_tail.dug_the_trench_themselves_one_field":"Dug the trench themselves, one field at a time.",
|
||||
|
|
@ -2172,6 +2268,7 @@
|
|||
"long_tail.fiji_s_international_gateway_very":"Fiji’s international gateway. Very clever about where your traffic should go, as long as it goes through Suva.",
|
||||
"long_tail.football_films_and_a_router_that":"Football, films and a router that looks like a spaceship.",
|
||||
"long_tail.founded_after_a_pub_quiz_by":"Founded after a pub quiz, by the losing team.",
|
||||
"long_tail.french_pay_tv_that_also_runs":"French pay-TV that also runs broadband on the islands, minus the films you wanted.",
|
||||
"long_tail.game_servers_energy_drinks_and_a":"Game servers, energy drinks and a ping obsession.",
|
||||
"long_tail.gets_along_with_every_other_network":"Gets along with every other network. Famously chill.",
|
||||
"long_tail.gold_plated_servers_valet_parking":"Gold-plated servers, valet parking for packets.",
|
||||
|
|
@ -2189,9 +2286,15 @@
|
|||
"long_tail.it_takes_two_to_peer":"It takes two to peer.",
|
||||
"long_tail.kept_the_lights_on_in_its":"Kept the lights on in its town through every blackout.",
|
||||
"long_tail.korea_s_incumbent_sender_pays_every":"Korea’s incumbent. Sender pays: every gigabit you hand it is billed, on top of the port.",
|
||||
"long_tail.latvia_s_incumbent_peers_face_to":"Latvia’s incumbent. Peers face to face, on its own exchange in Riga.",
|
||||
"long_tail.lyrics_servers_low_latency_high":"Lyrics servers, low latency, high pitch.",
|
||||
"long_tail.madagascar_s_incumbent_and_the_only":"Madagascar’s incumbent and the only local member of its exchange. Maybe it will answer today, maybe tomorrow.",
|
||||
"long_tail.mauritius_number_two_telling_everyone":"Mauritius’ number two, telling everyone about its open peering policy.",
|
||||
"long_tail.mobile_and_broadband_on_r_union":"Mobile and broadband on Réunion since the days of the old French brand.",
|
||||
"long_tail.mountain_wireless_will_spit_at_bad":"Mountain wireless. Will spit at bad routes.",
|
||||
"long_tail.norway_s_incumbent_neither_yes_nor":"Norway’s incumbent. Neither yes nor no, until you send enough traffic.",
|
||||
"long_tail.oman_s_incumbent_and_owner_of":"Oman’s incumbent and part owner of half the cables passing the Strait of Hormuz.",
|
||||
"long_tail.one_of_russia_s_big_mobile":"One of Russia’s big mobile networks, loudest in the Far East.",
|
||||
"long_tail.only_comes_online_at_night":"Only comes online at night.",
|
||||
"long_tail.packets_hop_sometimes_backwards":"Packets hop. Sometimes backwards.",
|
||||
"long_tail.packets_leave_on_time_to_the":"Packets leave on time, to the second.",
|
||||
|
|
@ -2199,6 +2302,8 @@
|
|||
"long_tail.papua_new_guinea_s_state_telco":"Papua New Guinea’s state telco: eight hundred languages, one billing system.",
|
||||
"long_tail.phones_on_every_island_from_papua":"Phones on every island from Papua New Guinea to Tonga, and transit to sell on each one.",
|
||||
"long_tail.powered_by_renewable_rodents_uptime":"Powered by renewable rodents. Uptime depends on snack schedule.",
|
||||
"long_tail.puerto_rico_s_own_business_isp":"Puerto Rico’s own business ISP, spinning round and round the island’s exchange.",
|
||||
"long_tail.r_union_s_fiber_challenger_very":"Réunion’s fiber challenger, very enthusiastic about everything, especially peering.",
|
||||
"long_tail.racks_in_the_nave_cooling_in":"Racks in the nave, cooling in the crypt. Divine uptime.",
|
||||
"long_tail.runs_the_post_the_phones_and":"Runs the post, the phones and the internet in New Caledonia and French Polynesia. Packets arrive stamped, with a croissant.",
|
||||
"long_tail.runs_the_village_network_between":"Runs the village network between call-outs.",
|
||||
|
|
@ -2211,8 +2316,13 @@
|
|||
"long_tail.started_in_venice_upgraded_to_land":"Started in Venice. Upgraded to land.",
|
||||
"long_tail.sweet_fuzzy_and_surprisingly":"Sweet, fuzzy and surprisingly reliable.",
|
||||
"long_tail.ten_thousand_gpus_and_a_podcast":"Ten thousand GPUs and a podcast.",
|
||||
"long_tail.the_island_s_incumbent_and_a":"The island’s incumbent and a partner in most of its cables. Not extinct yet.",
|
||||
"long_tail.the_island_s_own_telco_the":"The island’s own telco, the same colour as the liqueur.",
|
||||
"long_tail.the_maldives_telco_on_islands_one":"The Maldives’ telco, on islands one metre above the sea, with cables to Sri Lanka and India.",
|
||||
"long_tail.the_marshall_islands_telco_two":"The Marshall Islands’ telco, two metres above the sea and proud of every centimetre.",
|
||||
"long_tail.the_plus_is_a_usage_fee":"The plus is a usage fee. Paid peering, per gigabit.",
|
||||
"long_tail.the_same_phone_company_as_in":"The same phone company as in the Pacific, one ocean over: a SIM card on every island from Jamaica to Trinidad.",
|
||||
"long_tail.the_seychelles_old_telco_open_to":"The Seychelles’ old telco, open to peering but with nowhere local to do it.",
|
||||
"long_tail.the_solomon_islands_incumbent_yours":"The Solomon Islands’ incumbent. Yours sincerely, eventually.",
|
||||
"long_tail.the_telco_for_st_helena_ascension":"The telco for St Helena, Ascension and the Falklands. Is the link up? Pretty sure.",
|
||||
"long_tail.the_uk_s_incumbent_buzzes_politely":"The UK’s incumbent. Buzzes politely, stings on price.",
|
||||
|
|
@ -2221,6 +2331,7 @@
|
|||
"long_tail.three_servers_one_dehumidifier_and_a":"Three servers, one dehumidifier and a very patient grandmother.",
|
||||
"long_tail.tonga_s_own_telco_lived_through":"Tonga’s own telco. Lived through a volcano that cut its only cable, and jokes about it now.",
|
||||
"long_tail.took_a_streaming_giant_to_court":"Took a streaming giant to court over who pays for the traffic its own customers asked for. Paid peering, per gigabit.",
|
||||
"long_tail.trinidad_and_tobago_s_incumbent_your":"Trinidad and Tobago’s incumbent. Your peering request is in the queue behind Carnival.",
|
||||
"long_tail.utah_s_dipping_sauce_of_an":"Utah’s dipping-sauce of an ISP.",
|
||||
"long_tail.voice_chat_for_millions_of_gamers":"Voice chat for millions of gamers who all talk at once.",
|
||||
"long_tail.volunteers_with_rooftop_antennas_and":"Volunteers with rooftop antennas and strong opinions about IPv6.",
|
||||
|
|
@ -2241,8 +2352,16 @@
|
|||
"meet_a_network.tier_1s_only_take_a_pni":"Tier 1s only take a PNI from a network with {list}.",
|
||||
"meet_a_network.transit_ports_to_cancel":"Transit ports to cancel",
|
||||
"meet_a_network.where_to_meet_them":"Where to meet them",
|
||||
"mergers.n_ix_session_ended":{"one":"Your IX session with {old} has ended.","other":"Your {n} IX sessions with {old} have ended."},
|
||||
"mergers.n_pni_moves_to_net":{"one":"Your PNI with {old} now belongs to {net}.","other":"Your {n} PNIs with {old} now belong to {net}."},
|
||||
"mergers.net_charges_for_peering":"{net} charges for peering, so expect a monthly fee.",
|
||||
"mergers.net_has_swallowed_old":"{net} has swallowed {old}.",
|
||||
"mergers.now_part_of_net":"Now part of {net}: peer with them instead.",
|
||||
"modal_and_names.found_a_bug_or_have_an":"Found a bug or have an idea?",
|
||||
"modal_and_names.join_the_noc_chat":"Join the NOC chat",
|
||||
"modal_and_names.our_signal_group_swap_screenshots":"Our Signal group: swap screenshots, report bugs and argue about peering policy with other players. Fewer backhoes than the real thing.",
|
||||
"modal_and_names.open":"Open →",
|
||||
"modal_and_names.our_signal_group_screenshots_chat":"Our Signal group: swap screenshots and argue about peering policy with other players. Fewer backhoes than the real thing.",
|
||||
"modal_and_names.tell_us_on_github_a_short":"Tell us on GitHub: a short form for bug reports, feature ideas, balance and translations. Every one gets read.",
|
||||
"modal_and_names.the_real_thing_by_thomas_kj":"The real thing, by Thomas Kjær Aabo: a zoomable, interactive map of how your packets actually travel, from Wi-Fi to undersea fiber, today, in 2010 and in 1995. This game makes it up as it goes. That one gets it right.",
|
||||
"modal_and_names.the_real_thing_follow_a_packet":"The real thing: follow a packet from Wi-Fi to undersea fiber.",
|
||||
"modals.lay_your_own_subsea_cable":"Lay your own subsea cable…",
|
||||
|
|
@ -2254,12 +2373,14 @@
|
|||
"networks.an_edge_cloud_that_is_despite":"An edge cloud that is, despite the name, quite fast.",
|
||||
"networks.australia_s_big_one_g_day":"Australia’s big one. G’day, that will be nine dollars a megabit. Sorry, gigabit.",
|
||||
"networks.australia_s_number_two_once_took":"Australia’s number two. Once took the whole country offline for twelve hours with a routine upgrade.",
|
||||
"networks.bay_area_fiber_with_an_old":"Bay Area fiber with an old-fashioned attitude: open peering and a real human on the phone.",
|
||||
"networks.beams_the_outback_online_from_550":"Beams the outback online from 550 km up, then lands it in a Sydney data centre like everyone else.",
|
||||
"networks.bought_by_speedyloop_and_still":"Bought by Speedyloop, and still working out which name goes on the bill.",
|
||||
"networks.brazil_s_mobile_giant_very_much":"Brazil’s mobile giant. Very much alive.",
|
||||
"networks.bridges_europe_and_asia_and":"Bridges Europe and Asia, and occasionally your BGP table.",
|
||||
"networks.cable_broadband_across_central":"Cable broadband across Central Europe. See you later, in a support queue.",
|
||||
"networks.cable_broadband_for_half_of_america":"Cable broadband for half of America. Haunts your traceroutes.",
|
||||
"networks.cable_broadband_for_the_sun_belt":"Cable broadband for the Sun Belt. Bought by Spectre-um, still working out whose logo goes on the van.",
|
||||
"networks.cables_all_around_the_caribbean":"Cables all around the Caribbean, served with a lot of foam.",
|
||||
"networks.can_you_hear_me_now_only":"Can you hear me now? Only if you pay for the PNI.",
|
||||
"networks.canada_s_cable_giant_held_together":"Canada’s cable giant, held together with duct tape. Now and then all of it goes down at once, which is at least consistent.",
|
||||
|
|
@ -2268,9 +2389,12 @@
|
|||
"networks.chat_games_and_payments_every":"Chat, games and payments. Every message costs ten cents.",
|
||||
"networks.cheap_broadband_with_the_sales_pitch":"Cheap broadband with the sales pitch on a permanent loop.",
|
||||
"networks.cheapest_transit_on_the_map_famously":"Cheapest transit on the map. Famously gentle, except during peering spats.",
|
||||
"networks.dive_bombs_every_exchange_in_the":"Dive-bombs every exchange in the country like a magpie in spring. Wear a bike helmet to the peering session.",
|
||||
"networks.ended_free_peering_across_europe_and":"Ended free peering across Europe and handed it to Inter.Clink, its “interconnection partner”, who will happily sell you a direct connection. Paid peering only, over a PNI. Ring ring, it’s the invoice.",
|
||||
"networks.ethiopia_s_state_telco_a_hundred":"Ethiopia’s state telco: a hundred million customers and very calm about competition.",
|
||||
"networks.expects_the_worst_from_every_link":"Expects the worst from every link, peers with everyone anyway.",
|
||||
"networks.fiber_across_the_sertao_of_the":"Fiber across the sertão of the Northeast, one dirt road at a time.",
|
||||
"networks.fiber_to_30_million_homes_and":"Fiber to 30 million homes, and boldly going wherever Very-Zone tells it to next. Peer while it still decides for itself.",
|
||||
"networks.fiber_to_the_italian_home_with":"Fiber to the Italian home, with a website from 2003.",
|
||||
"networks.gave_a_billion_people_cheap_data":"Gave a billion people cheap data. Knows exactly where every one of them is.",
|
||||
"networks.gigabit_to_every_flat_for_the":"Gigabit to every flat for the price of a coffee. Peers with anyone.",
|
||||
|
|
@ -2295,16 +2419,20 @@
|
|||
"networks.nordic_backbone_that_tells_you":"Nordic backbone that tells you exactly where your packets went.",
|
||||
"networks.now_you_see_the_fibre_now":"Now you see the fibre, now you don’t.",
|
||||
"networks.number_two_in_china_with_a":"Number two in China, with a horn for every backbone.",
|
||||
"networks.once_the_nerds_favourite_isp_now":"Once the nerds’ favourite ISP, now one more brand in the Toilet Paper Group. Peering? Internope.",
|
||||
"networks.owns_the_cable_that_brought_east":"Owns the cable that brought East Africa online, and sells you the capacity with a straight face.",
|
||||
"networks.owns_the_cables_from_luanda_to":"Owns the cables from Luanda to Brazil, and always finds an angle on the deal.",
|
||||
"networks.owns_the_land_crossing_every_red":"Owns the land crossing every Red Sea cable needs. Collects tolls like a pharaoh.",
|
||||
"networks.pakistan_s_incumbent_every_session":"Pakistan’s incumbent. Every session comes with a firewall rule.",
|
||||
"networks.peers_with_anyone_and_wants_to":"Peers with anyone, and wants to know everything about your routes.",
|
||||
"networks.perth_wireless_and_fibre_pent_up":"Perth wireless and fibre, pent up on the wrong side of the Nullarbor. Hosts the cloud gaming rigs, so its traffic peaks when the school bell rings.",
|
||||
"networks.philippine_giant_peering_requests":"Philippine giant. Peering requests are reviewed over a cup of tea.",
|
||||
"networks.pink_eyeball_giant_peering_is":"Pink eyeball giant. Peering is available... for a monthly fee.",
|
||||
"networks.pink_loud_and_almost_entirely_ipv6":"Pink, loud and almost entirely IPv6-only. Giggles at your IPv4-only CDN.",
|
||||
"networks.polite_enormous_and_sorry_about_the":"Polite, enormous, and sorry about the bill.",
|
||||
"networks.portugal_s_incumbent_purrs_when_you":"Portugal’s incumbent. Purrs when you send it traffic.",
|
||||
"networks.prepaid_mobile_from_paraguay_to":"Prepaid mobile from Paraguay to Guatemala, with a logo that roars.",
|
||||
"networks.privacy_first_broadband_from_melbourne":"Privacy-first broadband from Melbourne since 2024. Found by maths before anyone saw it. Peers with anyone and still won’t tell you who’s watching what.",
|
||||
"networks.private_5g_and_business_fiber_from":"Private 5G and business fiber from Oostkamp. Its traffic arrives in sudden industrial bursts.",
|
||||
"networks.proxyminus_s_wholesale_arm_present":"Proxyminus’s wholesale arm. Present at nearly every exchange on Earth, and Belgian about it.",
|
||||
"networks.qatar_s_big_operator_paid_peering":"Qatar’s big operator. Paid peering only, and it sings the price list to you.",
|
||||
|
|
@ -2321,10 +2449,12 @@
|
|||
"networks.social_media_everyone_keeps_falling":"Social media. Everyone keeps falling for it.",
|
||||
"networks.social_network_with_perfect_vision":"Social network with perfect vision.",
|
||||
"networks.speedy_by_name_owns_a_slice":"Speedy by name. Owns a slice of the cable to Singapore and keeps buying smaller ISPs.",
|
||||
"networks.started_in_kansas_city_in_2012":"Started in Kansas City in 2012 and has been “coming to your city soon” ever since. Peers with anyone, almost everywhere.",
|
||||
"networks.stockpiled_bandwidth_in_2020_and":"Stockpiled bandwidth in 2020 and still has a few rolls left.",
|
||||
"networks.streams_40_of_evening_traffic_hands":"Streams 40% of evening traffic. Hands out free caches if you send enough eyeballs.",
|
||||
"networks.taiwan_s_incumbent_stays_calm_while":"Taiwan’s incumbent. Stays calm while ships drag their anchors over its cables.",
|
||||
"networks.tangerine_s_belgian_daughter_mobile":"Tangerine’s Belgian daughter: mobile, cable and a lot of Walloon highway dark fiber. Zesty.",
|
||||
"networks.tasmania_s_own_mowing_its_way":"Tasmania’s own, mowing its way across the mainland. Bills by the day, so you can change speed before the footy and back again after.",
|
||||
"networks.telstraya_s_budget_brand_cheaper":"Telstraya’s budget brand. Cheaper, cheerier, and it still won’t peer with you.",
|
||||
"networks.thailand_s_mobile_giant_its_coverage":"Thailand’s mobile giant. Its coverage maps are mostly true.",
|
||||
"networks.the_big_regional_carrier_sees":"The big regional carrier. Sees everything clearly, especially your invoice.",
|
||||
|
|
@ -2337,6 +2467,7 @@
|
|||
"networks.the_original_cdn_maybe_it_is":"The original CDN. Maybe it is already in your rack.",
|
||||
"networks.the_other_half_of_the_duopoly":"The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.",
|
||||
"networks.the_other_half_of_the_uae":"The other half of the UAE duopoly. Does what Etis-a-lot does, in a different colour.",
|
||||
"networks.the_phone_company_s_favourite_child":"The phone company’s favourite child. A hundred million phones behind it, and your peering request has been “under review” since 1996.",
|
||||
"networks.the_tier_1_that_grew_up":"The Tier 1 that grew up in Sicily. Its Seabone backbone owns the Mediterranean and reaches deep into the Americas, and it still calls Palermo home.",
|
||||
"networks.ukraine_s_biggest_mobile_network_has":"Ukraine’s biggest mobile network. Has kept working through things most networks never have to plan for.",
|
||||
"networks.updates_so_many_updates":"Updates. So many updates.",
|
||||
|
|
@ -2463,6 +2594,8 @@
|
|||
"peering_policy.their_policy_here_says_ix_peering":"Their policy here says \"IX peering by invitation only\". You were not invited.",
|
||||
"peering_policy.their_routers_in_this_city_are":"Their routers in this city are \"at capacity\". They are not.",
|
||||
"peering_policy.tried_a_remote_peer_once_it":"Tried a remote peer once. It flapped during a product launch. Never again.",
|
||||
"pitcairn.uk_grant_mo":"UK grant {mo}/mo",
|
||||
"pitcairn.uk_grant_mo_once_islanders":"UK grant {mo}/mo once the islanders are online",
|
||||
"pnis.a_new_region_is_coming_online":"A new region is coming online soon. It has been coming online soon since 2019.",
|
||||
"pnis.about_n_days_to_go_nothing":"About {n} days to go. Nothing to do but wait, or chase it.",
|
||||
"pnis.augment_with_net_delivered_in_city":"<b>Augment with {net} delivered in {city}.</b><br>Now {port}.",
|
||||
|
|
@ -2721,7 +2854,9 @@
|
|||
"save.that_file_is_too_big_to":"<b>That file is too big to be a save.</b>",
|
||||
"save.that_network_went_bankrupt_it_cannot":"That network went bankrupt. It cannot be brought back, only mourned.",
|
||||
"save.that_save_has_a_pop_in":"That save has a POP in a city this version does not know ({city}).",
|
||||
"save.this_browser_is_not_letting_the":"<b>Your game is not being saved.</b> This browser is not letting the game store anything (a private window, or site data turned off). Export a save to keep your network.",
|
||||
"save.this_replaces_name_export_it_first":"This replaces {name}. Export it first if you want to keep it.",
|
||||
"save.your_network_is_too_big_to":"<b>Your game is not being saved.</b> Your network has grown too big for this browser's storage. Export a save now and keep the file: it is your backup.",
|
||||
"scenario_progress.goal_goal_time_d_days_start":"<b>Goal:</b> {goal} · <b>Time:</b> {d} days · start in {city}",
|
||||
"scenario_progress.goal_was_not_reached_in_d":"{goal} was not reached in {d} days. Keep playing this network as free play, or try again.",
|
||||
"scenario_progress.just_in_time":"Just in time.",
|
||||
|
|
@ -2882,16 +3017,19 @@
|
|||
"supply_chain.until_date_at_p":"until {date}, at +{p}",
|
||||
"supply_chain.what_p_n_days_left":"{what} +{p} · {n} days left",
|
||||
"supply_chain.your_price_lock_covers_you_until":"Your price lock covers you until {date}.",
|
||||
"title.anywhere_else":"Anywhere else",
|
||||
"title.asia_hub_great_peering_far_from":"Asia hub. Great peering, far from home.",
|
||||
"title.back_to_my_network":"Back to my network",
|
||||
"title.big_hungry_market_few_providers":"Big hungry market, few providers.",
|
||||
"title.build_an_internet_lay_fiber_between":"Build an internet. Lay fiber between cities, buy transit, peer at exchanges, sign up businesses, and keep the eyeballs happy while backhoes, sharks and route leaks do their best to stop you.",
|
||||
"title.chat_on_signal":"Chat on Signal",
|
||||
"title.choose":"Choose…",
|
||||
"title.continue_name_date":"Continue {name} · {date}",
|
||||
"title.cookieless_stats_no_tracking":"Cookieless stats, no tracking",
|
||||
"title.crossroads_of_europe_de_kicks_ix":"Crossroads of Europe. DE-KICKS IX, cheap transit.",
|
||||
"title.hard_mode_everything_overseas_costs":"Hard mode. Everything overseas costs a fortune, locals pay top dollar, mostly to the Nearly Broadband Network, and everything else is trying to kill you.",
|
||||
"title.hard_mode_pricey_everything":"Hard mode. Pricey everything, and the wildlife wants you dead.",
|
||||
"title.huge_eyeball_market_pricey":"Huge eyeball market. Pricey neighbours.",
|
||||
"title.n_more_cities_with_transit":{"one":"{n} more city with transit to buy","other":"{n} more cities with transit to buy"},
|
||||
"title.name_your_network":"Name your network",
|
||||
"title.new_in_series_of_tubes_v":"New in Series of Tubes {v}",
|
||||
"title.pick_your_home_city":"Pick your home city",
|
||||
|
|
|
|||
|
|
@ -26,7 +26,15 @@
|
|||
@media (prefers-reduced-motion:reduce){:root:not(.anim-force) .coach-glow{animation:none;outline:3px solid #FF4F9A}}
|
||||
:root.no-anim .coach-glow{outline:3px solid #FF4F9A}
|
||||
.setline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0}
|
||||
.setline>span{font-weight:800}
|
||||
.setline>span,.setline>label{font-weight:800}
|
||||
/* Title screen: the big start button across the top, the three others below it, all the same size. */
|
||||
.btns.tcta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
|
||||
.btns.tcta .b{margin:0;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.15;white-space:normal;hyphens:auto;-webkit-hyphens:auto;min-height:40px;padding:4px 6px;font-size:14px}
|
||||
.btns.tcta .b.big{grid-column:1/-1;font-size:18px;padding:7px 18px 5px}
|
||||
/* Dropdowns that look like the game's buttons. 16px text: iOS zooms into anything smaller when it is tapped. */
|
||||
select.pick{-webkit-appearance:none;appearance:none;font:800 16px var(--display);color:var(--ink);background:var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2640' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;border:3px solid var(--ink);border-radius:12px;padding:6px 36px 6px 12px;min-height:44px;cursor:pointer;box-shadow:0 3px 0 var(--ink)}
|
||||
select.pick:focus-visible{outline:3px solid #FF4F9A;outline-offset:2px}
|
||||
label.f+select.pick{width:100%}
|
||||
.thb{font:inherit;font-weight:900;background:none;border:0;padding:0;cursor:pointer;color:inherit}
|
||||
.ttop{margin:4px 0;padding:4px 8px;border-left:3px solid #FF8A3D;background:#FFF6EC;border-radius:6px}
|
||||
.ibx{border:2px solid var(--line,#DDE3EE);border-radius:12px;padding:8px 10px;margin:8px 0;background:#fff}.ibx .nm{font-weight:800}.ibx.mp{border-color:#FF5A5F;background:#FFF1F1}.ibx.ai{border-color:#8E5CF7;background:#F7F2FF}.ibx .term{font-size:11.5px;white-space:pre-wrap;max-height:180px;overflow:auto}.ibx .cnt{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--me);color:#fff;font-size:11px;text-align:center}.ibx .cnt.red{background:#FF5A5F}
|
||||
|
|
@ -97,6 +105,15 @@ input.t{width:100%;box-sizing:border-box;border:3px solid var(--ink);border-radi
|
|||
.start.on{background:#FFE3F0;border-color:var(--me);box-shadow:0 3px 0 var(--me)}
|
||||
.start b{font-family:var(--display);font-size:17px;display:block}
|
||||
.start span{font-size:12px;color:var(--ink2);line-height:1.3;display:block}
|
||||
/* Home cities: compact tiles stacked in one column, the dropdown for any other city last. */
|
||||
.starts.homes{display:flex;flex-direction:column;gap:6px}
|
||||
.homes .start{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:2px;padding:6px 12px;box-shadow:0 2px 0 var(--ink)}
|
||||
.homes .start.on{box-shadow:0 2px 0 var(--me)}
|
||||
.homes .start b{font-size:16px;flex:0 0 8.4em}
|
||||
.homes .start span{flex:1 1 10em;min-width:0}
|
||||
.homes .start.own select.pick{flex:1 1 100%;margin:4px 0 2px;min-height:40px;font-size:16px;box-shadow:none;border-width:2px;padding-right:30px;background-position:right 9px center}
|
||||
/* In Settings it sits next to small On/Off pills: same 16px text, slimmer frame. */
|
||||
.setline select.pick{min-height:36px;padding:4px 30px 4px 10px;border-width:2px;border-radius:10px;box-shadow:0 2px 0 var(--ink);background-position:right 9px center}
|
||||
.tiers{display:grid;gap:7px;margin-top:10px}
|
||||
.tierbtn{display:flex;align-items:center;gap:10px;border:3px solid var(--ink);border-radius:13px;padding:8px 12px;background:var(--paper);cursor:pointer;box-shadow:0 3px 0 var(--ink);text-align:left}
|
||||
.tierbtn:hover{background:#FFF6CF}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue