Arbeitsblätter - interaktive Übungen - Links
zum Lehrwerk "Menschen"
erstellt von Ilknur Aka aus DaF-Lehrwerken und Online-DaF-Seiten
This provides the skeleton, including an input field, an "Add" button, and an empty list container.
This logic handles adding new items and removing them when clicked. javascript HTML, CSS, JavaScript
// script.js function addTask() { const input = document.getElementById('todoInput'); const list = document.getElementById('todoList'); if (input.value.trim() !== "") { const li = document.createElement('li'); li.textContent = input.value; // Clicking the item removes it li.onclick = function() { this.remove(); }; list.appendChild(li); input.value = ""; // Clear input } } Use code with caution. Copied to clipboard Copy each block into a file named as labeled above. This provides the skeleton, including an input field,
| Lektion 13: |
|
|
| Lektion 14: |
|
|
| Lektion 15: |
|
|
|
Lektion 16: |
|
|
| Lektion 17: |
|
|
| Lektion 18: |
|
|
| Lektion 19: |
|
|
|
Lektion 20: |
|
|
| Lektion 21: |
|
|
| Lektion 22: |
|
|
| Lektion 23: |
|
|
|
Lektion 24: |
|
|
Â