Challenge-Paket um die Verbindung von JavaScript mit HTML kennenzulernen.
  • TypeScript 91.9%
  • Shell 8.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
oliver.maklott 1b3f0985b6
All checks were successful
pack / pack (push) Successful in 6s
1.1.0: @aivopod/sdk 0.20.0, the SDK from the platform instead of the bundle (needs platform 0.20, aivopod-app D254)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 20:51:08 +00:00
.forgejo/workflows SDK 0.10.0 and the newest CLI release in CI: the registry keeps only recent stable versions, the pinned ones were removed (aivopod-app D179) 2026-10-08 15:08:35 +00:00
.githooks D08: javascript-und-die-website 1.0.0 – where HTML and JavaScript meet 2026-09-30 14:35:43 +00:00
auf-klicks-reagieren 1.0.1: English names of SDK 0.13 (aivopod pack migrate, the rest by hand), texts in locales/de.json; @aivopod/sdk 0.13.0 (aivopod-app Plan 12, G0.7) 2026-10-10 17:27:25 +00:00
die-konsole-im-browser 1.0.1: English names of SDK 0.13 (aivopod pack migrate, the rest by hand), texts in locales/de.json; @aivopod/sdk 0.13.0 (aivopod-app Plan 12, G0.7) 2026-10-10 17:27:25 +00:00
ein-zaehler 1.0.1: English names of SDK 0.13 (aivopod pack migrate, the rest by hand), texts in locales/de.json; @aivopod/sdk 0.13.0 (aivopod-app Plan 12, G0.7) 2026-10-10 17:27:25 +00:00
elemente-finden 1.0.1: English names of SDK 0.13 (aivopod pack migrate, the rest by hand), texts in locales/de.json; @aivopod/sdk 0.13.0 (aivopod-app Plan 12, G0.7) 2026-10-10 17:27:25 +00:00
locales 1.0.1: English names of SDK 0.13 (aivopod pack migrate, the rest by hand), texts in locales/de.json; @aivopod/sdk 0.13.0 (aivopod-app Plan 12, G0.7) 2026-10-10 17:27:25 +00:00
scripts D08: javascript-und-die-website 1.0.0 – where HTML and JavaScript meet 2026-09-30 14:35:43 +00:00
.gitignore D08: javascript-und-die-website 1.0.0 – where HTML and JavaScript meet 2026-09-30 14:35:43 +00:00
.npmrc D08: javascript-und-die-website 1.0.0 – where HTML and JavaScript meet 2026-09-30 14:35:43 +00:00
package-lock.json 1.1.0: @aivopod/sdk 0.20.0, the SDK from the platform instead of the bundle (needs platform 0.20, aivopod-app D254) 2026-10-12 20:51:08 +00:00
package.json 1.1.0: @aivopod/sdk 0.20.0, the SDK from the platform instead of the bundle (needs platform 0.20, aivopod-app D254) 2026-10-12 20:51:08 +00:00
README.md D08: javascript-und-die-website 1.0.0 – where HTML and JavaScript meet 2026-09-30 14:35:43 +00:00
tsconfig.json D08: javascript-und-die-website 1.0.0 – where HTML and JavaScript meet 2026-09-30 14:35:43 +00:00

JavaScript und die Website

Challenge-Paket für Aivopod: wo HTML und JavaScript sich treffen. Baut auf web-grundlagen (HTML, ids, CSS) und javascript-grundlagen-2 (Objekte mit Eigenschaften und Methoden) auf.

Challenge Inhalt
Die Konsole im Browser (die-konsole-im-browser) <script>, die Entwickler-Werkzeuge öffnen (mit Schlüsselwort geprüft), Fehler lesen, warn und error
Elemente finden (elemente-finden) document, getElementById, textContent, null, das Skript an der richtigen Stelle, style
Auf Klicks reagieren (auf-klicks-reagieren) addEventListener mit benannter Funktion, übergeben statt aufrufen, onclick, die Kurzform () => { … }
Ein Zähler (ein-zaehler) ein Wert zwischen den Klicks, die Anzeige, einen Zähler selbst schreiben

Alle mit drei Stufen (normal, erweitert, experte), in dieser Reihenfolge (aivopod.ablauf). Braucht Aivopod 0.5 (konsole: "devtools", plattform.schluessel()). Bis web-grundlagen 1.1.0 stand der Zähler dort als „Ein Knopf, der etwas tut“.

Arbeiten am Paket

npm install          # das SDK aus der Registry der Organisation (.npmrc)
aivopod pack test    # Tests, ohne vitest
aivopod pack preview # alle Schritte im Browser durchspielen
aivopod pack build   # bündeln, prüfen, Release-Archiv in dist/

Veröffentlichen: Die Version in package.json erhöhen (Patch: nur Texte; Nebenversion: Änderungen in bestehenden Challenges oder im Ablauf; Hauptversion: andere Challenges) und nach main bringen. Die CI prüft die Version gegen das letzte Release und legt ein neues Release v<version> mit dem Archiv an. Plattformen, die dieses Repo (oder seine Organisation) als Quelle eingetragen haben, finden es, wenn das Repo das Thema aivopod-pack hat. Entwicklungsversionen (1.2.0-dev.1) lassen sich mit aivopod pack publish direkt für die eigene Schule veröffentlichen, wenn die Plattform das erlaubt.

aivopod.titel und aivopod.ablauf in package.json legen fest, wie das Paket als Ganzes einem Kurs zugewiesen wird: sein Titel und die Challenges in dieser Reihenfolge.

Eine Challenge ist ein Ordner mit index.ts (die Challenge) und index.test.ts (Tests mit expectPass und expectFail). Bilder liegen im Ordner assets/ der Challenge.