$("#search_bar_dummy").hide();
$("#search_bar_vehicle").show();
searchAjaxUrl = "/search-vehicles";
vehicleNotFoundUrl = "/geen-voertuigen-gevonden";
var youtubeIframeApiUrl = "https://www.youtube.com/iframe_api";
var paramsData = {"module":"website","controller":"search","action":"index","tabId":"68","tabName":"basRent","vbrand":["MAN"],"page":"1"};
var pageId = (typeof paramsData.pageId !== "undefined") ? paramsData.pageId : '';
var tabId = 68;
if (tabId == 32) {
searchAjaxUrl = "/search-bts";
vehicleNotFoundUrl = "/geen-voertuigen-gevonden";
}
var httpReferrer = 1;
searchPage = true;
var searchOptions = window.location.hash;
var toggleMobileFilters = true;
var filterOptions = searchOptions.substr(1);
translatedKey['Registratie'] = 'Registratie';
translatedKey['Price'] = 'Prijs';
translatedKey['veuronorm'] = 'Euronorm';
translatedKey['dish_height'] = 'Schotelhoogte';
translatedKey['Power'] = 'Vermogen (pk)';
translatedKey['chassis_height_cm'] = 'Chassishoogte (cm.)';
translatedKey['new'] = 'Nieuw';
translatedKey['Combi'] = 'Combi';
translatedKey['Diversen'] = 'Diversen';
translatedKey['Bouwmachine'] = 'Bouwmachine';
translatedKey['Personenauto'] = 'Personenauto';
translatedKey['Lichte bedrijfsauto'] = 'Lichte bedrijfsauto';
translatedKey["New"] = 'Nieuw';
translatedKey["yes"] = 'Ja';
translatedKey["no"] = 'Nee';
translatedKey["tail_lift_under_chassis"] = 'Laadklep onder chassis';
translatedKey["remove_filters"] = 'Verwijder filters';
translatedKey["results"] = 'Resultaten';
translatedKey["result"] = 'resultaat';
translatedKey['Bakwagen + Aanhangwagen'] = 'Bakwagen + Aanhangwagen';
translatedKey['Trekker + Oplegger'] = 'Trekker + Oplegger';
translatedKey['Containers'] = 'Container';
translatedKey['vehicle_lease'] = 'Lease voertuigen';
$(document).ready(function(){
if ($(window).width() > 640) {
$('#filters-area').show();
} else {
if ($('body').attr('class') == 'mobile') {
$('.callus').hide();
$('#backButtonFilter').hide();
$('.breadcrumbs').hide();
}
}
$("#searchContainer").hide();
if(searchOptions.length > 0) {
var urlParams = getUrlJson(filterOptions);
addUrlFilters(urlParams);
} else {
addUrlFilters(paramsData);
}
$("#left_topfilters").html("");
$("#remove_topfilters").html("");
var applyPaginationSearch = parseInt('1');
if (applyPaginationSearch) {
vehicleSearch.paginationSearch = true;
}
vehicleSearch.setSearchString('');
vehicleSearch.doRequest(refreshPage = true);
});
Resultaten worden geladen...
Resultaten worden geladen...
var cookieLifeTime = 31536000;
var countryCode = 'NL';
var filterType = {};
filterType['vprice_asc'] = "Prijs (laag-hoog)";
filterType['vprice_desc'] = "Prijs (hoog-laag)";
filterType['vRentPrice_asc'] = "Prijs (laag-hoog)";
filterType['vRentPrice_desc'] = "Prijs (hoog-laag)";
filterType[''] = "Prijs (laag-hoog) ";
filterType['vshippingPrice_asc'] = "Prijs incl. verscheping (laag - hoog)";
filterType['vshippingPrice_desc'] = "Prijs incl. verscheping (hoog - laag)";
filterType['vregistrationDate_asc'] = "1e Registratie (oud-nieuw)";
filterType['vregistrationDate_desc'] = "1e Registratie (nieuw-oud)";
filterType['visNew'] = "Nieuwe voorraad";
filterType['visDiscount'] = "Korting";
filterType['desc'] = '';
filterType['asc'] = '';
vehicleSearch.addFilters('saveSearchId', '');
var filtersDifferentDisplayValue = [
'vailGate', 'vsuspension', 'vSuspensionFront', 'vSuspensionBack', 'vamountOfGears', 'vlease', 'veuronorm'
];
var otherPeopleShortlistCountMessage = "anderen hebben dit voertuig op hun favorietenlijst staan.";
$(document).ready(function(){
$.cookie("view-mode", "list", {path : '/', });
var applyPaginationSearch = parseInt('1');
if (!applyPaginationSearch) {
$(this).on('scroll', function(){
var searchLoaderObject = $( "#searchResultAjaxTrigger");
isOnView = isElementVisible(searchLoaderObject);
if(isOnView) {
vehicleSearch.appendResults();
}
});
}
});
function setSearchFilter()
{
var sortKey = $.cookie('vehicle_sort_key');
var orderKey = $.cookie('vehicle_sort_order');
if (sortKey != "undefined") {
sortKey = (filterType[sortKey + '_' + orderKey] == "undefined") ? sortKey + '_' + orderKey : sortKey;
$("#selectedFilter").html(filterType[sortKey] + filterType[orderKey]);
}
}
window.addEventListener('click', function() {
var dropdownElement = $('#searchVehicleFilter ul');
if ('visible' === dropdownElement.css('visibility')) {
dropdownElement.css('visibility', 'hidden');
}
});
Resultaten worden geladen...