Suchergebnisse

Suche

Wird geladen...

Nichts gefunden

Probiere einen anderen Suchbegriff oder stöbere in unseren Kategorien:

" + data.c.map(function(c){return ""+esc(c.n)+""}).join("") + "
"; return } metaEl.textContent = prods.length + " Produkt" + (prods.length===1?"":"e") + (cats.length?(" · "+cats.length+" Kategorie"+(cats.length===1?"":"n")):""); var html=""; if(cats.length){ html += "
"; cats.forEach(function(c){html += "📂 "+esc(c.n)+""}); html += "
"; } html += "
"; prods.forEach(function(p){ html += ""; html += "\""+esc(p.n)+"\""; html += "
"; html += "

"+esc(p.m)+"

"; html += "

"+esc(p.n)+"

"; html += "

Kategorie: "+esc(p.k)+"

"; html += "Zur Kategorie →"; html += "
"; }); html += "
"; resEl.innerHTML = html; } function init(){ var q=getQ(); var inp=document.getElementById("lov-input");if(inp)inp.value=q; var form=document.getElementById("lov-form");if(form)form.addEventListener("submit",function(e){e.preventDefault();var v=inp.value.trim();window.location.href="/suche?q="+encodeURIComponent(v)}); fetch(INDEX_URL).then(function(r){return r.json()}).then(function(j){render(j,q)}).catch(function(){document.getElementById("lov-meta").textContent="Fehler beim Laden des Suchindex."}); } if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",init);else init(); })();