From 8ec1c1137f52c102fbc397f29ba80666c6c685e7 Mon Sep 17 00:00:00 2001 From: Carina_Hirschle Date: Fri, 29 May 2026 17:09:38 +0200 Subject: [PATCH] =?UTF-8?q?Notenrechner=20hinzugef=C3=BCgt=20und=20Navigat?= =?UTF-8?q?ion=20zentralisiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 15 ++++++++++---- css/style.css | 49 +++++++++++++++++++++++++++++++++++++++++++++ eis_projekt.html | 15 +------------- impressum.html | 15 +------------- index.html | 12 +---------- js/nav.js | 16 +++++++++++++++ js/notenrechener.js | 27 +++++++++++++++++++++++++ js/textanalyse.js | 0 kontakt.html | 15 +------------- notenrechner.html | 40 ++++++++++++++++++++++++++++++++++++ team.html | 12 +---------- textanalyse.html | 0 ueber_uns.html | 14 +------------ 13 files changed, 149 insertions(+), 81 deletions(-) create mode 100644 js/nav.js create mode 100644 js/notenrechener.js create mode 100644 js/textanalyse.js create mode 100644 notenrechner.html create mode 100644 textanalyse.html diff --git a/.gitignore b/.gitignore index 85433ce..da584e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,11 @@ -*.save -*.swp -*~ -.DS_Store + + + + + Notenrechner + + +

Notenrechner

+ + + \ No newline at end of file diff --git a/css/style.css b/css/style.css index d49aff5..26cc4ce 100644 --- a/css/style.css +++ b/css/style.css @@ -193,3 +193,52 @@ footer { } .dot.active { background: #2563eb; } + + +/* Notenrechner */ +.rechner-box { + display: flex; + flex-direction: column; + gap: 1rem; + max-width: 400px; + margin-top: 2rem; +} + +.rechner-feld { + display: flex; + flex-direction: column; + gap: 0.4rem; +} + +.rechner-feld label { + font-weight: 600; + color: #003366; +} + +.rechner-feld input { + padding: 10px 14px; + border: 1px solid #e2e8f0; + border-radius: 6px; + font-size: 1rem; + outline: none; +} + +.rechner-feld input:focus { + border-color: #2563eb; +} + +.ergebnis-box { + margin-top: 2rem; + padding: 1.2rem 1.5rem; + background: #f0f4ff; + border-left: 4px solid #2563eb; + border-radius: 6px; + max-width: 400px; +} + +.ergebnis-box p { + font-size: 1.1rem; + font-weight: 600; + color: #003366; + margin: 0; +} \ No newline at end of file diff --git a/eis_projekt.html b/eis_projekt.html index d7eb6a7..0e8e770 100644 --- a/eis_projekt.html +++ b/eis_projekt.html @@ -7,20 +7,7 @@ - - - - +

Das Projekt

diff --git a/impressum.html b/impressum.html index 03c1aff..87f8dca 100644 --- a/impressum.html +++ b/impressum.html @@ -7,20 +7,7 @@ - - - - +

Impressum

diff --git a/index.html b/index.html index d865dcd..e457fa7 100644 --- a/index.html +++ b/index.html @@ -8,17 +8,7 @@ - +

cyan.

diff --git a/js/nav.js b/js/nav.js new file mode 100644 index 0000000..abf04df --- /dev/null +++ b/js/nav.js @@ -0,0 +1,16 @@ +const navigation = ` + +`; + +document.body.insertAdjacentHTML('afterbegin', navigation); \ No newline at end of file diff --git a/js/notenrechener.js b/js/notenrechener.js new file mode 100644 index 0000000..263dc8b --- /dev/null +++ b/js/notenrechener.js @@ -0,0 +1,27 @@ +function berechneNote(prozent) { + if (prozent >= 90) return "sehr gut"; + if (prozent >= 75) return "gut"; + if (prozent >= 60) return "befriedigend"; + if (prozent >= 50) return "ausreichend"; + return "nicht bestanden"; +} + +function berechnen() { + const punkte = Number(document.getElementById("punkte").value); + const maxPunkte = Number(document.getElementById("maxPunkte").value); + + if (!punkte || !maxPunkte || maxPunkte <= 0) { + alert("Bitte beide Felder ausfüllen!"); + return; + } + + const prozent = Math.round((punkte / maxPunkte) * 100); + const note = berechneNote(prozent); + const ergebnis = `${punkte} von ${maxPunkte} Punkten (${prozent}%) = ${note}`; + + console.log(ergebnis); + alert(ergebnis); + + document.getElementById("ergebnisText").textContent = ergebnis; + document.getElementById("ergebnis").style.display = "block"; +} \ No newline at end of file diff --git a/js/textanalyse.js b/js/textanalyse.js new file mode 100644 index 0000000..e69de29 diff --git a/kontakt.html b/kontakt.html index d7d9da4..400481e 100644 --- a/kontakt.html +++ b/kontakt.html @@ -7,20 +7,7 @@ - - - - +

Kontakt

diff --git a/notenrechner.html b/notenrechner.html new file mode 100644 index 0000000..b404e6c --- /dev/null +++ b/notenrechner.html @@ -0,0 +1,40 @@ + + + + + + Notenrechner – Cyanotypie + + + + + + +
+

Notenrechner

+

Gib deine Punkte ein und berechne deine Note.

+ +
+
+ + +
+
+ + +
+ +
+ + +
+ +
+

© 2026 – Lernprojekt EIS

+
+ + + + \ No newline at end of file diff --git a/team.html b/team.html index 9244cdf..f76e5cd 100644 --- a/team.html +++ b/team.html @@ -8,17 +8,7 @@ - +

Steckbrief

diff --git a/textanalyse.html b/textanalyse.html new file mode 100644 index 0000000..e69de29 diff --git a/ueber_uns.html b/ueber_uns.html index 18d39a3..ad56d1c 100644 --- a/ueber_uns.html +++ b/ueber_uns.html @@ -7,19 +7,7 @@ - - - +