From 0581ae007c37585fd30086599696479094e826c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Bo=C3=ABs?= Date: Sat, 2 Dec 2023 19:56:55 +0100 Subject: [PATCH] Fixed broken waypoint output --- dist/Web/Components.js | 6 +++++- dist/aerofly-missions.js | 0 dist/index.html | 4 ++-- docs/carls_homecoming/README.md | 2 +- src/Web/Components.ts | 6 +++++- 5 files changed, 13 insertions(+), 5 deletions(-) mode change 100755 => 100644 dist/aerofly-missions.js diff --git a/dist/Web/Components.js b/dist/Web/Components.js index 918c959..9904aa0 100644 --- a/dist/Web/Components.js +++ b/dist/Web/Components.js @@ -186,7 +186,11 @@ export class ComponentsCheckpoints extends ComponentsOutputtable { tfoot: document.createElement("tfoot"), p: document.createElement("p"), }; + this.elements.table.appendChild(this.elements.caption); + this.elements.table.appendChild(this.elements.thead); + this.elements.table.appendChild(this.elements.tbody); this.elements.table.appendChild(this.elements.tfoot); + this.appendChild(this.elements.table); this.elements.p.className = "no-print"; this.appendChild(this.elements.p); this.elements.caption.innerText = "Checkpoints"; @@ -232,7 +236,7 @@ export class ComponentsCheckpoints extends ComponentsOutputtable { html += this.outputLine([ Outputtable.pad(i + 1, 2, 0, "0") + ".", !isAirport - ? `` + ? `` : c.name, ` MHz`, ` ft`, diff --git a/dist/aerofly-missions.js b/dist/aerofly-missions.js old mode 100755 new mode 100644 diff --git a/dist/index.html b/dist/index.html index ae301cd..0bf5e1c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -343,7 +343,7 @@

Fligh plan help

  • Adding a frequency to a runway will convert it into an ILS.
  • Too sharp curves will result in the waypoint being converted from fly-by to fly-over. If you see strange lines appear on your flight plan, your waypoints may be too close or the speed is too high.

    -

    Use Shift + Click on the map tomove waypoints.

    +

    Use Shift + Click on the map to move waypoints.

    @@ -367,7 +367,7 @@

    Choose mission

    Edit waypoint

    - +
    diff --git a/docs/carls_homecoming/README.md b/docs/carls_homecoming/README.md index 35620c4..b8476bd 100644 --- a/docs/carls_homecoming/README.md +++ b/docs/carls_homecoming/README.md @@ -20,7 +20,7 @@ Your flights: 1. [Crossing to Sweden](./03_crossing_to_sweden.md) 1. [Letters to America](./04_letters_to_america.md) 1. [The Swedish Hinterlands](./05_the_swedish_hinterlands.md) -1. [The Lake where Gripens play](./05_the_swedish_hinterlands.md) +1. [The Lake where Gripens play](./06_the_lake_where_gripens_play.md) 1. [Carl's Toyland](./07_carls_toyland.md) 1. [Outskirts of Stockholm](./08_outskirts_of_stockholm.md) 1. [Finally! Stockholm!](./09_finally_stockholm.md) diff --git a/src/Web/Components.ts b/src/Web/Components.ts index 42fba1a..46e946c 100644 --- a/src/Web/Components.ts +++ b/src/Web/Components.ts @@ -234,7 +234,11 @@ export class ComponentsCheckpoints extends ComponentsOutputtable { constructor() { super(); + this.elements.table.appendChild(this.elements.caption); + this.elements.table.appendChild(this.elements.thead); + this.elements.table.appendChild(this.elements.tbody); this.elements.table.appendChild(this.elements.tfoot); + this.appendChild(this.elements.table); this.elements.p.className = "no-print"; this.appendChild(this.elements.p); this.elements.caption.innerText = "Checkpoints"; @@ -293,7 +297,7 @@ export class ComponentsCheckpoints extends ComponentsOutputtable { !isAirport ? `` + }" pattern="[A-Z0-9._+\\-]+" maxlength="8" autocapitalize="characters" required="required" />` : c.name, `