diff --git a/index.html b/index.html index a88bff4..40d6257 100644 --- a/index.html +++ b/index.html @@ -65,6 +65,21 @@ background-color: #2980b9; } + #resetButton { + padding: 0.75rem 2rem; + font-size: 1rem; + background-color: #3498db; + color: white; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; + } + + #resetButton:hover { + background-color: #2980b9; + } + .checkbox-section { display: flex; flex-wrap: wrap; @@ -178,9 +193,12 @@
- - +
+ + +
+
@@ -443,11 +461,6 @@
- - - - -
@@ -492,6 +505,16 @@ subCheckboxes.forEach(checkbox => { checkbox.checked = masterCheckbox.checked; }); + } + + function resetForm() { + document.getElementById('query').value = ''; // Textfeld zurücksetzen + + // Alle Checkboxen zurücksetzen + const checkboxes = document.querySelectorAll('.checkbox-container input[type="checkbox"]'); + checkboxes.forEach((checkbox) => { + checkbox.checked = false; // Alle Checkboxen auf unchecked setzen + }); }