diff --git a/ITL-Test/assets/css/style.css b/ITL-Test/assets/css/style.css new file mode 100644 index 0000000..298a700 --- /dev/null +++ b/ITL-Test/assets/css/style.css @@ -0,0 +1,66 @@ +body { + font-family: Arial, sans-serif; + margin: 20px; +} +.container { + max-width: 300px; + margin: auto; + padding: 20px; + border: 1px solid #ccc; + border-radius: 8px; + background-color: #f9f9f9; +} +input[type="text"] { + width: 100%; + padding: 10px; + margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} + + +button { + width: 100%; + padding: 10px; + margin: 8px ; + background-color: #4CAF50; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; +} +button:hover { + background-color: #45a049; +} + +input[type="password"].passField { + width: calc(100% - 40px); + padding: 10px; + margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} + +button.icon { + width: 30px; + padding: 9px; + margin: 0px; + background-color: #4CAF50; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + +} + +.negVal{ + color: red; +} + +.posVal{ + color: #4CAF50; +} \ No newline at end of file diff --git a/ITL-Test/assets/js/lists.js b/ITL-Test/assets/js/lists.js new file mode 100644 index 0000000..fe7f3c7 --- /dev/null +++ b/ITL-Test/assets/js/lists.js @@ -0,0 +1,133 @@ +let values = [ + { + name: "Gehalt", + value: 2500, + }, + { + name: "Miete", + value: -1000, + }, + { + name: "Essen", + value: -300, + }, + { + name: "FreeLancer", + value: 200, + }, + { + name: "Gas", + value: -260, + }, + { + name: "Auftrag", + value: 3700, + }, + { + name: "Leasing-Rate", + value: -1700, + }, +]; + + + +function deleteThis(name){ + +let tempArray = new Array(); + + for(i = 0; i < values.length ; i++) + { + if(values[i].name !== name) + tempArray.push(values[i]); + } + + values = tempArray; + showValue(); +}; + + +function showValue(){ + + let val = document.getElementById("vals"); + let res = document.getElementById("results"); + + let html = "" + let results = ""; + + let posVals = 0; + let negVals = 0; + + + values.forEach(element => { + if(element.value.toString().startsWith("-")) + { + negVals += (parseInt(element.value.toString().substr(1))); + html += `
  • ` + element.name + `: `+ element.value +` €
  • `; + } + else + { + posVals += parseInt(element.value.toString()); + html += `
  • ` + element.name + `: `+ element.value +` €
  • `; + } + + }); + + val.innerHTML = html; + results += `
  • Gesammt Einnahmen: ` + posVals +` €
  • `; + results += `
  • Gesammt Ausgaben: ` + negVals +``; + + let FixedResult = parseInt(posVals - negVals); + if(FixedResult.toString().startsWith("-")) + { + results += `
  • Verfügbar: ` + FixedResult +` €
  • `; + }else{ + results += `
  • Verfügbar: ` + FixedResult +` €
  • `; + } + + + + res.innerHTML = results; +} + +document.getElementById("insertVal").addEventListener('click', function() { + + let nameInternal = document.getElementById("LabelName").value; + let valInternal = document.getElementById("LabelVal").value; + if(nameInternal === "" || Math.abs(parseInt(valInternal)) == 0) + { + alert("Ungültige Eingabe. Name darf nicht leer sein und Betrag darf nicht 0 sein."); + }else{ + values.push({ "name": nameInternal, "value": valInternal}); + showValue(); + document.getElementById("LabelName").value = ""; + document.getElementById("LabelVal").value = ""; + } +}); + +document.getElementById("deleteVal").addEventListener('click', function() { + + let posInternal = document.getElementById("LabelDel").value; + if(posInternal <= 0 || posInternal > values.length) + { + alert("Zahl muss größer als 0 sein oder kleiner gleich " + (parseInt(values.length)) +" sein."); + } + else{ + let tempArray = new Array(); + + for(i = 0; i < values.length ; i++) + { + if(i != posInternal-1) + tempArray.push(values[i]); + } + + values = tempArray; + showValue(); + } +}); + +document.getElementById("sortVal").addEventListener('click', function() { + values.sort((a, b) => a.value - b.value); + showValue(); +}); + +showValue(); diff --git a/ITL-Test/christian_braumann_2aAPC.zip b/ITL-Test/christian_braumann_2aAPC.zip new file mode 100644 index 0000000..d797813 Binary files /dev/null and b/ITL-Test/christian_braumann_2aAPC.zip differ diff --git a/ITL-Test/index.html b/ITL-Test/index.html new file mode 100644 index 0000000..cba614e --- /dev/null +++ b/ITL-Test/index.html @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + +
    +

    Kontoauszug:

    + + +

    Saldo:

    + + + + + + + + + + + + + + + + + + + + + +
    + + + \ No newline at end of file diff --git a/OfflineCode/lernwerkstatt_erweitert.html b/OfflineCode/lernwerkstatt_erweitert.html new file mode 100644 index 0000000..395e9b8 --- /dev/null +++ b/OfflineCode/lernwerkstatt_erweitert.html @@ -0,0 +1,517 @@ + + + + + +HTML · CSS · JavaScript – Lernwerkstatt + + + +
    +
    </>
    HTML · CSS · JavaScriptDie komplette Übersicht mit Beispielen
    + +
    +
    + +
    +

    HTML, CSS & JavaScript – alles an einem Ort!

    Eine praktische Lernwebsite zum Ausprobieren. Ändere Eigenschaften, schau dir die Live-Vorschau an und kopiere die Beispiele in deine eigenen Projekte.

    HTML: StrukturCSS: AussehenJavaScript: VerhaltenDirekt ausprobieren ✨
    +
    +

    1. Zwei Login-Formulare

    Beide Varianten sind Demos. Das Passwort wird nur ein- und ausgeblendet; es findet keine echte Anmeldung statt.

    +
    +

    Variante 1 · Augen-Schaltfläche

    +

    Variante 2 · Checkbox

    +
    <input type="password" id="passwort" placeholder="Passwort">
    +<button type="button" onclick="passwortAnzeigen()">◉</button>
    +
    +<script>
    +function passwortAnzeigen(){
    +  const feld = document.querySelector('#passwort');
    +  feld.type = feld.type === 'password' ? 'text' : 'password';
    +}
    +</script>
    +

    2. Liste mit Suche & Summenberechnung

    Suche nach Namen oder Zahlen. Wenn alle sichtbaren Treffer Zahlen sind, wird ihre Summe berechnet.

    +
    +
    Summe der Zahlen00 Treffer
    +
    const treffer = daten.filter(e =>
    +  String(e).toLowerCase().includes(suche.toLowerCase())
    +);
    +const nurZahlen = treffer.length > 0 &&
    +  treffer.every(e => !Number.isNaN(Number(e)));
    +const summe = nurZahlen
    +  ? treffer.reduce((gesamt, e) => gesamt + Number(e), 0)
    +  : 'Keine reine Zahlenliste';
    +

    3. Weitere JavaScript-Beispiele

    Kleine interaktive Demos, die du direkt testen kannst.

    +
    +

    To-do-Liste

    +

    Zufallszahl

    42
    +

    Klick-Zähler

    0
    +

    Text umdrehen

    Dein Text erscheint hier.

    +

    Zeichen zählen

    0 Zeichen

    +

    Farb-Generator

    #1478F8
    +
    +
    // Zufallszahl von 1 bis 100
    +const zahl = Math.floor(Math.random() * 100) + 1;
    +
    +// Zeichen zählen
    +const anzahl = document.querySelector('#text').value.length;
    +
    +// Ein Element ändern
    +document.querySelector('#meldung').textContent = 'Hallo!';
    +
    +// Klick-Ereignis
    +button.addEventListener('click', () => {
    +  console.log('Button wurde geklickt');
    +});
    + +
    +

    JavaScript-Codebibliothek

    +

    Wie bei der CSS-Übersicht: Kategorie auswählen, Beispiel lesen und den Code kopieren. Die Beispiele sind eigenständig und können angepasst werden.

    +

    Variablen & Werte

    +
    +

    4. CSS-Übersicht zum Nachschlagen

    Wähle links eine Kategorie. Jede Eigenschaft hat eine kurze Erklärung und einen Beispielwert. Unten kannst du viele Werte live verändern.

    +

    Farben & Texte

    +

    Live-CSS-Spielplatz

    Verändere die Werte – die Vorschau wird sofort aktualisiert.

    +
    + + + + + + + + +
    +
    Probiere CSS aus!
    +
    +

    5. Bilder, Cover & Größen

    Diese Vorschauen sind CSS-Farbillustrationen, damit du die Anpassung ohne externe Bilder sehen kannst. Ersetze sie in deinen Projekten durch echte Bilddateien.

    +
    +
    background-size: cover

    Füllt den ganzen Bereich aus. Bildränder können abgeschnitten werden.

    background-size: cover;
    +
    background-size: contain

    Das ganze Bild bleibt sichtbar; eventuell bleibt freie Fläche.

    background-size: contain;
    +
    object-fit: cover

    Für ein echtes <img>-Element, das den Rahmen füllt.

    img { object-fit: cover; }
    +
    +

    CSS für echte Bilder

    /* Bild füllt den Rahmen */
    +.foto {
    +  width: 100%;
    +  height: 220px;
    +  object-fit: cover;
    +  object-position: center;
    +  border-radius: 12px;
    +}
    +
    +/* Bild vollständig zeigen */
    +.foto-ganz {
    +  object-fit: contain;
    +  background: #eef2f8;
    +}
    +
    +/* Hintergrundbild */
    +.hero {
    +  background-image: url("bild.jpg");
    +  background-size: cover;
    +  background-position: center;
    +}
    +

    6. Layout, Position & Effekte

    Häufige Eigenschaften für Anordnung, Rahmen und Bewegung.

    +
    +

    Flexbox

    Elemente in einer Zeile oder Spalte verteilen.

    display:flex;
    gap:10px;
    justify-content:space-between;
    +

    Grid

    Ein Raster aus Spalten und Zeilen.

    display:grid;
    grid-template-columns:repeat(3,1fr);
    +

    Hover-Effekt

    Mit :hover ändert sich das Aussehen bei Mausberührung.

    button:hover { transform:scale(1.05); }
    +

    Rahmen & Schatten

    Eine Box mit Stil

    Rahmen, Rundungen und Schatten kombinieren.

    border:2px solid #8b5cf6;
    border-radius:14px;
    box-shadow:0 8px 20px #0002;
    +
    +
    marginpaddingborderborder-radiusbox-shadowopacityoverflowz-indexcursortransitiontransformanimationfilterpositiondisplay
    +
    .karte {
    +  margin: 16px;             /* außen */
    +  padding: 20px;            /* innen */
    +  border: 1px solid #dbe4f0;
    +  border-radius: 12px;
    +  box-shadow: 0 8px 20px #0002;
    +  transition: transform .2s ease;
    +}
    +.karte:hover { transform: translateY(-3px); }
    +

    7. Responsive Design

    Media Queries passen die Seite an kleinere Bildschirme an. Verkleinere dein Browserfenster, um diese Seite in Aktion zu sehen.

    Desktop

    ab ca. 1024 px

    Tablet

    600–1023 px

    Smartphone

    bis 599 px

    /* Standard: Desktop */
    +.container { display:grid; grid-template-columns:1fr 1fr; }
    +
    +/* Tablet und kleiner */
    +@media (max-width: 950px) {
    +  .container { grid-template-columns:1fr; }
    +}
    +
    +/* Smartphone */
    +@media (max-width: 560px) {
    +  .karte { padding:12px; }
    +  h1 { font-size:1.5rem; }
    +}
    + +
    +

    8. Ein einfacher Website-Hintergrund mit Header

    +

    Wähle ein Design aus und sieh direkt, wie ein einfacher Website-Kopfbereich mit Hintergrund, Titel, Navigation und Inhalt aussehen kann. Den CSS-Code kannst du kopieren und in deine Website übernehmen.

    +
    +
    +

    Design auswählen

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

    Live-Vorschau

    +
    +
    +
    WILLKOMMEN

    Deine Überschrift

    Ein einfacher, schöner Hintergrund für deine Website. Passe Farben und Stil nach deinem Geschmack an.

    +
    Einfach

    Übersichtlich und klar.

    Modern

    Passt auf viele Websites.

    +
    +
    +
    +

    Code für das ausgewählte Design

    +
    +

    Tipp: Du kannst den Header und Hintergrund auch getrennt verwenden. Ersetze „Meine Website“, die Links und den Text durch deine eigenen Inhalte.

    +
    + + +
    +

    9. Fertige Website-Designs zum Wiederverwenden

    +

    Hier sind mehrere einfache, wiederverwendbare Layouts. Wähle ein Design, ändere die Farben und kopiere das vollständige HTML/CSS-Beispiel. Die Vorschau aktualisiert sich direkt.

    +
    +
    + + +
    +
    +
    StartÜber unsKontakt
    +
    EINFACH · KLAR · MODERN

    Deine Website beginnt hier.

    Ein simples Layout, das du für deine eigene Website anpassen kannst.

    +
    Einfach

    Alles übersichtlich angeordnet.

    Flexibel

    Farben und Inhalte leicht ändern.

    Responsive

    Passt sich kleineren Displays an.

    +
    +
    +
    +

    Was du bekommst

    +
    Header + NavigationÜberschrift + ButtonInhaltsbereichKarten / KachelnMobile AnpassungVollständiges Beispiel
    +
    +
    + +

    Zusammenfassung

    HTML baut die Struktur, CSS gestaltet das Aussehen und JavaScript macht die Seite interaktiv. Ändere Beispiele, kopiere den Code und probiere eigene Werte aus.

    +
    + +
    + + + \ No newline at end of file diff --git a/OfflineCode/test_test/Bibliothek/index.html b/OfflineCode/test_test/Bibliothek/index.html new file mode 100644 index 0000000..ed43c36 --- /dev/null +++ b/OfflineCode/test_test/Bibliothek/index.html @@ -0,0 +1,392 @@ + + + + + + + Code-Bibliothek + + + + + + +

    📚 Meine Code-Bibliothek

    + + + +
    + +
    +

    HTML

    +

    1. Grundgerüst einer HTML-Seite

    +

    Der grundlegende Aufbau einer Webseite.

    +
    <!DOCTYPE html>
    +<html lang="de">
    +<head>
    +    <meta charset="UTF-8">
    +    <title>Meine Webseite</title>
    +</head>
    +<body>
    +
    +    <h1>Überschrift</h1>
    +    <p>Mein Text</p>
    +
    +</body>
    +</html>
    + +
    + +
    +

    HTML

    +

    2. Überschriften und Text

    +

    Überschriften und Absätze erstellen.

    +
    <h1>Hauptüberschrift</h1>
    +<h2>Unterüberschrift</h2>
    +<h3>Kleine Überschrift</h3>
    +
    +<p>Das ist ein Absatz.</p>
    +<strong>Fetter Text</strong>
    +<em>Kursiver Text</em>
    + +
    + +
    +

    HTML

    +

    3. Links und Bilder

    +

    Links zu Webseiten und Bilder einfügen.

    +
    <a href="https://example.com">
    +    Webseite öffnen
    +</a>
    +
    +<img src="bild.jpg"
    +     alt="Bildbeschreibung"
    +     width="300">
    + +
    + +
    +

    HTML

    +

    4. Listen

    +

    Listen mit Punkten oder Nummern erstellen.

    +
    <ul>
    +    <li>Erster Punkt</li>
    +    <li>Zweiter Punkt</li>
    +</ul>
    +
    +<ol>
    +    <li>Schritt eins</li>
    +    <li>Schritt zwei</li>
    +</ol>
    + +
    + +
    +

    CSS

    +

    5. Farben und Schrift

    +

    Das Aussehen der Webseite verändern.

    +
    body {
    +    background-color: lightgray;
    +    color: black;
    +    font-family: Arial, sans-serif;
    +}
    +
    +h1 {
    +    color: blue;
    +    font-size: 32px;
    +}
    + +
    + +
    +

    CSS

    +

    6. Klassen und IDs

    +

    Bestimmte HTML-Elemente gestalten.

    +
    /* HTML:
    +<p class="wichtig">Text</p>
    +<div id="kasten">Text</div>
    +*/
    +
    +.wichtig {
    +    color: red;
    +    font-weight: bold;
    +}
    +
    +#kasten {
    +    background: yellow;
    +    padding: 10px;
    +}
    + +
    + +
    +

    CSS

    +

    7. Abstände und Rahmen

    +

    Abstände und Rahmen eines Elements einstellen.

    +
    .box {
    +    margin: 20px;
    +    padding: 15px;
    +    border: 2px solid black;
    +    border-radius: 10px;
    +}
    + +
    + +
    +

    JavaScript

    +

    8. Variablen

    +

    Werte speichern und verwenden.

    +
    const name = "Max";
    +let punkte = 10;
    +
    +punkte = punkte + 5;
    +
    +console.log(name);
    +console.log(punkte);
    + +
    + +
    +

    JavaScript

    +

    9. Bedingungen: if und else

    +

    Code abhängig von einer Bedingung ausführen.

    +
    let punkte = 60;
    +
    +if (punkte >= 50) {
    +    console.log("Bestanden");
    +} else {
    +    console.log("Nicht bestanden");
    +}
    + +
    + +
    +

    JavaScript

    +

    10. Vergleichsoperatoren

    +

    Werte miteinander vergleichen.

    +
    ==   // Gleichheit mit Umwandlung
    +===  // Strikte Gleichheit
    +!=   // Ungleichheit
    +!==  // Strikte Ungleichheit
    +>    // Größer
    +<    // Kleiner
    +>=   // Größer oder gleich
    +<=   // Kleiner oder gleich
    +
    +&&   // UND
    +||   // ODER
    +!    // NICHT
    + +
    + +
    +

    JavaScript

    +

    11. Schleife: for

    +

    Einen Codeblock mehrmals ausführen.

    +
    for (let i = 0; i < 5; i++) {
    +    console.log(i);
    +}
    +
    +// Ausgabe: 0, 1, 2, 3, 4
    + +
    + +
    +

    JavaScript

    +

    12. Funktionen

    +

    Code definieren und bei Bedarf aufrufen.

    +
    function addieren(a, b) {
    +    return a + b;
    +}
    +
    +let ergebnis = addieren(5, 3);
    +
    +console.log(ergebnis); // 8
    + +
    + +
    +

    JavaScript

    +

    13. Arrays und Listen

    +

    Mehrere Werte in einer Variablen speichern.

    +
    let namen = ["Anna", "Max", "Lisa"];
    +
    +console.log(namen[0]); // Anna
    +
    +namen.push("Tom"); // Hinzufügen
    +
    +console.log(namen.length); // Anzahl
    + +
    + +
    +

    JavaScript

    +

    14. HTML-Element auswählen

    +

    Ein Element anhand seiner ID finden.

    +
    // HTML:
    +// <p id="text">Alter Text</p>
    +
    +let element = document.getElementById("text");
    +
    +element.textContent = "Neuer Text";
    + +
    + +
    +

    JavaScript

    +

    15. Button-Klick

    +

    Auf einen Klick reagieren.

    +
    // HTML:
    +// <button id="knopf">Klick mich</button>
    +
    +let button = document.getElementById("knopf");
    +
    +button.addEventListener("click", function() {
    +    alert("Du hast geklickt!");
    +});
    + +
    + +
    +

    JavaScript

    +

    16. Eingabefeld auslesen

    +

    Den eingegebenen Text verwenden.

    +
    // HTML:
    +// <input id="eingabe">
    +
    +let feld = document.getElementById("eingabe");
    +let text = feld.value;
    +
    +console.log(text);
    + +
    + +
    +

    JavaScript

    +

    17. Rechenoperatoren

    +

    Die wichtigsten mathematischen Berechnungen.

    +
    let a = 10;
    +let b = 3;
    +
    +console.log(a + b); // Addition
    +console.log(a - b); // Subtraktion
    +console.log(a * b); // Multiplikation
    +console.log(a / b); // Division
    +console.log(a % b); // Rest einer Division
    + +
    + +
    +

    Grundlagen

    +

    18. Kommentare

    +

    Notizen im Code, die nicht ausgeführt werden.

    +
    // Einzeiliger Kommentar
    +
    +/*
    +Mehrzeiliger
    +Kommentar
    +*/
    + +
    + +
    + + + + + + \ No newline at end of file diff --git a/OfflineCode/test_test/test.html b/OfflineCode/test_test/test.html new file mode 100644 index 0000000..d96d9ca --- /dev/null +++ b/OfflineCode/test_test/test.html @@ -0,0 +1,1315 @@ + + + + + + + Lernprojekt – HTML, CSS & JavaScript + + + + + + + + +
    +
    + + +
    + + + +
    +
    +
    + + + +
    + +
    +

    HTML, CSS & JavaScript

    +

    + Ein kleines Lernprojekt mit Formularen, Events, Listen, + Suche, Bedingungen und DOM-Manipulation. +

    +
    + +
    + + + +
    +

    1. Login-Formular

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

    +
    + +

    + Lernziel: + form submit, preventDefault(), if/else und value. +

    +
    + + + +
    +

    2. Event Listener

    + +

    + Jeder Klick erhöht den Zähler um eins. +

    + +

    0

    + + + + + +

    + Lernziel: + addEventListener() und Variablen. +

    +
    + + + +
    +

    3. Live-Suche

    + + + +
      +
    • + Max Mustermann + HTML +
    • +
    • + Anna Müller + CSS +
    • +
    • + Lisa Berger + JavaScript +
    • +
    • + Tom Wagner + HTML +
    • +
    • + Sarah Bauer + JavaScript +
    • +
    + +

    + +

    + Lernziel: + input-Event, includes() und toLowerCase(). +

    +
    + + + +
    +

    4. Aufgabenliste

    + +
    + + + +
    + +
      +
    • +
      + + HTML wiederholen +
      + +
    • + +
    • +
      + + CSS lernen +
      + +
    • +
    + +

    + Lernziel: + createElement(), appendChild() und remove(). +

    +
    + + + +
    +

    5. Tabs / Registerkarten

    + +
    + + + + + +
    + +
    +

    HTML

    +

    + HTML strukturiert die Website. + Beispiele sind h1, p, div, form und button. +

    +
    + +
    +

    CSS

    +

    + CSS gestaltet die Website mit Farben, + Abständen, Schriftarten und Layouts. +

    +
    + +
    +

    JavaScript

    +

    + JavaScript macht die Website interaktiv, + zum Beispiel mit Events, Bedingungen und Funktionen. +

    +
    +
    + + + +
    +

    6. JavaScript-Code zum Lernen

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

    +
    + + + +
    +

    7. Wichtige Begriffe für die Prüfung

    + +
      +
    • + querySelector(): + Wählt das erste passende HTML-Element aus. +
    • + +
    • + getElementById(): + Sucht ein Element anhand seiner ID. +
    • + +
    • + addEventListener(): + Führt eine Funktion aus, wenn ein Ereignis eintritt. +
    • + +
    • + if / else: + Führt abhängig von einer Bedingung unterschiedlichen + Code aus. +
    • + +
    • + value: + Liest den Wert eines Eingabefelds. +
    • + +
    • + textContent: + Liest oder ändert den Text eines Elements. +
    • + +
    • + createElement(): + Erstellt ein neues HTML-Element. +
    • + +
    • + appendChild(): + Fügt ein Element einem anderen Element hinzu. +
    • + +
    • + classList.add(): + Fügt eine CSS-Klasse hinzu. +
    • + +
    • + preventDefault(): + Verhindert die Standardaktion eines Ereignisses. +
    • + +
    • + filter(): + Erstellt ein Array mit Elementen, die eine Bedingung erfüllen. +
    • +
    +
    + +
    +
    + + + + + + + + + +
    + + + + + + + diff --git a/OfflineCode/water.css b/OfflineCode/water.css new file mode 100644 index 0000000..d5c741d --- /dev/null +++ b/OfflineCode/water.css @@ -0,0 +1,1689 @@ +/** + * Automatic version: + * Uses light theme by default but switches to dark theme + * if a system-wide theme preference is set on the user's device. + */ + +:root { + --background-body: #fff; + --background: #efefef; + --background-alt: #f7f7f7; + --selection: #9e9e9e; + --text-main: #363636; + --text-bright: #000; + --text-muted: #70777f; + --links: #0076d1; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #000; + --animation-duration: 0.1s; + --button-base: #d0cfcf; + --button-hover: #9b9b9b; + --scrollbar-thumb: rgb(170, 170, 170); + --scrollbar-thumb-hover: var(--button-hover); + --form-placeholder: #949494; + --form-text: #1d1d1d; + --variable: #39a33c; + --highlight: #ff0; + --select-arrow: url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23161f27'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E"); +} + +@media (prefers-color-scheme: dark) { +:root { + --background-body: #202b38; + --background: #161f27; + --background-alt: #1a242f; + --selection: #1c76c5; + --text-main: #dbdbdb; + --text-bright: #fff; + --text-muted: #a9b1ba; + --links: #41adff; + --focus: #0096bfab; + --border: #526980; + --code: #ffbe85; + --animation-duration: 0.1s; + --button-base: #0c151c; + --button-hover: #040a0f; + --scrollbar-thumb: var(--button-hover); + --scrollbar-thumb-hover: rgb(0, 0, 0); + --form-placeholder: #a9a9a9; + --form-text: #fff; + --variable: #d941e2; + --highlight: #efdb43; + --select-arrow: url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E"); +} +} + +html { + scrollbar-color: rgb(170, 170, 170) #fff; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + scrollbar-width: thin; +} + +@media (prefers-color-scheme: dark) { + + html { + scrollbar-color: #040a0f #202b38; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + } +} + +@media (prefers-color-scheme: dark) { + + html { + scrollbar-color: #040a0f #202b38; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + } +} + +@media (prefers-color-scheme: dark) { + + html { + scrollbar-color: #040a0f #202b38; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + } +} + +@media (prefers-color-scheme: dark) { + + html { + scrollbar-color: #040a0f #202b38; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + } +} + +@media (prefers-color-scheme: dark) { + + html { + scrollbar-color: #040a0f #202b38; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + } +} + +@media (prefers-color-scheme: dark) { + + html { + scrollbar-color: #040a0f #202b38; + scrollbar-color: var(--scrollbar-thumb) var(--background-body); + } +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; + line-height: 1.4; + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + word-wrap: break-word; + color: #363636; + color: var(--text-main); + background: #fff; + background: var(--background-body); + text-rendering: optimizeLegibility; +} + +@media (prefers-color-scheme: dark) { + + body { + background: #202b38; + background: var(--background-body); + } +} + +@media (prefers-color-scheme: dark) { + + body { + color: #dbdbdb; + color: var(--text-main); + } +} + +button { + transition: + background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; + transition: + background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +@media (prefers-color-scheme: dark) { + + button { + transition: + background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; + transition: + background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; + } +} + +input { + transition: + background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; + transition: + background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +@media (prefers-color-scheme: dark) { + + input { + transition: + background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; + transition: + background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; + } +} + +textarea { + transition: + background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; + transition: + background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +@media (prefers-color-scheme: dark) { + + textarea { + transition: + background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; + transition: + background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; + } +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; + margin-top: 24px; +} + +h1 { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + h1 { + color: #fff; + color: var(--text-bright); + } +} + +h2 { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + h2 { + color: #fff; + color: var(--text-bright); + } +} + +h3 { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + h3 { + color: #fff; + color: var(--text-bright); + } +} + +h4 { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + h4 { + color: #fff; + color: var(--text-bright); + } +} + +h5 { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + h5 { + color: #fff; + color: var(--text-bright); + } +} + +h6 { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + h6 { + color: #fff; + color: var(--text-bright); + } +} + +strong { + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + strong { + color: #fff; + color: var(--text-bright); + } +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q::before { + content: none; +} + +q::after { + content: none; +} + +blockquote { + border-left: 4px solid #0096bfab; + border-left: 4px solid var(--focus); + margin: 1.5em 0; + padding: 0.5em 1em; + font-style: italic; +} + +@media (prefers-color-scheme: dark) { + + blockquote { + border-left: 4px solid #0096bfab; + border-left: 4px solid var(--focus); + } +} + +q { + border-left: 4px solid #0096bfab; + border-left: 4px solid var(--focus); + margin: 1.5em 0; + padding: 0.5em 1em; + font-style: italic; +} + +@media (prefers-color-scheme: dark) { + + q { + border-left: 4px solid #0096bfab; + border-left: 4px solid var(--focus); + } +} + +blockquote > footer { + font-style: normal; + border: 0; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto\:']::before { + content: '📧 '; +} + +a[href^='tel\:']::before { + content: '📞 '; +} + +a[href^='sms\:']::before { + content: '💬 '; +} + +mark { + background-color: #ff0; + background-color: var(--highlight); + border-radius: 2px; + padding: 0 2px 0 2px; + color: #000; +} + +@media (prefers-color-scheme: dark) { + + mark { + background-color: #efdb43; + background-color: var(--highlight); + } +} + +a > code, +a > strong { + color: inherit; +} + +button, +select, +input[type='submit'], +input[type='reset'], +input[type='button'], +input[type='checkbox'], +input[type='range'], +input[type='radio'] { + cursor: pointer; +} + +input, +select { + display: block; +} + +[type='checkbox'], +[type='radio'] { + display: initial; +} + +input { + color: #1d1d1d; + color: var(--form-text); + background-color: #efefef; + background-color: var(--background); + font-family: inherit; + font-size: inherit; + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + border: none; + border-radius: 6px; + outline: none; +} + +@media (prefers-color-scheme: dark) { + + input { + background-color: #161f27; + background-color: var(--background); + } +} + +@media (prefers-color-scheme: dark) { + + input { + color: #fff; + color: var(--form-text); + } +} + +button { + color: #1d1d1d; + color: var(--form-text); + background-color: #efefef; + background-color: var(--background); + font-family: inherit; + font-size: inherit; + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + border: none; + border-radius: 6px; + outline: none; +} + +@media (prefers-color-scheme: dark) { + + button { + background-color: #161f27; + background-color: var(--background); + } +} + +@media (prefers-color-scheme: dark) { + + button { + color: #fff; + color: var(--form-text); + } +} + +textarea { + color: #1d1d1d; + color: var(--form-text); + background-color: #efefef; + background-color: var(--background); + font-family: inherit; + font-size: inherit; + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + border: none; + border-radius: 6px; + outline: none; +} + +@media (prefers-color-scheme: dark) { + + textarea { + background-color: #161f27; + background-color: var(--background); + } +} + +@media (prefers-color-scheme: dark) { + + textarea { + color: #fff; + color: var(--form-text); + } +} + +select { + color: #1d1d1d; + color: var(--form-text); + background-color: #efefef; + background-color: var(--background); + font-family: inherit; + font-size: inherit; + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + border: none; + border-radius: 6px; + outline: none; +} + +@media (prefers-color-scheme: dark) { + + select { + background-color: #161f27; + background-color: var(--background); + } +} + +@media (prefers-color-scheme: dark) { + + select { + color: #fff; + color: var(--form-text); + } +} + +button { + background-color: #d0cfcf; + background-color: var(--button-base); + padding-right: 30px; + padding-left: 30px; +} + +@media (prefers-color-scheme: dark) { + + button { + background-color: #0c151c; + background-color: var(--button-base); + } +} + +input[type='submit'] { + background-color: #d0cfcf; + background-color: var(--button-base); + padding-right: 30px; + padding-left: 30px; +} + +@media (prefers-color-scheme: dark) { + + input[type='submit'] { + background-color: #0c151c; + background-color: var(--button-base); + } +} + +input[type='reset'] { + background-color: #d0cfcf; + background-color: var(--button-base); + padding-right: 30px; + padding-left: 30px; +} + +@media (prefers-color-scheme: dark) { + + input[type='reset'] { + background-color: #0c151c; + background-color: var(--button-base); + } +} + +input[type='button'] { + background-color: #d0cfcf; + background-color: var(--button-base); + padding-right: 30px; + padding-left: 30px; +} + +@media (prefers-color-scheme: dark) { + + input[type='button'] { + background-color: #0c151c; + background-color: var(--button-base); + } +} + +button:hover { + background: #9b9b9b; + background: var(--button-hover); +} + +@media (prefers-color-scheme: dark) { + + button:hover { + background: #040a0f; + background: var(--button-hover); + } +} + +input[type='submit']:hover { + background: #9b9b9b; + background: var(--button-hover); +} + +@media (prefers-color-scheme: dark) { + + input[type='submit']:hover { + background: #040a0f; + background: var(--button-hover); + } +} + +input[type='reset']:hover { + background: #9b9b9b; + background: var(--button-hover); +} + +@media (prefers-color-scheme: dark) { + + input[type='reset']:hover { + background: #040a0f; + background: var(--button-hover); + } +} + +input[type='button']:hover { + background: #9b9b9b; + background: var(--button-hover); +} + +@media (prefers-color-scheme: dark) { + + input[type='button']:hover { + background: #040a0f; + background: var(--button-hover); + } +} + +input[type='color'] { + min-height: 2rem; + padding: 8px; + cursor: pointer; +} + +input[type='checkbox'], +input[type='radio'] { + height: 1em; + width: 1em; +} + +input[type='radio'] { + border-radius: 100%; +} + +input { + vertical-align: top; +} + +label { + vertical-align: middle; + margin-bottom: 4px; + display: inline-block; +} + +input:not([type='checkbox']):not([type='radio']), +input[type='range'], +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + display: block; + margin-right: 0; + box-sizing: border-box; + resize: vertical; +} + +textarea:not([cols]) { + width: 100%; +} + +textarea:not([rows]) { + min-height: 40px; + height: 140px; +} + +select { + background: #efefef url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23161f27'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E") calc(100% - 12px) 50% / 12px no-repeat; + background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat; + padding-right: 35px; +} + +@media (prefers-color-scheme: dark) { + + select { + background: #161f27 url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E") calc(100% - 12px) 50% / 12px no-repeat; + background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat; + } +} + +@media (prefers-color-scheme: dark) { + + select { + background: #161f27 url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E") calc(100% - 12px) 50% / 12px no-repeat; + background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat; + } +} + +@media (prefers-color-scheme: dark) { + + select { + background: #161f27 url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E") calc(100% - 12px) 50% / 12px no-repeat; + background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat; + } +} + +@media (prefers-color-scheme: dark) { + + select { + background: #161f27 url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23efefef'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E") calc(100% - 12px) 50% / 12px no-repeat; + background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat; + } +} + +select::-ms-expand { + display: none; +} + +select[multiple] { + padding-right: 10px; + background-image: none; + overflow-y: auto; +} + +input:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); +} + +@media (prefers-color-scheme: dark) { + + input:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); + } +} + +select:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); +} + +@media (prefers-color-scheme: dark) { + + select:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); + } +} + +button:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); +} + +@media (prefers-color-scheme: dark) { + + button:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); + } +} + +textarea:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); +} + +@media (prefers-color-scheme: dark) { + + textarea:focus { + box-shadow: 0 0 0 2px #0096bfab; + box-shadow: 0 0 0 2px var(--focus); + } +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='reset']:active, +input[type='button']:active, +input[type='range']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-moz-placeholder { + color: #949494; + color: var(--form-placeholder); +} + +:-ms-input-placeholder { + color: #949494; + color: var(--form-placeholder); +} + +::-ms-input-placeholder { + color: #949494; + color: var(--form-placeholder); +} + +::placeholder { + color: #949494; + color: var(--form-placeholder); +} + +@media (prefers-color-scheme: dark) { + + ::-moz-placeholder { + color: #a9a9a9; + color: var(--form-placeholder); + } + + :-ms-input-placeholder { + color: #a9a9a9; + color: var(--form-placeholder); + } + + ::-ms-input-placeholder { + color: #a9a9a9; + color: var(--form-placeholder); + } + + ::placeholder { + color: #a9a9a9; + color: var(--form-placeholder); + } +} + +fieldset { + border: 1px #0096bfab solid; + border: 1px var(--focus) solid; + border-radius: 6px; + margin: 0; + margin-bottom: 12px; + padding: 10px; +} + +@media (prefers-color-scheme: dark) { + + fieldset { + border: 1px #0096bfab solid; + border: 1px var(--focus) solid; + } +} + +legend { + font-size: 0.9em; + font-weight: 600; +} + +input[type='range'] { + margin: 10px 0; + padding: 10px 0; + background: transparent; +} + +input[type='range']:focus { + outline: none; +} + +input[type='range']::-webkit-slider-runnable-track { + width: 100%; + height: 9.5px; + -webkit-transition: 0.2s; + transition: 0.2s; + background: #efefef; + background: var(--background); + border-radius: 3px; +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-webkit-slider-runnable-track { + background: #161f27; + background: var(--background); + } +} + +input[type='range']::-webkit-slider-thumb { + box-shadow: 0 1px 1px #000, 0 0 1px #0d0d0d; + height: 20px; + width: 20px; + border-radius: 50%; + background: #dbdbdb; + background: var(--border); + -webkit-appearance: none; + margin-top: -7px; +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-webkit-slider-thumb { + background: #526980; + background: var(--border); + } +} + +input[type='range']:focus::-webkit-slider-runnable-track { + background: #efefef; + background: var(--background); +} + +@media (prefers-color-scheme: dark) { + + input[type='range']:focus::-webkit-slider-runnable-track { + background: #161f27; + background: var(--background); + } +} + +input[type='range']::-moz-range-track { + width: 100%; + height: 9.5px; + -moz-transition: 0.2s; + transition: 0.2s; + background: #efefef; + background: var(--background); + border-radius: 3px; +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-moz-range-track { + background: #161f27; + background: var(--background); + } +} + +input[type='range']::-moz-range-thumb { + box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d; + height: 20px; + width: 20px; + border-radius: 50%; + background: #dbdbdb; + background: var(--border); +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-moz-range-thumb { + background: #526980; + background: var(--border); + } +} + +input[type='range']::-ms-track { + width: 100%; + height: 9.5px; + background: transparent; + border-color: transparent; + border-width: 16px 0; + color: transparent; +} + +input[type='range']::-ms-fill-lower { + background: #efefef; + background: var(--background); + border: 0.2px solid #010101; + border-radius: 3px; + box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d; +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-ms-fill-lower { + background: #161f27; + background: var(--background); + } +} + +input[type='range']::-ms-fill-upper { + background: #efefef; + background: var(--background); + border: 0.2px solid #010101; + border-radius: 3px; + box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d; +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-ms-fill-upper { + background: #161f27; + background: var(--background); + } +} + +input[type='range']::-ms-thumb { + box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d; + border: 1px solid #000; + height: 20px; + width: 20px; + border-radius: 50%; + background: #dbdbdb; + background: var(--border); +} + +@media (prefers-color-scheme: dark) { + + input[type='range']::-ms-thumb { + background: #526980; + background: var(--border); + } +} + +input[type='range']:focus::-ms-fill-lower { + background: #efefef; + background: var(--background); +} + +@media (prefers-color-scheme: dark) { + + input[type='range']:focus::-ms-fill-lower { + background: #161f27; + background: var(--background); + } +} + +input[type='range']:focus::-ms-fill-upper { + background: #efefef; + background: var(--background); +} + +@media (prefers-color-scheme: dark) { + + input[type='range']:focus::-ms-fill-upper { + background: #161f27; + background: var(--background); + } +} + +a { + text-decoration: none; + color: #0076d1; + color: var(--links); +} + +@media (prefers-color-scheme: dark) { + + a { + color: #41adff; + color: var(--links); + } +} + +a:hover { + text-decoration: underline; +} + +code { + background: #efefef; + background: var(--background); + color: #000; + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +@media (prefers-color-scheme: dark) { + + code { + color: #ffbe85; + color: var(--code); + } +} + +@media (prefers-color-scheme: dark) { + + code { + background: #161f27; + background: var(--background); + } +} + +samp { + background: #efefef; + background: var(--background); + color: #000; + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +@media (prefers-color-scheme: dark) { + + samp { + color: #ffbe85; + color: var(--code); + } +} + +@media (prefers-color-scheme: dark) { + + samp { + background: #161f27; + background: var(--background); + } +} + +time { + background: #efefef; + background: var(--background); + color: #000; + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +@media (prefers-color-scheme: dark) { + + time { + color: #ffbe85; + color: var(--code); + } +} + +@media (prefers-color-scheme: dark) { + + time { + background: #161f27; + background: var(--background); + } +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: #39a33c; + color: var(--variable); + font-style: normal; + font-family: monospace; +} + +@media (prefers-color-scheme: dark) { + + var { + color: #d941e2; + color: var(--variable); + } +} + +kbd { + background: #efefef; + background: var(--background); + border: 1px solid #dbdbdb; + border: 1px solid var(--border); + border-radius: 2px; + color: #363636; + color: var(--text-main); + padding: 2px 4px 2px 4px; +} + +@media (prefers-color-scheme: dark) { + + kbd { + color: #dbdbdb; + color: var(--text-main); + } +} + +@media (prefers-color-scheme: dark) { + + kbd { + border: 1px solid #526980; + border: 1px solid var(--border); + } +} + +@media (prefers-color-scheme: dark) { + + kbd { + background: #161f27; + background: var(--background); + } +} + +img, +video { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid #dbdbdb; + border-top: 1px solid var(--border); +} + +@media (prefers-color-scheme: dark) { + + hr { + border-top: 1px solid #526980; + border-top: 1px solid var(--border); + } +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; + table-layout: fixed; +} + +table caption { + text-align: left; +} + +td, +th { + padding: 6px; + text-align: left; + vertical-align: top; + word-wrap: break-word; +} + +thead { + border-bottom: 1px solid #dbdbdb; + border-bottom: 1px solid var(--border); +} + +@media (prefers-color-scheme: dark) { + + thead { + border-bottom: 1px solid #526980; + border-bottom: 1px solid var(--border); + } +} + +tfoot { + border-top: 1px solid #dbdbdb; + border-top: 1px solid var(--border); +} + +@media (prefers-color-scheme: dark) { + + tfoot { + border-top: 1px solid #526980; + border-top: 1px solid var(--border); + } +} + +tbody tr:nth-child(even) { + background-color: #efefef; + background-color: var(--background); +} + +@media (prefers-color-scheme: dark) { + + tbody tr:nth-child(even) { + background-color: #161f27; + background-color: var(--background); + } +} + +tbody tr:nth-child(even) button { + background-color: #f7f7f7; + background-color: var(--background-alt); +} + +@media (prefers-color-scheme: dark) { + + tbody tr:nth-child(even) button { + background-color: #1a242f; + background-color: var(--background-alt); + } +} + +tbody tr:nth-child(even) button:hover { + background-color: #fff; + background-color: var(--background-body); +} + +@media (prefers-color-scheme: dark) { + + tbody tr:nth-child(even) button:hover { + background-color: #202b38; + background-color: var(--background-body); + } +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: #efefef; + background: var(--background); + border-radius: 6px; +} + +@media (prefers-color-scheme: dark) { + + ::-webkit-scrollbar-track { + background: #161f27; + background: var(--background); + } +} + +::-webkit-scrollbar-thumb { + background: rgb(170, 170, 170); + background: var(--scrollbar-thumb); + border-radius: 6px; +} + +@media (prefers-color-scheme: dark) { + + ::-webkit-scrollbar-thumb { + background: #040a0f; + background: var(--scrollbar-thumb); + } +} + +@media (prefers-color-scheme: dark) { + + ::-webkit-scrollbar-thumb { + background: #040a0f; + background: var(--scrollbar-thumb); + } +} + +::-webkit-scrollbar-thumb:hover { + background: #9b9b9b; + background: var(--scrollbar-thumb-hover); +} + +@media (prefers-color-scheme: dark) { + + ::-webkit-scrollbar-thumb:hover { + background: rgb(0, 0, 0); + background: var(--scrollbar-thumb-hover); + } +} + +@media (prefers-color-scheme: dark) { + + ::-webkit-scrollbar-thumb:hover { + background: rgb(0, 0, 0); + background: var(--scrollbar-thumb-hover); + } +} + +::-moz-selection { + background-color: #9e9e9e; + background-color: var(--selection); + color: #000; + color: var(--text-bright); +} + +::selection { + background-color: #9e9e9e; + background-color: var(--selection); + color: #000; + color: var(--text-bright); +} + +@media (prefers-color-scheme: dark) { + + ::-moz-selection { + color: #fff; + color: var(--text-bright); + } + + ::selection { + color: #fff; + color: var(--text-bright); + } +} + +@media (prefers-color-scheme: dark) { + + ::-moz-selection { + background-color: #1c76c5; + background-color: var(--selection); + } + + ::selection { + background-color: #1c76c5; + background-color: var(--selection); + } +} + +details { + display: flex; + flex-direction: column; + align-items: flex-start; + background-color: #f7f7f7; + background-color: var(--background-alt); + padding: 10px 10px 0; + margin: 1em 0; + border-radius: 6px; + overflow: hidden; +} + +@media (prefers-color-scheme: dark) { + + details { + background-color: #1a242f; + background-color: var(--background-alt); + } +} + +details[open] { + padding: 10px; +} + +details > :last-child { + margin-bottom: 0; +} + +details[open] summary { + margin-bottom: 10px; +} + +summary { + display: list-item; + background-color: #efefef; + background-color: var(--background); + padding: 10px; + margin: -10px -10px 0; + cursor: pointer; + outline: none; +} + +@media (prefers-color-scheme: dark) { + + summary { + background-color: #161f27; + background-color: var(--background); + } +} + +summary:hover, +summary:focus { + text-decoration: underline; +} + +details > :not(summary) { + margin-top: 0; +} + +summary::-webkit-details-marker { + color: #363636; + color: var(--text-main); +} + +@media (prefers-color-scheme: dark) { + + summary::-webkit-details-marker { + color: #dbdbdb; + color: var(--text-main); + } +} + +dialog { + background-color: #f7f7f7; + background-color: var(--background-alt); + color: #363636; + color: var(--text-main); + border: none; + border-radius: 6px; + border-color: #dbdbdb; + border-color: var(--border); + padding: 10px 30px; +} + +@media (prefers-color-scheme: dark) { + + dialog { + border-color: #526980; + border-color: var(--border); + } +} + +@media (prefers-color-scheme: dark) { + + dialog { + color: #dbdbdb; + color: var(--text-main); + } +} + +@media (prefers-color-scheme: dark) { + + dialog { + background-color: #1a242f; + background-color: var(--background-alt); + } +} + +dialog > header:first-child { + background-color: #efefef; + background-color: var(--background); + border-radius: 6px 6px 0 0; + margin: -10px -30px 10px; + padding: 10px; + text-align: center; +} + +@media (prefers-color-scheme: dark) { + + dialog > header:first-child { + background-color: #161f27; + background-color: var(--background); + } +} + +dialog::-webkit-backdrop { + background: #0000009c; + -webkit-backdrop-filter: blur(4px); + backdrop-filter: blur(4px); +} + +dialog::backdrop { + background: #0000009c; + -webkit-backdrop-filter: blur(4px); + backdrop-filter: blur(4px); +} + +footer { + border-top: 1px solid #dbdbdb; + border-top: 1px solid var(--border); + padding-top: 10px; + color: #70777f; + color: var(--text-muted); +} + +@media (prefers-color-scheme: dark) { + + footer { + color: #a9b1ba; + color: var(--text-muted); + } +} + +@media (prefers-color-scheme: dark) { + + footer { + border-top: 1px solid #526980; + border-top: 1px solid var(--border); + } +} + +body > footer { + margin-top: 40px; +} + +@media print { + body, + pre, + code, + summary, + details, + button, + input, + textarea { + background-color: #fff; + } + + button, + input, + textarea { + border: 1px solid #000; + } + + body, + h1, + h2, + h3, + h4, + h5, + h6, + pre, + code, + button, + input, + textarea, + footer, + summary, + strong { + color: #000; + } + + summary::marker { + color: #000; + } + + summary::-webkit-details-marker { + color: #000; + } + + tbody tr:nth-child(even) { + background-color: #f2f2f2; + } + + a { + color: #00f; + text-decoration: underline; + } +} diff --git a/OfflineCode/zmaintest3.html b/OfflineCode/zmaintest3.html new file mode 100644 index 0000000..3cf3407 --- /dev/null +++ b/OfflineCode/zmaintest3.html @@ -0,0 +1,1396 @@ + + + + + + + JavaScript Lernplattform – CodeLernen + + + + + + + + + +
    +
    +
    + +
    + + +
    +
    + +
    +
    + +
    +
    +

    HTML, CSS und JavaScript

    +

    Eine kommentierte Sammlung von Beispielen zum Lernen und Üben.

    +
    + +
    + +
    +
    BEISPIEL 01
    +

    Login und Formularprüfung

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

    +
    +
    + +
    +
    BEISPIEL 02
    +

    Klickzähler

    +
    0
    + + +
    + +
    +
    BEISPIEL 03
    +

    Live-Suche

    + +
      +
    • +
      Anna MüllerHTML
      +
    • +
    • +
      Max BergerCSS
      +
    • +
    • +
      Lisa WagnerJavaScript
      +
    • +
    • +
      Tom BauerHTML
      +
    • +
    • +
      Sarah HoferJavaScript
      +
    • +
    +

    +
    + + +
    +
    BEISPIEL 04
    +

    Lernende filtern

    +

    Suche nach Namen und filtere zusätzlich nach Fach.

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

      +
      + +
      +
      BEISPIEL 05
      +

      Aufgabenliste

      +
      + + +
      +
        +

        +
        + +
        +
        BEISPIEL 06
        +

        Tabs

        +
        + + + +
        +
        HTML definiert die Struktur einer Website.
        +
        CSS gestaltet Farben, Abstände und Layout.
        +
        JavaScript macht die Website interaktiv.
        +
        + +
        +
        BEISPIEL 07
        +

        Taschenrechner

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

        +
        + +
        +
        BEISPIEL 08
        +

        Würfelspiel

        +
        🎲
        + +

        +

        +
        + +
        +
        BEISPIEL 09
        +

        Zahl erraten

        +

        Errate eine Zahl zwischen 1 und 20.

        + + + +

        +

        Versuche: 0

        +
        + +
        +
        BEISPIEL 10
        +

        Array-Methoden

        + + + +
        
        +            
        + +
        +
        BEISPIEL 11
        +

        Zahlen sortieren

        +

        23, 4, 15, 8, 42, 2

        + + + +
        23, 4, 15, 8, 42, 2
        +
        + +
        +
        BEISPIEL 12
        +

        JavaScript-Objekt

        + +
        Noch keine Person angezeigt.
        +
        + +
        +
        BEISPIEL 13
        +

        Personentabelle mit Suche

        + +
        + + + + + + + + + +
        NameAlterBeruf
        +
        +

        +
        + +
        +
        BEISPIEL 14
        +

        Aufklappbare Bereiche

        + +
        HTML strukturiert die Inhalte einer Website.
        + +
        CSS gestaltet die Website.
        + +
        JavaScript fügt Interaktionen und Logik hinzu.
        +
        + +
        +
        BEISPIEL 15
        +

        Notizblock

        + + + + +

        +
        + +
        +
        BEISPIEL 16
        +

        Datum und Uhrzeit

        + +
        +
        + +
        +
        BEISPIEL 17
        +

        Text bearbeiten

        + + +
        +
        + +
        +
        BEISPIEL 18
        +

        CSS-Animation

        +
        + +
        + +
        +
        BEISPIEL 19
        +

        Lern-Checkliste

        + + + + + + +

        0 von 6 Themen erledigt

        +
        +
        +
        +
        + +
        +
        BEISPIEL 20
        +

        Codebeispiele zum Lernen

        + + +
        + +

        +
        + +
        +
        + + + +
        + + + + + + + \ No newline at end of file