Skip to content

Commit

Permalink
Fixed METAR button diabling
Browse files Browse the repository at this point in the history
  • Loading branch information
fboes committed May 4, 2024
1 parent 016fba7 commit 3b039b0
Show file tree
Hide file tree
Showing 25 changed files with 79 additions and 78 deletions.
4 changes: 2 additions & 2 deletions dist/Export/Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Check your [Sky Vector Flight Plan](${s.toString()}). You may also want to take
### Airports
| | Location | Country | Date & time | Local solar time | Sun |
| ----------- | ------------------------------------------- | ------- | ----------------- | ---------------- | --- |
| | 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)} |
Expand Down
2 changes: 1 addition & 1 deletion dist/Export/SkyVector.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class SkyVector {
* @returns URL to airport procedures and information
*/
static airportLink(icaoCode) {
return ((icaoCode.at(0) === "K" ? "https://skyvector.com/airport/" : "https://www.pilotnav.com/airport/") +
return ((icaoCode.at(0) === "K" ? "https://skyvector.com/airport/" : "https://opennav.com/airport/") +
encodeURIComponent(icaoCode));
}
}
4 changes: 2 additions & 2 deletions dist/Web/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ export class App {
this.elements.metar.innerText = "check the weather for " + this.mission.destination_icao;
}
else {
this.elements.makeMetarDept.disabled = false;
this.elements.makeMetarDest.disabled = false;
this.elements.makeMetarDept.disabled = true;
this.elements.makeMetarDest.disabled = true;
}
this.elements.turn_radius.value = ((this.mission.cruise_speed * (this.mission.turn_time / 60)) /
(2 * Math.PI)).toFixed(1);
Expand Down
Empty file modified dist/aerofly-missions.js
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ <h4>Fligh plan help</h4>
<h4>Navigation help</h4>
<p>Using flight level separation will convert all altitudes in your flight plan to the <a href="https://en.wikipedia.org/wiki/Flight_level" target="help">correct altitudes needed for separation</a>.</p>
<p>Switching between separations repeatedly will increase the altitude, because separation will always round up to prevent a flight plan hitting terrain.</p>
<p>You may want to set the magnetic declination manually by subtracting the magnetic heading from the true heading to get the magnetic declination.</p>
<button data-handler="modal-close" class="icon" title="Close navigation help"><span>Close navigation help</span></button>
</dialog>
<dialog id="select-mission-modal">
Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/00_get_to_know_the_pitts_s-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.53763457444899,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ----------- |
| Departure | [EDHI](https://opennav.com/airport/EDHI) | 2022-08-15T07:09Z | 07:44 | ☀ Day @ 26° |
| Destination | [EDHI](https://opennav.com/airport/EDHI) | 2022-08-15T07:16Z | 07:51 | ☀ Day @ 27° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/01_off_to_aeroe.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.53760657450579,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ----------- |
| Origin | [EDHI](https://opennav.com/airport/EDHI) | 2022-10-23T07:05Z | 08:00 | ☀ Day @ 7° |
| Destination | [EKAE](https://opennav.com/airport/EKAE) | 2022-10-23T07:46Z | 08:43 | ☀ Day @ 11° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/02_bridge_to_koebenhavn.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=54.85408665805144,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Origin | [EKAE](https://opennav.com/airport/EKAE) | 2022-10-30T06:10Z | 07:08 | ☼ Dusk @ -3° |
| Destination | [EKRK](https://opennav.com/airport/EKRK) | 2022-10-30T06:43Z | 07:47 | ☀ Day @ 2° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/03_crossing_to_sweden.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=55.591431052724666

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Origin | [EKRK](https://opennav.com/airport/EKRK) | 2022-11-05T06:30Z | 07:34 | ☼ Dusk @ -1° |
| Destination | [ESTA](https://opennav.com/airport/ESTA) | 2022-11-05T07:05Z | 08:12 | ☀ Day @ 3° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/04_letters_to_america.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=56.28662121770193,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ---------- |
| Origin | [ESTA](https://opennav.com/airport/ESTA) | 2022-11-06T07:19Z | 08:26 | ☀ Day @ 4° |
| Destination | [ESGG](https://opennav.com/airport/ESGG) | 2022-11-06T07:59Z | 09:04 | ☀ Day @ 7° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/05_the_swedish_hinterlands.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=57.67479433048351,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ---------- |
| Origin | [ESGG](https://opennav.com/airport/ESGG) | 2022-11-12T07:19Z | 08:23 | ☀ Day @ 2° |
| Destination | [ESGJ](https://opennav.com/airport/ESGJ) | 2022-11-12T07:47Z | 08:58 | ☀ Day @ 5° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/06_the_lake_where_gripens_play.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=57.751506218186606

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ----------- |
| Origin | [ESGJ](https://opennav.com/airport/ESGJ) | 2022-11-13T08:49Z | 10:00 | ☀ Day @ 10° |
| Destination | [ESIA](https://opennav.com/airport/ESIA) | 2022-11-13T09:12Z | 10:25 | ☀ Day @ 10° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/07_carls_toyland.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=58.520264578726795

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ---------- |
| Origin | [ESIA](https://opennav.com/airport/ESIA) | 2022-11-20T07:45Z | 08:56 | ☀ Day @ 3° |
| Destination | [ESSL](https://opennav.com/airport/ESSL) | 2022-11-20T08:03Z | 09:19 | ☀ Day @ 5° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/08_outskirts_of_stockholm.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=58.40795780130591,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Origin | [ESSL](https://opennav.com/airport/ESSL) | 2022-11-26T06:49Z | 08:03 | ☼ Dusk @ -3° |
| Destination | [ESKN](https://opennav.com/airport/ESKN) | 2022-11-26T07:13Z | 08:32 | ☼ Dusk @ -1° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/09_finally_stockholm.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=58.784541072260765

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Origin | [ESKN](https://opennav.com/airport/ESKN) | 2022-11-26T07:09Z | 08:28 | ☼ Dusk @ -1° |
| Destination | [ESSB](https://opennav.com/airport/ESSB) | 2022-11-26T07:33Z | 08:56 | ☀ Day @ 1° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/10_aland_homecoming.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=59.349212876682174

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Origin | [ESSB](https://opennav.com/airport/ESSB) | 2022-11-27T07:19Z | 08:42 | ☼ Dusk @ -0° |
| Destination | [EFMA](https://opennav.com/airport/EFMA) | 2022-11-27T07:53Z | 09:24 | ☀ Day @ 2° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/carls_homecoming/11_wave_good-bye.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=60.123931066290545

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ---------- |
| Origin | [EFMA](https://opennav.com/airport/EFMA) | 2022-12-10T07:50Z | 09:16 | ☀ Day @ 0° |
| Destination | [EFMA](https://opennav.com/airport/EFMA) | 2022-12-10T08:28Z | 09:54 | ☀ Day @ 3° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/mach_loop/Low_Level_Highlander.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=57.71113752425876,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Departure | [EGQS](https://opennav.com/airport/EGQS) | 2022-12-17T09:02Z | 08:51 | ☼ Dusk @ -0° |
| Destination | [EGQS](https://opennav.com/airport/EGQS) | 2022-12-17T09:38Z | 09:27 | ☀ Day @ 3° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/mach_loop/Mach_Loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.24984430214315,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ----------- |
| Origin | [EGOV](https://opennav.com/airport/EGOV) | 2022-12-01T09:56Z | 09:48 | ☀ Day @ 9° |
| Destination | [EGOV](https://opennav.com/airport/EGOV) | 2022-12-01T10:20Z | 10:11 | ☀ Day @ 11° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/mach_loop/Mach_Loop_from_the_Sea.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=53.24979742928385,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ------------ |
| Departure | [EGOV](https://opennav.com/airport/EGOV) | 2022-12-24T08:30Z | 08:11 | ☼ Dusk @ -1° |
| Destination | [EGOV](https://opennav.com/airport/EGOV) | 2022-12-24T08:54Z | 08:35 | ☀ Day @ 2° |

### Checkpoints

Expand Down
8 changes: 4 additions & 4 deletions docs/mach_loop/Sidewinder_Low_Level.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Check your [Sky Vector Flight Plan](https://skyvector.com/?ll=34.91821934264146,

### Airports

| | 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° |
| | Location | Date & time | Local solar time | Sun |
| ----------- | ---------------------------------------- | ----------------- | ---------------- | ----------- |
| Departure | [KEDW](https://opennav.com/airport/KEDW) | 2023-01-14T16:00Z | 07:59 | ☀ Day @ 10° |
| Destination | [KEDW](https://opennav.com/airport/KEDW) | 2023-01-14T16:39Z | 08:38 | ☀ Day @ 16° |

### Checkpoints

Expand Down
Loading

0 comments on commit 3b039b0

Please sign in to comment.