Verfijn zoekopdracht
Verfijn zoekopdracht
Soort project
Prijs
Oppervlakte
Gratis
Huurvorm
Oplevering
Aantal ruimtes
Ligging
Parkeerruimte
Aanwezigheid
';
$('body').append(html);
}
// Look for 2nd time for sm map
html = $('#divResults').html();
if ( html.indexOf('/*--RUN-SCRIPT-START', h1end) > 0 && html.indexOf('RUN-SCRIPT-END--*/') > 0 )
{
html = html.substring(html.indexOf('/*--RUN-SCRIPT-START', h1end) + 20);
html = html.substring(0, html.indexOf('RUN-SCRIPT-END--*/'));
html = '';
$('body').append(html);
}
// Hide the loader
hideModal();
// All filters except the current group
$('span[rel=relFilterCounts]').each(function () {
if ( ( lastFIDcalled != '' && $(this).attr('id').indexOf(lastFIDcalled) == 0 ) || $(this).attr('alt') != 'mode_A' )
return;
$(this).html('(0)'); // Set their count to zero
idprnt = $(this).attr('id').replace('_count', '');
if ( idprnt.indexOf('chkObjId_gma_') >= 0 )
idprnt = 'idFC_gmafree_' + idprnt.replace('chkObjId_gma_', '');
else
idprnt = 'idFC_FID_' + idprnt.replace('chkFId', '');
$('#'+idprnt).addClass('disabled');
});
// Load the JSON
jsonStr = $('#idJSON4Filters').html();
if ( jsonStr == '' || jsonStr == null )
return;
json = null;
try {
json = JSON.parse(jsonStr);
} catch (e) { return; }
for (var i=0; i
= 0 )
idprnt = 'idFC_gmafree_' + idprnt.replace('chkObjId_gma_', '');
else
idprnt = 'idFC_FID_' + idprnt.replace('chkFId', '');
if ( $('#'+json.counts[i].id).html() == '(0)' )
$('#'+idprnt).addClass('disabled');
else
$('#'+idprnt).removeClass('disabled');
}
// remove the disabled effect
$('.tdFilter input[type=checkbox]').removeAttr('disabled');
$('.tdFilter a[hrefs]').each(function(){ $(this).attr('href', $(this).attr('hrefs')).removeAttr('hrefs'); });
// add the disabled effect
$('.tdFilter.disabled input[type=checkbox]').attr('disabled', 'disabled');
$('.tdFilter.disabled a').each(function(){ $(this).attr('hrefs', $(this).attr('href')).removeAttr('href'); });
// if its an ajax call resulted in hash
if ( json.hash != '' )
{
console.log("NHASH: "+json.hash);
// save the hash to window url
window.location.hash = '#hash_'+json.hash;
}
// else if its an ajax call resulted in seo url
else if ( json.seourl != '' )
{
console.log("SEO-URL: "+json.seourl);
// save the seo url
history.pushState({}, null, json.seourl);
}
$('[data-toggle="popover"]').popover({trigger:'hover', html:true});
}
$(document).ready(function () {
$("div[alt='fValMax']").hide();
$("div[alt='fValMax']:has(input[checked])").show();
$('.jspContainer').css('width', '100%');
$('.jspContainer').parent().css('width', '100%');
chash = window.location.hash;
// make the ajax call with base64_decoded hash
if ( chash != '' && chash.indexOf('#hash_') == 0 )
{
qs = base64_decode(chash.replace('#hash_', ''));
console.log("QS: "+qs);
// rebuild url4filter
console.log("Old url4filter: "+url4filter);
url4filter = 'https://biedenenhuren.nl/search_products.php?';
minPrice = 0;
maxPrice = 0;
minSA = 0;
maxSA = 0;
// uncheck all checkboxes
$("input[type=checkbox]").removeAttr("checked");
// Now check only the selected ones
arrVars = ['mCatId', 'searchText', 'sk', 'so', 'vt'];
arr = qs.split('&');
for ( var i1=0; i1 -1 ) continue;
key = arr2[0].replace('[]', '');
val = arr2[1];
// Now check the selected ones
console.log("SEL: K["+key+"] V["+val+"]");
$("input[type=checkbox][name^="+key+"][value='"+val+"']").attr("checked","checked");
}
console.log("New url4filter: "+url4filter);
// Show the checked groups open
$(".FilterBoxWRep:has(input[type=checkbox]:checked)").show();
if ( maxPrice > 0 ) $("#idPRS").slider("setValue", [minPrice,maxPrice]);
if ( maxSA > 0 ) $("#idSAS").slider("setValue", [minSA,maxSA]);
makeListingAjaxCall('https://biedenenhuren.nl/search_products.php?'+qs);
}
});
//-->