From b8135fbb7f47b3450edfb5e00142f42d1a99e4c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Bo=C2=89=C2=89es?= Date: Sat, 30 Mar 2024 12:20:19 +0100 Subject: [PATCH] Changed airport links to be more clever --- dist/Export/Markdown.js | 8 ++++---- dist/Export/SkyVector.js | 8 ++++++++ dist/Web/Components.js | 4 ++-- docs/carls_homecoming/00_get_to_know_the_pitts_s-2.md | 4 ++-- docs/carls_homecoming/01_off_to_aeroe.md | 4 ++-- docs/carls_homecoming/02_bridge_to_koebenhavn.md | 4 ++-- docs/carls_homecoming/03_crossing_to_sweden.md | 4 ++-- docs/carls_homecoming/04_letters_to_america.md | 4 ++-- docs/carls_homecoming/05_the_swedish_hinterlands.md | 4 ++-- .../06_the_lake_where_gripens_play.md | 4 ++-- docs/carls_homecoming/07_carls_toyland.md | 4 ++-- docs/carls_homecoming/08_outskirts_of_stockholm.md | 4 ++-- docs/carls_homecoming/09_finally_stockholm.md | 4 ++-- docs/carls_homecoming/10_aland_homecoming.md | 4 ++-- docs/carls_homecoming/11_wave_good-bye.md | 4 ++-- docs/mach_loop/Low_Level_Highlander.md | 4 ++-- docs/mach_loop/Mach_Loop.md | 4 ++-- docs/mach_loop/Mach_Loop_from_the_Sea.md | 4 ++-- docs/mach_loop/Sidewinder_Low_Level.md | 4 ++-- docs/mach_loop/Star_Wars_Canyon.md | 4 ++-- src/Export/Markdown.ts | 8 ++++---- src/Export/SkyVector.ts | 11 +++++++++++ src/Web/Components.ts | 8 ++------ 23 files changed, 65 insertions(+), 50 deletions(-) diff --git a/dist/Export/Markdown.js b/dist/Export/Markdown.js index 57eb6e5..56b29a4 100644 --- a/dist/Export/Markdown.js +++ b/dist/Export/Markdown.js @@ -61,10 +61,10 @@ Check your [Sky Vector Flight Plan](${s.toString()}). You may also want to take ### Airports -| | Location | Country | Date & time | Local solar time | Sun | -| ----------- | --------------------------------------------- | ------- | ----------------- | ---------------- | --- | -| Departure | [${m.origin_icao}](https://www.pilotnav.com/airport/${m.origin_icao}) | ${m.origin_country} | ${this.outputDateTime(m.conditions.time.dateTime)} | ${sunStateOrigin.localSolarTime} | ${this.outputSunState(sunStateOrigin)} | -| Destination | [${m.destination_icao}](https://www.pilotnav.com/airport/${m.destination_icao}) | ${m.destination_country} | ${this.outputDateTime(time)} | ${sunStateDestination.localSolarTime} | ${this.outputSunState(sunStateDestination)} | +| | Location | Country | Date & time | Local solar time | Sun | +| ----------- | ------------------------------------------- | ------- | ----------------- | ---------------- | --- | +| Departure | [${m.origin_icao}](${SkyVector.airportLink(m.origin_icao)}) | ${m.origin_country} | ${this.outputDateTime(m.conditions.time.dateTime)} | ${sunStateOrigin.localSolarTime} | ${this.outputSunState(sunStateOrigin)} | +| Destination | [${m.destination_icao}](${SkyVector.airportLink(m.destination_icao)}) | ${m.destination_country} | ${this.outputDateTime(time)} | ${sunStateDestination.localSolarTime} | ${this.outputSunState(sunStateDestination)} | ### Checkpoints diff --git a/dist/Export/SkyVector.js b/dist/Export/SkyVector.js index 589a84e..3d7c2b6 100644 --- a/dist/Export/SkyVector.js +++ b/dist/Export/SkyVector.js @@ -27,4 +27,12 @@ export class SkyVector { parameters.push("fpl=" + encodeURIComponent("N" + cruise + "A" + alt + " " + this.getCheckpoints(filterRunway).join(" "))); return "https://skyvector.com/?" + parameters.join("&"); } + /** + * @param icaoCode of airport + * @returns URL to airport procedures and information + */ + static airportLink(icaoCode) { + return ((icaoCode.at(0) === "K" ? "https://skyvector.com/airport/" : "https://www.pilotnav.com/airport/") + + encodeURIComponent(icaoCode)); + } } diff --git a/dist/Web/Components.js b/dist/Web/Components.js index 0d618f4..586d33b 100644 --- a/dist/Web/Components.js +++ b/dist/Web/Components.js @@ -158,7 +158,7 @@ export class ComponentsAirports extends ComponentsOutputtable { let html = ""; html += this.outputLine([ "Departure", - `${Quote.html(m.origin_icao)}`, + `${Quote.html(m.origin_icao)}`, m.origin_country, this.outputDateTime(m.conditions.time.dateTime), sunStateOrigin.localSolarTime, @@ -166,7 +166,7 @@ export class ComponentsAirports extends ComponentsOutputtable { ]); html += this.outputLine([ "Destination", - `${Quote.html(m.destination_icao)}`, + `${Quote.html(m.destination_icao)}`, m.destination_country, this.outputDateTime(time), sunStateDestination.localSolarTime, diff --git a/docs/carls_homecoming/00_get_to_know_the_pitts_s-2.md b/docs/carls_homecoming/00_get_to_know_the_pitts_s-2.md index 9633b75..b42c103 100644 --- a/docs/carls_homecoming/00_get_to_know_the_pitts_s-2.md +++ b/docs/carls_homecoming/00_get_to_know_the_pitts_s-2.md @@ -26,8 +26,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.53763457444899, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ----------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ----------- | | Departure | [EDHI](https://www.pilotnav.com/airport/EDHI) | 2022-08-15T07:09Z | 07:44 | ☀ Day @ 26° | | Destination | [EDHI](https://www.pilotnav.com/airport/EDHI) | 2022-08-15T07:16Z | 07:51 | ☀ Day @ 27° | diff --git a/docs/carls_homecoming/01_off_to_aeroe.md b/docs/carls_homecoming/01_off_to_aeroe.md index f8335e7..4a05793 100644 --- a/docs/carls_homecoming/01_off_to_aeroe.md +++ b/docs/carls_homecoming/01_off_to_aeroe.md @@ -32,8 +32,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.53760657450579, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ----------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ----------- | | Origin | [EDHI](https://www.pilotnav.com/airport/EDHI) | 2022-10-23T07:05Z | 08:00 | ☀ Day @ 7° | | Destination | [EKAE](https://www.pilotnav.com/airport/EKAE) | 2022-10-23T07:46Z | 08:43 | ☀ Day @ 11° | diff --git a/docs/carls_homecoming/02_bridge_to_koebenhavn.md b/docs/carls_homecoming/02_bridge_to_koebenhavn.md index 8373f0a..8b064fd 100644 --- a/docs/carls_homecoming/02_bridge_to_koebenhavn.md +++ b/docs/carls_homecoming/02_bridge_to_koebenhavn.md @@ -32,8 +32,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=54.85408665805144, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Origin | [EKAE](https://www.pilotnav.com/airport/EKAE) | 2022-10-30T06:10Z | 07:08 | ☼ Dusk @ -3° | | Destination | [EKRK](https://www.pilotnav.com/airport/EKRK) | 2022-10-30T06:43Z | 07:47 | ☀ Day @ 2° | diff --git a/docs/carls_homecoming/03_crossing_to_sweden.md b/docs/carls_homecoming/03_crossing_to_sweden.md index db2b195..2e050e9 100644 --- a/docs/carls_homecoming/03_crossing_to_sweden.md +++ b/docs/carls_homecoming/03_crossing_to_sweden.md @@ -30,8 +30,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=55.591431052724666 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Origin | [EKRK](https://www.pilotnav.com/airport/EKRK) | 2022-11-05T06:30Z | 07:34 | ☼ Dusk @ -1° | | Destination | [ESTA](https://www.pilotnav.com/airport/ESTA) | 2022-11-05T07:05Z | 08:12 | ☀ Day @ 3° | diff --git a/docs/carls_homecoming/04_letters_to_america.md b/docs/carls_homecoming/04_letters_to_america.md index a1a6cc5..8028324 100644 --- a/docs/carls_homecoming/04_letters_to_america.md +++ b/docs/carls_homecoming/04_letters_to_america.md @@ -26,8 +26,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=56.28662121770193, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ---------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ---------- | | Origin | [ESTA](https://www.pilotnav.com/airport/ESTA) | 2022-11-06T07:19Z | 08:26 | ☀ Day @ 4° | | Destination | [ESGG](https://www.pilotnav.com/airport/ESGG) | 2022-11-06T07:59Z | 09:04 | ☀ Day @ 7° | diff --git a/docs/carls_homecoming/05_the_swedish_hinterlands.md b/docs/carls_homecoming/05_the_swedish_hinterlands.md index 7d0a51a..7f89543 100644 --- a/docs/carls_homecoming/05_the_swedish_hinterlands.md +++ b/docs/carls_homecoming/05_the_swedish_hinterlands.md @@ -28,8 +28,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=57.67479433048351, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ---------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ---------- | | Origin | [ESGG](https://www.pilotnav.com/airport/ESGG) | 2022-11-12T07:19Z | 08:23 | ☀ Day @ 2° | | Destination | [ESGJ](https://www.pilotnav.com/airport/ESGJ) | 2022-11-12T07:47Z | 08:58 | ☀ Day @ 5° | diff --git a/docs/carls_homecoming/06_the_lake_where_gripens_play.md b/docs/carls_homecoming/06_the_lake_where_gripens_play.md index 6f00dbb..f5d3272 100644 --- a/docs/carls_homecoming/06_the_lake_where_gripens_play.md +++ b/docs/carls_homecoming/06_the_lake_where_gripens_play.md @@ -28,8 +28,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=57.751506218186606 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ----------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ----------- | | Origin | [ESGJ](https://www.pilotnav.com/airport/ESGJ) | 2022-11-13T08:49Z | 10:00 | ☀ Day @ 10° | | Destination | [ESIA](https://www.pilotnav.com/airport/ESIA) | 2022-11-13T09:12Z | 10:25 | ☀ Day @ 10° | diff --git a/docs/carls_homecoming/07_carls_toyland.md b/docs/carls_homecoming/07_carls_toyland.md index 8209625..8c7e4a6 100644 --- a/docs/carls_homecoming/07_carls_toyland.md +++ b/docs/carls_homecoming/07_carls_toyland.md @@ -28,8 +28,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=58.520264578726795 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ---------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ---------- | | Origin | [ESIA](https://www.pilotnav.com/airport/ESIA) | 2022-11-20T07:45Z | 08:56 | ☀ Day @ 3° | | Destination | [ESSL](https://www.pilotnav.com/airport/ESSL) | 2022-11-20T08:03Z | 09:19 | ☀ Day @ 5° | diff --git a/docs/carls_homecoming/08_outskirts_of_stockholm.md b/docs/carls_homecoming/08_outskirts_of_stockholm.md index b0b6bdb..868c0f1 100644 --- a/docs/carls_homecoming/08_outskirts_of_stockholm.md +++ b/docs/carls_homecoming/08_outskirts_of_stockholm.md @@ -30,8 +30,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=58.40795780130591, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Origin | [ESSL](https://www.pilotnav.com/airport/ESSL) | 2022-11-26T06:49Z | 08:03 | ☼ Dusk @ -3° | | Destination | [ESKN](https://www.pilotnav.com/airport/ESKN) | 2022-11-26T07:13Z | 08:32 | ☼ Dusk @ -1° | diff --git a/docs/carls_homecoming/09_finally_stockholm.md b/docs/carls_homecoming/09_finally_stockholm.md index 1f86f0c..5be426b 100644 --- a/docs/carls_homecoming/09_finally_stockholm.md +++ b/docs/carls_homecoming/09_finally_stockholm.md @@ -28,8 +28,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=58.784541072260765 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Origin | [ESKN](https://www.pilotnav.com/airport/ESKN) | 2022-11-26T07:09Z | 08:28 | ☼ Dusk @ -1° | | Destination | [ESSB](https://www.pilotnav.com/airport/ESSB) | 2022-11-26T07:33Z | 08:56 | ☀ Day @ 1° | diff --git a/docs/carls_homecoming/10_aland_homecoming.md b/docs/carls_homecoming/10_aland_homecoming.md index 63a70d2..af583cc 100644 --- a/docs/carls_homecoming/10_aland_homecoming.md +++ b/docs/carls_homecoming/10_aland_homecoming.md @@ -34,8 +34,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=59.349212876682174 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Origin | [ESSB](https://www.pilotnav.com/airport/ESSB) | 2022-11-27T07:19Z | 08:42 | ☼ Dusk @ -0° | | Destination | [EFMA](https://www.pilotnav.com/airport/EFMA) | 2022-11-27T07:53Z | 09:24 | ☀ Day @ 2° | diff --git a/docs/carls_homecoming/11_wave_good-bye.md b/docs/carls_homecoming/11_wave_good-bye.md index 9124916..71ddf3e 100644 --- a/docs/carls_homecoming/11_wave_good-bye.md +++ b/docs/carls_homecoming/11_wave_good-bye.md @@ -26,8 +26,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=60.123931066290545 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ---------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ---------- | | Origin | [EFMA](https://www.pilotnav.com/airport/EFMA) | 2022-12-10T07:50Z | 09:16 | ☀ Day @ 0° | | Destination | [EFMA](https://www.pilotnav.com/airport/EFMA) | 2022-12-10T08:28Z | 09:54 | ☀ Day @ 3° | diff --git a/docs/mach_loop/Low_Level_Highlander.md b/docs/mach_loop/Low_Level_Highlander.md index 7b2cd14..c98e7d2 100644 --- a/docs/mach_loop/Low_Level_Highlander.md +++ b/docs/mach_loop/Low_Level_Highlander.md @@ -22,8 +22,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=57.71113752425876, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Departure | [EGQS](https://www.pilotnav.com/airport/EGQS) | 2022-12-17T09:02Z | 08:51 | ☼ Dusk @ -0° | | Destination | [EGQS](https://www.pilotnav.com/airport/EGQS) | 2022-12-17T09:38Z | 09:27 | ☀ Day @ 3° | diff --git a/docs/mach_loop/Mach_Loop.md b/docs/mach_loop/Mach_Loop.md index d789d90..8800564 100644 --- a/docs/mach_loop/Mach_Loop.md +++ b/docs/mach_loop/Mach_Loop.md @@ -22,8 +22,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.24984430214315, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ----------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ----------- | | Origin | [EGOV](https://www.pilotnav.com/airport/EGOV) | 2022-12-01T09:56Z | 09:48 | ☀ Day @ 9° | | Destination | [EGOV](https://www.pilotnav.com/airport/EGOV) | 2022-12-01T10:20Z | 10:11 | ☀ Day @ 11° | diff --git a/docs/mach_loop/Mach_Loop_from_the_Sea.md b/docs/mach_loop/Mach_Loop_from_the_Sea.md index 053d75a..1a99486 100644 --- a/docs/mach_loop/Mach_Loop_from_the_Sea.md +++ b/docs/mach_loop/Mach_Loop_from_the_Sea.md @@ -20,8 +20,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.24979742928385, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ------------ | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ------------ | | Departure | [EGOV](https://www.pilotnav.com/airport/EGOV) | 2022-12-24T08:30Z | 08:11 | ☼ Dusk @ -1° | | Destination | [EGOV](https://www.pilotnav.com/airport/EGOV) | 2022-12-24T08:54Z | 08:35 | ☀ Day @ 2° | diff --git a/docs/mach_loop/Sidewinder_Low_Level.md b/docs/mach_loop/Sidewinder_Low_Level.md index cdfd1eb..7e40bac 100644 --- a/docs/mach_loop/Sidewinder_Low_Level.md +++ b/docs/mach_loop/Sidewinder_Low_Level.md @@ -24,8 +24,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=34.91821934264146, ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ----------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ----------- | | Departure | [KEDW](https://www.pilotnav.com/airport/KEDW) | 2023-01-14T16:00Z | 07:59 | ☀ Day @ 10° | | Destination | [KEDW](https://www.pilotnav.com/airport/KEDW) | 2023-01-14T16:39Z | 08:38 | ☀ Day @ 16° | diff --git a/docs/mach_loop/Star_Wars_Canyon.md b/docs/mach_loop/Star_Wars_Canyon.md index 3d46201..b51bab4 100644 --- a/docs/mach_loop/Star_Wars_Canyon.md +++ b/docs/mach_loop/Star_Wars_Canyon.md @@ -22,8 +22,8 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=34.908089,-117.885 ### Airports -| | Location | Date & time | Local solar time | Sun | -| ----------- | ------------------------------------------ | ----------------- | ---------------- | ----------- | +| | Location | Date & time | Local solar time | Sun | +| ----------- | --------------------------------------------- | ----------------- | ---------------- | ----------- | | Departure | [KEDW](https://www.pilotnav.com/airport/KEDW) | 2022-08-15T18:00Z | 10:04 | ☀ Day @ 56° | | Destination | [KEDW](https://www.pilotnav.com/airport/KEDW) | 2022-08-15T18:30Z | 10:34 | ☀ Day @ 61° | diff --git a/src/Export/Markdown.ts b/src/Export/Markdown.ts index 135e109..959889f 100644 --- a/src/Export/Markdown.ts +++ b/src/Export/Markdown.ts @@ -80,14 +80,14 @@ Check your [Sky Vector Flight Plan](${s.toString()}). You may also want to take ### Airports -| | Location | Country | Date & time | Local solar time | Sun | -| ----------- | --------------------------------------------- | ------- | ----------------- | ---------------- | --- | -| Departure | [${m.origin_icao}](https://www.pilotnav.com/airport/${m.origin_icao}) | ${ +| | Location | Country | Date & time | Local solar time | Sun | +| ----------- | ------------------------------------------- | ------- | ----------------- | ---------------- | --- | +| Departure | [${m.origin_icao}](${SkyVector.airportLink(m.origin_icao)}) | ${ m.origin_country } | ${this.outputDateTime(m.conditions.time.dateTime)} | ${ sunStateOrigin.localSolarTime } | ${this.outputSunState(sunStateOrigin)} | -| Destination | [${m.destination_icao}](https://www.pilotnav.com/airport/${m.destination_icao}) | ${ +| Destination | [${m.destination_icao}](${SkyVector.airportLink(m.destination_icao)}) | ${ m.destination_country } | ${this.outputDateTime(time)} | ${sunStateDestination.localSolarTime} | ${this.outputSunState( sunStateDestination diff --git a/src/Export/SkyVector.ts b/src/Export/SkyVector.ts index 342c8bf..5c40683 100644 --- a/src/Export/SkyVector.ts +++ b/src/Export/SkyVector.ts @@ -36,4 +36,15 @@ export class SkyVector { return "https://skyvector.com/?" + parameters.join("&"); } + + /** + * @param icaoCode of airport + * @returns URL to airport procedures and information + */ + static airportLink(icaoCode: string): string { + return ( + (icaoCode.at(0) === "K" ? "https://skyvector.com/airport/" : "https://www.pilotnav.com/airport/") + + encodeURIComponent(icaoCode) + ); + } } diff --git a/src/Web/Components.ts b/src/Web/Components.ts index 06f8bed..a323676 100644 --- a/src/Web/Components.ts +++ b/src/Web/Components.ts @@ -197,9 +197,7 @@ export class ComponentsAirports extends ComponentsOutputtable { html += this.outputLine([ "Departure", - `${Quote.html( - m.origin_icao - )}`, + `${Quote.html(m.origin_icao)}`, m.origin_country, this.outputDateTime(m.conditions.time.dateTime), sunStateOrigin.localSolarTime, @@ -207,9 +205,7 @@ export class ComponentsAirports extends ComponentsOutputtable { ]); html += this.outputLine([ "Destination", - `${Quote.html(m.destination_icao)}`, + `${Quote.html(m.destination_icao)}`, m.destination_country, this.outputDateTime(time), sunStateDestination.localSolarTime,