Skip to content
View Quitboy69's full-sized avatar
đź’­
Worker
đź’­
Worker
  • Joined Dec 16, 2024

Block or report Quitboy69

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Quitboy69/README.md

<<<<<<< HEAD

<title>To-Do Liste</title> <style> body { font-family: Arial, sans-serif; margin: 20px; } input[type="text"] { padding: 5px; margin-right: 10px; } button { padding: 5px 10px; } ul { list-style-type: none; } li { margin: 10px 0; } </style> ======= >>>>>>> 3819e1b8e7d6c7ffe21834fb22826a33af434140

<<<<<<< HEAD

To-Do Liste

3819e1b8e7d6c7ffe21834fb22826a33af434140

<input type="text" id="taskInput" placeholder="Neue Aufgabe hinzufĂĽgen...">
<button onclick="addTask()">HinzufĂĽgen</button>

<h2>Deine Aufgaben:</h2>
<ul id="todoList"></ul>

Like <script> // Array fĂĽr die Aufgaben let todoList = [];

    // Funktion zum HinzufĂĽgen einer Aufgabe
    function addTask() {
        const taskInput = document.getElementById("taskInput");
        const task = taskInput.value.trim();

        if (task !== "") {
            todoList.push(task);
            taskInput.value = ""; // Eingabefeld leeren
            renderList(); // Liste neu rendern
        } else {
            alert("Bitte eine Aufgabe eingeben.");
        }
    }

    // Funktion zum Löschen einer Aufgabe
    function deleteTask(index) {
        todoList.splice(index, 1); // Aufgabe löschen
        renderList(); // Liste neu rendern
    }

    // Funktion zum Rendern der Liste
    function renderList() {
        const todoListElement = document.getElementById("todoList");
        todoListElement.innerHTML = ""; // Alte Liste löschen

        todoList.forEach((task, index) => {
            const li = document.createElement("li");
            li.textContent = task;

            // Erstellen eines Lösch-Buttons
            const deleteButton = document.createElement("button");
            deleteButton.textContent = "Löschen";
            deleteButton.onclick = function() {
                deleteTask(index);
            };

            // Löschen-Button zum Listeneintrag hinzufügen
            li.appendChild(deleteButton);

            // Listeneintrag zur Liste hinzufĂĽgen
            todoListElement.appendChild(li);
        });
    }
</script>

Popular repositories Loading

  1. Quitboy69 Quitboy69 Public

    Config files for my GitHub profile.

    1

  2. Voice_forAll Voice_forAll Public template

  3. cookbook cookbook Public

    Forked from google-gemini/cookbook

    Examples and guides for using the Gemini API

    Jupyter Notebook