Fahrzeugauswahl

1 Fahrzeuge
Zufall
Hersteller
Preis
Rate
Kilometer
Erstzulassung
aufsteigend
aufsteigend
absteigend
Hersteller
Modell
BMW 116 1.6 16V KLIMA PDC 2.HAND GARANTIE Gebrauchtwagen
BMW 116
1.6 16V KLIMA PDC 2.HAND GARANTIE
Leistung 100 kW / 136 PS
Kilometerstand 150.790 km
Kraftstoff Benzin
Erstzulassung 10/2013
interne Nummer D265050
Getriebe Automatik
8.990 €
Kraftstoffverbrauch (kombiniert): l/100km
Details
Fahrzeug ansehen
BMW 116 1.6 16V KLIMA PDC 2.HAND GARANTIE Gebrauchtwagen
BMW 116
1.6 16V KLIMA PDC 2.HAND GARANTIE
Leistung 100 kW / 136 PS
Kilometerstand 150.790 km
Kraftstoff Benzin
Erstzulassung 10/2013
interne Nummer D265050
Getriebe Automatik
8.990 €
Kraftstoffverbrauch (kombiniert): l/100km
Details
Fahrzeug ansehen
, Trefferzahl, aktive Filter sowie die Seitennavigation gemeinsam. */ nativeSubmit.click(); return true; } function setOption(control, option) { if (!control || !option) { return false; } control.value = option.value; control.setAttribute('data-krenz-textsearch-applied', '1'); triggerControl(control); return true; } function clearPreviousSearchFilters(callback) { var controls = ['make', 'model', 'exterior_color'] .map(getFilterControl) .filter(function (control) { return control && control.getAttribute('data-krenz-textsearch-applied') === '1'; }); var delay = 0; controls.forEach(function (control) { control.value = emptyValue(control); control.removeAttribute('data-krenz-textsearch-applied'); triggerControl(control); if (control === getFilterControl('make')) { delay = 450; } }); window.setTimeout(callback, delay); } function waitForModelOption(query, runId, callback) { var started = Date.now(); function attempt() { var model = getFilterControl('model'); var option = findBestOption(model, query); if (runId !== searchRun) { return; } if (option || Date.now() - started >= 2400) { callback(model, option); return; } window.setTimeout(attempt, 120); } attempt(); } function finishSearch(matchCount, query, runId) { if (runId !== searchRun) { return; } if (matchCount > 0) { status.classList.remove('is-error'); status.textContent = 'Fahrzeuge werden gesucht ...'; /* Nicht nur change auslösen: WPCarSync verlangt mindestens einen echten Formular-Absende-Shortcode auf der Seite. */ window.setTimeout(function () { if (submitNativeFilters(runId)) { window.setTimeout(function () { var resultTop = document.querySelector( '.krenz-results-bar, .krenz-vehicle-results' ); if (resultTop && runId === searchRun) { status.textContent = 'Suche angewendet: „' + query + '“'; resultTop.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }, 650); } }, 80); } else { status.classList.add('is-error'); status.textContent = 'Kein passender Hersteller, kein Modell und keine Farbe gefunden.'; } } function applySearch() { var rawQuery = String(input.value || '').trim(); var query = normalize(rawQuery); var runId = ++searchRun; status.classList.remove('is-error'); if (!query) { clearPreviousSearchFilters(function () { status.textContent = ''; }); input.focus(); return; } status.textContent = 'Fahrzeuge werden gefiltert ...'; clearPreviousSearchFilters(function () { var make = getFilterControl('make'); var model = getFilterControl('model'); var color = getFilterControl('exterior_color'); var makeOption = findBestOption(make, query); var modelOption = findBestOption(model, query); var colorOption = findColorOption(color, query); var matches = 0; if (runId !== searchRun) { return; } if (makeOption) { if (setOption(make, makeOption)) { matches += 1; } waitForModelOption(query, runId, function (freshModel, freshModelOption) { var freshColor = getFilterControl('exterior_color'); var freshColorOption = findColorOption(freshColor, query); if (freshModelOption && setOption(freshModel, freshModelOption)) { matches += 1; } if (freshColorOption && setOption(freshColor, freshColorOption)) { matches += 1; } finishSearch(matches, rawQuery, runId); }); return; } if (modelOption && setOption(model, modelOption)) { matches += 1; } if (colorOption && setOption(color, colorOption)) { matches += 1; } finishSearch(matches, rawQuery, runId); }); } input.addEventListener('keydown', function (event) { if (event.key === 'Enter') { event.preventDefault(); applySearch(); } }); input.addEventListener('input', function () { status.classList.remove('is-error'); status.textContent = ''; }); submitButton.addEventListener('click', applySearch); document.addEventListener('change', function (event) { var control = event.target.closest('[data-krenz-filter-key] select'); if (control && !internalChange) { control.removeAttribute('data-krenz-textsearch-applied'); } }); document.addEventListener('click', function (event) { if (event.target.closest('.krenz-filter-reset, .wpcs-filter-reset')) { searchRun += 1; input.value = ''; status.textContent = ''; status.classList.remove('is-error'); } }); }());