Say why a link is down when a closed border took it (#329)
The Gulf spat and Russia's sovereign internet drill take links down in linkDown(), and the map draws them broken, but the link panels only explained cuts and incidents, so a Doha–Abu Dhabi wave looked healthy in its panel with no way to fix it. The panels now show a 'Border closed' section with the days left, and the wave and dark fiber modals warn before leasing across the closed Qatar border.
This commit is contained in:
parent
e0671c02be
commit
36629195cc
12 changed files with 89 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ function openLinkModal(a,b){
|
|||
openModal(head+`<p class="lead" style="margin-top:10px">${dry?tr('link_modal.no_subsea_cable_lands_in_city',{city:CITY[dry].name,near:CITY[nearLanding(dry)].name}):bare?(road?tr('link_modal.no_subsea_cable_lands_in_city_land',{city:CITY[bare].name}):tr('link_modal.no_subsea_cable_lands_in_city_own',{city:CITY[bare].name})):tr('link_modal.no_subsea_cable_lands_in_both',{a:CITY[a].name,b:CITY[b].name,list:fr.join(', ')})}</p>${(cabOpen()?!ownCabWhy(a,b):bare)?ownCabTeaser(a,b):''}`);return;}
|
||||
if(isSub(a,b)&&S.ev.landban&&S.ev.landban.until>S.day&&[a,b].includes(S.ev.landban.city)){openModal(head+`<p class="lead" style="margin-top:10px">${tr('link_modal.the_landing_permit_dispute_in_city',{city:CITY[S.ev.landban.city].name,n:S.ev.landban.until-S.day})}</p>`);return;}
|
||||
if(uaePair(a,b)||andesPair(a,b)||rainPair(a,b)||borderPair(a,b))route+=`<p class="note" style="margin-top:8px">${landWhy(a,b)}</p>`;
|
||||
if(S.ev.gulf>S.day&&gulfPair(a,b))route+=`<p class="why" style="margin-top:8px">${tr('link_modal.the_borders_around_qatar_are_closed')} ${tr('link_panels.back_in_n_days',{n:S.ev.gulf-S.day})}</p>`;
|
||||
route+=`<p class="note" style="margin-top:6px">📈 ${esc(marketNote(a,b,sub))}</p>`;
|
||||
const wr=waveRoute(a,b,mult,border);
|
||||
openModal(`${head}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue