Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| de:modul:m291:learningunits:lu10:aufgaben:a_code_to_copy [2026/05/06 21:35] – angelegt gkoch | de:modul:m291:learningunits:lu10:aufgaben:a_code_to_copy [2026/05/06 21:39] (aktuell) – gkoch | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Code zum Kopieren ====== | + | ====== |
| + | |||
| + | ===== Aufgabe 1 – Frage/ | ||
| + | <WRAP center round box 80%> | ||
| + | <code javascript> | ||
| + | { | ||
| + | id: 5, | ||
| + | question: "What happens if I use AI to solve all the tasks?", | ||
| + | answer: " | ||
| + | }, | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Aufgabe 2 – CSS-Code ===== | ||
| + | <WRAP center round box 80%> | ||
| + | <code html> | ||
| + | <style scoped> | ||
| + | .accordion-item { | ||
| + | padding-block: | ||
| + | border-bottom: | ||
| + | } | ||
| + | |||
| + | .category { | ||
| + | display: inline-block; | ||
| + | font-size: 0.7rem; | ||
| + | font-weight: | ||
| + | text-transform: | ||
| + | letter-spacing: | ||
| + | padding: 2px 8px; | ||
| + | border-radius: | ||
| + | background-color: | ||
| + | color: #666; | ||
| + | margin-bottom: | ||
| + | } | ||
| + | |||
| + | .accordion-btn { | ||
| + | background: none; | ||
| + | border: none; | ||
| + | font-size: 1rem; | ||
| + | font-weight: | ||
| + | width: 100%; | ||
| + | text-align: left; | ||
| + | cursor: pointer; | ||
| + | padding: 0; | ||
| + | } | ||
| + | |||
| + | .accordion-btn: | ||
| + | color: #6c32d6; | ||
| + | } | ||
| + | |||
| + | .panel { | ||
| + | display: none; | ||
| + | padding-top: | ||
| + | font-size: 0.9rem; | ||
| + | color: #555; | ||
| + | line-height: | ||
| + | } | ||
| + | |||
| + | .panel.open { | ||
| + | display: block; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | </ | ||