Haben Sie Probleme mit feuchtem Keller durch hoch anstehendes Grundwasser?

  •  
Probleme mit Grundwasser?
Haben Sie Probleme mit hoch anstehendem Grundwasser body { font-family: Arial, sans-serif; margin: 20px; } #dropdown { position: absolute; background: white; border: 1px solid #ccc; z-index: 100; display: none; max-height: 150px; overflow-y: auto; width: 200px; } #dropdown option { padding: 5px; cursor: pointer; } #dropdown option:hover { background-color: #f0f0f0; } ul { list-style-type: none; padding: 0; } ul li { padding: 5px; border: 1px solid #ccc; margin: 5px 0; } button { margin-top: 10px; }

Wählen Sie nachstehend die Strasse aus...

    const comboboxInput = document.getElementById("comboboxInput"); const dropdown = document.getElementById("dropdown"); const dropdownContainer = document.getElementById("dropdownContainer"); const addButton = document.getElementById("addButton"); const resultList = document.getElementById("resultList"); const message = document.getElementById("message"); const emailButton = document.getElementById("emailButton"); const COOKIE_NAME = "voteSubmitted"; const STORAGE_KEY = "resultListData"; const EMAIL_ADDRESS = "your-email@example.com"; function hasVoted() { return document.cookie.split("; ").some((cookie) => cookie.startsWith(COOKIE_NAME)); } function setVoteCookie() { document.cookie = `${COOKIE_NAME}=true; max-age=86400; path=/`; } function saveResultsToStorage() { const items = []; resultList.querySelectorAll("li").forEach((item) => items.push(item.textContent)); localStorage.setItem(STORAGE_KEY, JSON.stringify(items)); } function loadResultsFromStorage() { const savedItems = JSON.parse(localStorage.getItem(STORAGE_KEY) || "[]"); savedItems.forEach((item) => { const listItem = document.createElement("li"); listItem.textContent = item; resultList.appendChild(listItem); }); } function sendResultsByEmail() { const items = []; resultList.querySelectorAll("li").forEach((item) => items.push(item.textContent)); const mailBody = encodeURIComponent(`Die folgenden Optionen wurden ausgewählt:\n\n${items.join("\n")}`); window.location.href = `mailto:${EMAIL_ADDRESS}?subject=Abstimmungsergebnisse&body=${mailBody}`; } comboboxInput.addEventListener("focus", () => { dropdown.style.display = "block"; }); comboboxInput.addEventListener("input", () => { const filter = comboboxInput.value.toLowerCase(); const options = dropdown.options; let hasVisibleOption = false; for (let i = 0; i { if (!dropdownContainer.contains(event.target)) { dropdown.style.display = "none"; } }); dropdown.addEventListener("change", () => { comboboxInput.value = dropdown.value; dropdown.style.display = "none"; }); addButton.addEventListener("click", () => { if (hasVoted()) { message.textContent = "Sie haben bereits abgestimmt."; return; } const selectedOption = comboboxInput.value; if (selectedOption) { const listItem = document.createElement("li"); listItem.textContent = selectedOption; resultList.appendChild(listItem); saveResultsToStorage(); message.textContent = "Abstimmung gespeichert."; setVoteCookie(); } else { message.textContent = "Bitte wählen Sie eine Option aus."; } }); emailButton.addEventListener("click", sendResultsByEmail); loadResultsFromStorage();
    logo-2019-uwg-fw
    Datenschutz-Übersicht

    Diese Website verwendet Cookies, damit wir dir die bestmögliche Benutzererfahrung bieten können. Cookie-Informationen werden in deinem Browser gespeichert und führen Funktionen aus, wie das Wiedererkennen von dir, wenn du auf unsere Website zurückkehrst, und hilft unserem Team zu verstehen, welche Abschnitte der Website für dich am interessantesten und nützlichsten sind.