Unusual places to stay and unique staycations in England, UK

Unusual places to stay and unique staycations in England, UK


Host Unusual Limited mapStartZoom) { $(‘#map_zoom_reset’)[0].style.display = ‘block’; } else { $(‘#map_zoom_reset’)[0].style.display = ‘none’; } if (currentZoom + 1 > 8) clusters.getSource().setDistance(0); else var distance = 40; } }); }); // cursors map.on(“pointermove”, function (evt) { var hit = this.forEachFeatureAtPixel(evt.pixel, function(feature, layer) { return true; }); if (hit) { this.getViewport().style.cursor = ‘pointer’; } else { this.getViewport().style.cursor = ‘grab’; } }); map.on(‘pointerdrag’, function(evt) { mapClearTips(); map.getViewport().style.cursor = “grabbing”; mapClearTips(); }); map.on(‘pointerup’, function(evt) { mapClearTips(); map.getViewport().style.cursor = “grab”; }); map.getView().on(‘change:resolution’, function() { //map.on(‘moveend’, function(evt) { mapClearTips(); if (mapStartZoom && map.getView().getZoom() > mapStartZoom) { $(‘#map_zoom_reset’)[0].style.display = ‘block’; } else { $(‘#map_zoom_reset’)[0].style.display = ‘none’; } if (map.getView().getZoom() > 8) clusters.getSource().setDistance(0); else var distance = 40; }); mapShowMarkers(); }; var updateMapStatus = window.setInterval(function() { if (typeof map !== ‘undefined’) { var thisZoom = map.getView().getZoom(); var thisCenter = map.getView().getCenter(); setCookie(“mapCurrentZoom”, thisZoom); setCookie(“mapCurrentCenter”, thisCenter); } }, 500); var markerIds = ”; var features = []; var allMarkerKeys = []; var mapMarkerInfo=”; function refreshMapMarkers() { var thisMarkerIds = document.getElementById(‘shop_all_results_id’).value; if (thisMarkerIds != markerIds) { mapClearMarkers(); markerIds = thisMarkerIds; var ajaxCall = new bumbleAJAXCall(‘/?page_type=shop_products_map_markers&pid=’ + markerIds, reloadMarkersFromStr); } var fullScreenBtn = $(‘.ol-full-screen-false’)[0]; if (typeof fullScreenBtn == ‘object’) { var newBtn = fullScreenBtn.cloneNode(); newBtn.innerHTML = fullScreenBtn.innerHTML; fullScreenBtn.parentNode.appendChild(newBtn); fullScreenBtn.parentNode.removeChild(fullScreenBtn); newBtn.onclick = mapFullScreen; } } function reloadMarkersFromStr(str) { mapClearMarkers(); mapClearTips(); allMarkerKeys = []; console.log(str); eval(str); mapShowMarkers(); } function mapClearMarkers() { if (typeof clusters == ‘object’) map.removeLayer(clusters); features = []; } function mapClearTips() { if (typeof mapMarkerInfo == ‘object’) { mapMarkerInfo.destroyTip(); mapMarkerInfo = ”; } else { //alert(typeof mapMarkerInfo); } } function mapShowMarkers() { var distance = 40; var source = new ol.source.Vector({ features: features }); var clusterSource = new ol.source.Cluster({ distance: distance, source: source }); clusters = new ol.layer.Vector({ source: clusterSource, style: function(feature) { var size = feature.get(‘features’).length; if (size == 1) { var iconStyle = new ol.style.Style({ image: new ol.style.Icon( /** @type {olx.style.IconOptions} */ ({ anchor: [0.5, 46], anchorXUnits: ‘fraction’, anchorYUnits: ‘pixels’, opacity: 1, src: ‘/bespoke/map-marker-home.png’ })) }); } else { var iconStyle = new ol.style.Style({ image: new ol.style.Icon( /** @type {olx.style.IconOptions} */ ({ anchor: [0.5, 46], anchorXUnits: ‘fraction’, anchorYUnits: ‘pixels’, opacity: 1, src: ‘/bespoke/map-marker.png’ })), text: new ol.style.Text({ text: size.toString(), font: ‘bold 16px sans-serif’, offsetY: -26, fill: new ol.style.Fill({ color: ‘#fff’ }) }) }); } return iconStyle; } }); if (typeof map == ‘object’) { map.addLayer(clusters); } } function mapMarkerTip(e, title, locationTitle, linkUrl, image) { mapClearTips(); var contentString = ‘‘; contentString += ‘‘; contentString += ‘‘ + title + ”; contentString += ” + locationTitle + ”; contentString += ‘×]]>‘; contentString += ”; mapMarkerInfo = new bumbleTip(‘map-canvas’, contentString, ‘top’, ‘map_marker_info’, 1, 0, 1); } function mapDestinationTip(e, title, linkUrl) { mapClearTips(); var contentString = ‘‘; contentString += ‘‘ + title + ‘‘; contentString += ‘

×

‘; contentString += ‘‘; mapMarkerInfo = new bumbleTip(‘map-canvas’, contentString, ‘top’, ‘map_marker_info_destination’, 1, 0, 1); } function codeAddress(address, titleText, linkUrl, centreMap, photoFile, locationTitle) { if (address.substr(0,4) == ‘GEO:’) { address = address.substr(4); var thisLL = address.split(‘,’); mapShowPin(thisLL, titleText, linkUrl, centreMap, photoFile, locationTitle); } else { // Google geocode geocoder.geocode( { ‘address’: address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { address = results[0].geometry.location.lat() + ‘,’ + results[0].geometry.location.lng(); var thisLL = address.split(‘,’); mapShowPin(thisLL, titleText, linkUrl, centreMap, photoFile, locationTitle); } }); } } function codeDestination(address, titleText, linkUrl) { if (address.substr(0,4) == ‘GEO:’) { address = address.substr(4); var thisLL = address.split(‘,’); mapShowDestinationPin(thisLL, titleText, linkUrl); } } function mapShowDestinationPin(latlongArr, titleText, linkUrl) { var thisMarkerKey = latlongArr[0] + ‘,’ + latlongArr[1]; if (bumbleInArray(thisMarkerKey, allMarkerKeys)) { latlongArr[0] = parseFloat(latlongArr[0]) + 0.0001; latlongArr[1] = parseFloat(latlongArr[1]) + 0.0001; thisMarkerKey = latlongArr[0] + ‘,’ + latlongArr[1]; } allMarkerKeys.push(thisMarkerKey); if (latlongArr) { var thisFeature = new ol.Feature({ geometry: new ol.geom.Point(getPointFromLongLat(parseFloat(latlongArr[1]), parseFloat(latlongArr[0]))), name: titleText, linkUrl: linkUrl }); features.push(thisFeature); } } function mapShowPin(latlongArr, titleText, linkUrl, centreMap, photoFile, locationTitle) { var thisMarkerKey = latlongArr[0] + ‘,’ + latlongArr[1]; if (bumbleInArray(thisMarkerKey, allMarkerKeys)) { latlongArr[0] = parseFloat(latlongArr[0]) + 0.0001; latlongArr[1] = parseFloat(latlongArr[1]) + 0.0001; thisMarkerKey = latlongArr[0] + ‘,’ + latlongArr[1]; } allMarkerKeys.push(thisMarkerKey); if (latlongArr) { if (centreMap == 1) { mapPan(latlongArr[0], latlongArr[1]) mapZoom(6); } else { var thisFeature = new ol.Feature({ geometry: new ol.geom.Point(getPointFromLongLat(parseFloat(latlongArr[1]), parseFloat(latlongArr[0]))), name: titleText, linkUrl: linkUrl, image: photoFile, locationTitle: locationTitle }); features.push(thisFeature); } } } function getPointFromLongLat(lon, lat) { return ol.proj.transform([lon, lat], ‘EPSG:4326’, ‘EPSG:3857’); } function mapPan(lat, lon) { var dest = ol.proj.fromLonLat([lon, lat]); if (typeof mapView == ‘object’) { mapView.animate({ center: dest, duration: 500 }); } } var mapStartZoom = 2; function mapZoom(zoom) { if (typeof mapView == ‘object’) { mapView.animate({ zoom: zoom, duration: 500 }); } if (zoom > 8) clusters.getSource().setDistance(0); else { clusters.getSource().setDistance(40); } } function mapZoomReset() { if (mapStartZoom && mapStartZoom > 0) { mapZoom(mapStartZoom); } } function mapFullScreen() { $(‘#map-canvas’).toggleClass(‘fullscreen’); $(‘#map_zoom_reset’).toggleClass(‘fullscreen’); setTimeout( function() { map.updateSize();}, 10); return false; } Clear Search

Country: All countries England – 696Scotland – 120Wales – 124Northern Ireland – 16Channel Islands – 2 Argentina – 1Australia – 24Austria – 2Barbados – 1Belgium – 2Belize – 1Bolivia – 1Brazil – 4Canada – 10Chile – 2Costa Rica – 6Croatia – 1Czech Republic – 1Denmark – 2Estonia – 6Finland – 10France – 36Germany – 6Greece – 11Guatemala – 1Hungary – 2Iceland – 4India – 2Indonesia – 3Ireland – 13Israel – 1Italy – 22Japan – 2Jordan – 1Kenya – 2Latvia – 2Malaysia – 1Mexico – 6Morocco – 1Namibia – 1Netherlands – 17New Zealand – 16Nicaragua – 1Norway – 13Panamá – 4Peru – 2Poland – 3Portugal – 13Slovenia – 5South Africa – 6Spain – 25Sri Lanka – 1Sweden – 11Switzerland – 5Tanzania – 2Thailand – 3Turkey – 1Uganda – 1Uruguay – 1USA – 66

Region: Aberdeenshire – 9Abruzzo – 1Alaska – 1Alentejo – 2Alessandria – 2Algarve – 6Alicante – 1Alstad – 1Amsterdam – 5Andalucia – 9Anglesey – 6Angus – 1Antwerp – 1Apulia – 3Aqaba – 1Aquitaine – 4Aragón – 1Argyll and Bute – 11Arkansas – 1Attica – 1Ayrshire – 2Baden-Württemberg – 1Baja California – 2Baja California Sur – 1Balearic Islands – 2Bali – 2Baranya – 2Berkshire – 2Berlin – 1Berwickshire – 1Bocas del Toro – 1Bourgogne-Franche-Comté – 1Bristol – 2British Columbia – 3Brittany – 3Buckinghamshire – 1Buskerud – 1California – 10Cambridgeshire – 4Campania – 1Canterbury – 9Capital Region – 1Cappadocia – 1Carinthia – 1Carmarthenshire – 6Castilla La Mancha – 3Catalonia – 3Central Highlands – 1Central Portugal – 1Centre-Val de Loire – 2Ceredigion – 18Chalkidiki – 1Cheshire – 7Clackmannanshire – 1Cochabamba – 1Coclé – 1Colón – 1Copenhagen – 1Cornwall – 70Corsica – 1County Antrim – 6County Conwy – 4County Cork – 2County Donegal – 3County Down – 5County Durham – 1County Fermanagh – 2County Galway – 3County Sligo – 1County Tyrone – 1County Wexlow – 1County Wicklow – 1Cumbria – 22Cyclades – 5Dalarna – 1Darién – 1Denbighshire – 1Derbyshire – 10Devon – 82Dodecanese – 1Dordogne – 2Dorset – 32Drâa-Tafilalet – 1Dublin – 1Dumfries and Galloway – 5Dundee – 2East Lothian – 4Eastern Uganda – 1Edinburgh – 1Essex – 18Falkirk – 1Fife – 3Finnmark – 1Fleinvaer – 1Flintshire – 2Florida – 2Franche-Comte – 1Free State – 1Friesland – 3Galicia – 1Gävleborg – 1Gelderland – 1Georgia – 1Gili Islands – 1Glamorgan – 5Glasgow – 1Gloppen in Vestland – 1Gloucestershire – 20Goriška – 1Granada – 1Greater Manchester – 1Groningen – 1Gwynedd – 10Halkidiki – 2Halland – 1Hampshire – 17Harju Maakond – 2Hawaii – 2Helsinki – 1Herefordshire – 21Hertfordshire – 1Himmerland – 1Idaho – 2Illinois – 1Indiana – 1Inverclyde – 1Inverness-Shire – 2Iquitos – 1Isle of Harris – 1Isle of Skye – 3Isle of Wight – 16Jaipur – 1Jersey – 1Joanopolis – 1Karelia – 1Kedah – 1Kent – 49Kentucky – 1Kunene – 1Kurzeme – 1KwaZulu-Natal – 1Laane County – 1Lanarkshire – 1Lancashire – 5Landers – 1Lanzarote – 3Lapland – 7Leicestershire – 1Liberec – 1Limon – 2Limousin – 2Lincolnshire – 12Liverpool – 2London – 6Londonderry – 2Lothian – 2Louisiana – 1Lower Saxony – 1Lubusz – 1Luxembourg – 1Lychen – 1Magallanes – 1Maldonado – 1Manawatu – 1Maribor – 1Marlborough – 1Massachusetts – 2Michigan – 1Midi-Pyrenees – 5Midlothian – 1Minnesota – 1Missouri – 1Monmouthshire – 10Montana – 1Moray – 4Mount Tremper – 1Nagasaki – 1Nairobi – 1Navarra – 1Negev – 1Nelson – 1Neuquen – 1Nevada – 1New Brunswick – 1New Mexico – 4New South Wales – 8New York – 4Newcastle-Upon-Tyne – 1Norfolk – 46Normandy – 2Norrboten – 1Norrbotten County – 2North Brabant – 1North Carolina – 2North Holland – 3North Portugal – 1North Rhine-Westphalia – 1Northamptonshire – 1Northeast Region – 1Northern Laikipia – 1Northland – 1Northumberland – 13Nottinghamshire – 2Nova Scotia – 2Oaxaca – 1Occitanie – 1Ohio – 2Ontario – 2Oppland – 1Oregon – 3Orkney Islands – 1Otago – 1Outer Hebrides – 4Oxfordshire – 6Parnu Maakond – 1Pays de la Loire – 3Peloponnese – 1Pembrokeshire – 22Pennsylvania – 1Perthshire – 14Phang Nga – 1Phuket – 1Picardie – 1Placencia – 1Poitou-Charentes – 2Police – 1Porto/North Portugal – 3Powys – 37Provence-Alpes-Côte d’Azur – 4Puglia – 2Puntarenas – 4Quebec – 2Queensland – 1Quintana Roo – 1Radnorshire – 2Rajasthan – 1Rhône-Alpes – 1Rigas – 1Rio de Janeiro – 1Rome – 1Ross-shire – 2Rotterdam – 2Rutland – 3Saint Brelade – 1Saint James – 1Santa Catarina – 2Savinja – 2Scottish Borders – 9Shetland Isles – 3Shropshire – 19Sibenik-Knin – 1Sicily – 2Sogn og Fjordane – 1Somerset – 41South Australia – 3South Carolina – 1South Karelia – 1South Lanarkshire – 3South Tyrol – 1Southern Province – 1Southern Region – 2St Gallen – 1Staffordshire – 1State of Mexico – 1Steigen – 1Stirling – 2Stirlingshire – 3Stockholm – 1Stockholm County – 1Stuttgart – 1Suffolk – 35Surat Thani – 1Surrey – 2Sussex – 62Sutherland – 2Swiss Alps – 2Tasmania – 3Telemark – 1Tenerife – 1Tennessee – 2Teuge – 1Texas – 3The Highlands – 19Thurgau – 1Tipperary – 1Toggenburg – 1Tokyo – 1Touraine – 1Troms og Finnmark – 1Trondelag – 1Tuscany – 5Tyrol – 1Umbria – 1Upper Carniola – 1Urubamba – 1Utah – 2Vaasa – 1Valga County – 1Valparaiso – 1Västerås – 1Västmanland – 1Venice – 2Vermont – 3Vesteroy – 1Vicenza – 1Victoria – 8Viken – 1Voru Maakond – 1Waikato – 1Warmia – 1Warwickshire – 11Washington – 4Western Australia – 1Western Cape – 4Westland District – 1Wiltshire – 3Winsconsin – 1Wisconsin – 1Worcestershire – 9Wyoming – 1Yorkshire – 40Zanzibar – 2

Keywords / postcode:

Price per night: = 0) || (thisObj.className && thisObj.className.search(‘shop_left_col’) >= 0)) { dontHide = 1; break; } p = p.parentNode; } if (dontHide == 0) { shopLeftPanel.addClass(‘collapsed’); shopLeftPanel.css(“margin-left”, ‘-280px’); } }); if (!navigator.userAgent.match(/Trident/)) { // if not IE //Enable swiping… var tapped = 0; /* $(document).swipe( { swipe:function(event, direction, distance, duration, fingerCount, fingerData) { if (direction == ‘right’) { shopLeftPanel.removeClass(‘active’); shopLeftPanel.removeClass(‘collapsed’); shopLeftPanel.css(“margin-left”, ‘0px’); } } }); */ shopLeftPanel.swipe( { excludedElements: “button, input, select, textarea” , tap:function() { if (shopLeftPanel[0].className.search(‘collapsed’) >= 0) { shopLeftPanel.removeClass(‘collapsed’); shopLeftPanel.css(“margin-left”, ‘0px’); } }, swipeStatus:function(event, phase, direction, distance) { if (phase==”end”) { shopLeftPanel.removeClass(‘active’); if (direction == ‘left’ || parseInt(shopLeftPanel.css(“margin-left”)) = 0) { currentPos = -280; currentPos += distance; currentPos = currentPos > 0 ? 0 : currentPos; } else { currentPos = 0; currentPos -= distance; } shopLeftPanel.css(“margin-left”, currentPos + ‘px’); } } }, allowPageScroll:”vertical”, triggerOnTouchEnd:true, triggerOnTouchLeave:true, threshold:5 }); } }); var searchResultsHTML = ”; var searchResultsContainer = ”; var searchPageNo = 2; var searchFilterStr = ”; var refreshPropertyTimeout = ”; function refreshProperties(resetPrice, clearSearch, resetFilters, forceMapPan) { if (searchPreventRefresh == 1) return false; var clearSearch = clearSearch && clearSearch == 1 ? 1 : 0; var forceMapPan = forceMapPan && forceMapPan == 1 ? 1 : 0; var resetFiltersStr = resetFilters && resetFilters == 1 ? ‘&reset_filters=1’ : ”; searchPageNo = 1; searchResultsContainer = document.getElementById(‘shop_offset_properties’); if (clearSearch == 1) getSearchFilterStr(0); else getSearchFilterStr(1); searchResultsContainer.style.opacity = ‘0.25’; //resetPrice = 0; if (resetPrice == 1) { searchFilterStr += ‘&reset_price=1’; var r = [0,300]; connectSlider.noUiSlider.set(r); } if (forceMapPan == 1) resetFiltersStr += ‘&clear=1’; var ajaxCall = new bumbleAJAXCall(‘/?page_type=shop_products_html&pageno=1&’ + searchFilterStr + resetFiltersStr, function() { document.getElementById(‘shop_offset_properties’).innerHTML = ”; searchResultsContainer.style.opacity = ‘1’; searchPageNo++; window.setTimeout(function() { // hide category and filters that aren’t relevant to selection var showCatsDelim = document.getElementById(‘shop_filters_cat_id_delim’).value; showCatsArr = []; if (showCatsDelim && showCatsDelim != ”) { showCatsArr = showCatsDelim.split(‘,’); showCatsArr = showCatsArr.filter(Number); } var filterCatIds = document.getElementById(‘search_cat_ids’).value; filterCatIds = filterCatIds.split(‘,’); if (showCatsArr.length > 0) { for (var i = 0; i = 0) { thisCat.style.display = ‘block’; thisCat.className = ‘on’; } else { thisCat.style.display = ‘none’; thisCat.className = ‘off’; if (thisCat.getAttribute(‘data-hidden’)!=’1′) { thisCheck.checked=false; var thisTag = document.getElementById(‘search_filter_tag_cat_’ + filterCatIds[i]); if (thisTag && typeof thisTag == ‘object’) thisTag.style.display=’none’; } } } } } else { for (var i = 0; i 0) { for (var i = 0; i = 0) { thisFeature.style.display = ‘block’; thisFeature.className = ‘on’; } else { thisFeature.style.display = ‘none’; thisFeature.className = ‘off’; thisFilter.checked=false; var thisTag = document.getElementById(‘search_filter_tag_filter_’ + filterFeatureIds[i]); if (thisTag && typeof thisTag == ‘object’) thisTag.style.display=’none’; } } } document.getElementById(‘shop_filter_filters_section’).style.visibility = ‘visible’; } else { for (var i = 0; i < filterFeatureIds.length; i++) { var thisFeature = document.getElementById('label_filter_' + filterFeatureIds[i]); if (thisFeature && typeof thisFeature == 'object') { thisFeature.style.display = 'block'; thisFeature.className = 'on'; } } document.getElementById('shop_filter_filters_section').style.visibility = 'hidden'; } refreshMapMarkers(); }, 300); }, searchResultsContainer); generateSearchTags(); } function searchClearAll() { searchPreventRefresh = 1; $('#filter_select_country').val(null).trigger('change'); $('#filter_select_county').val(null).trigger('change'); window.setTimeout(function() { if (map) { map.getView().setZoom(2); } searchPreventRefresh = 0; refreshProperties(1,1); }, 300); return false; } function getSearchFilterStr(useValues) { // useValues - reset everything if = 0, otherwise use chosen values var filterCountry = document.getElementById('filter_select_country').value; var filterRegion = $(".fancy_select.region").select2("val"); filterRegion = filterRegion.join('--'); console.log(filterRegion); var filterKeywords = document.getElementById('filter_search_keywords').value; var filterPriceMin = document.getElementById('search_price_min').value; var filterPriceMax = document.getElementById('search_price_max').value; var filterCatIds = document.getElementById('search_cat_ids').value; filterCatIds = filterCatIds.split(','); var filterCatIdsStr = ''; var resetCatIdsStr = ''; for (var i = 0; i < filterCatIds.length; i++) { var thisCat = document.getElementById('search_cat_' + filterCatIds[i]); var thisLabel = document.getElementById('label_cat_' + filterCatIds[i]); if (thisCat && typeof thisCat == 'object' && useValues == 0) thisCat.checked = false; if (thisCat && typeof thisCat == 'object' && thisCat.checked == true && (thisLabel.style.display == 'block' || thisLabel.style.display == '' || thisLabel.getAttribute('data-hidden')=='1')) { filterCatIdsStr += '&search_cat_' + filterCatIds[i] + '=1'; resetCatIdsStr += '&search_cat_' + filterCatIds[i] + '=0'; } } var filterFiltersIds = document.getElementById('search_filter_ids').value; filterFiltersIds = filterFiltersIds.split(','); var filterFiltersStr = ''; var resetFiltersStr = ''; for (var i = 0; i < filterFiltersIds.length; i++) { var thisFilter = document.getElementById('search_filter_' + filterFiltersIds[i]); var thisLabel = document.getElementById('label_filter_' + filterFiltersIds[i]); if (thisFilter && typeof thisFilter == 'object' && useValues == 0) { thisFilter.checked = false; thisLabel.style.display = 'block'; } if (thisFilter && typeof thisFilter == 'object' && thisFilter.checked == true && (thisLabel.style.display == 'block' || thisLabel.style.display == '')) { filterFiltersStr += '&search_filter_' + filterFiltersIds[i] + '=1'; resetFiltersStr += '&search_filter_' + filterFiltersIds[i] + '=0'; } } if (useValues == 1) { searchFilterStr = 'search_country=' + filterCountry + '&search_county=' + filterRegion + '&search_keywords=' + filterKeywords + '&search_price_min=' + filterPriceMin + '&search_price_max=' + filterPriceMax + filterCatIdsStr + filterFiltersStr; } else { searchFilterStr = 'clear=1'; searchPreventRefresh = 1; document.getElementById('filter_select_country').selectedIndex = 0; document.getElementById('filter_select_county').selectedIndex = 0; $('#filter_select_country').trigger('change.select2'); $('#filter_select_county').trigger('change.select2'); window.setTimeout(function() { searchPreventRefresh = 0; refreshProperties(); }, 1000); document.getElementById('filter_search_keywords').value = ''; } } window.setTimeout(function() { refreshProperties(0,0,0,1); }, 1500); if (window.addEventListener) { window.addEventListener('load', function() { window.setTimeout(function() { var loadMoreProperties = new bumbleLoadOnScroll('shop_offset_properties_trigger', 'shop_offset_properties', '/?page_type=shop_products_html&pageno=2&' + searchFilterStr, 1, function(){ searchPageNo++; getSearchFilterStr(1); if (searchPageNo <= 1) searchPageNo = 2; loadMoreProperties.scriptPath = '/?page_type=shop_products_html&pageno=' + searchPageNo + '&' + searchFilterStr; }, function() { getSearchFilterStr(1); if (searchPageNo 0) { var newTag = {}; newTag.description = document.getElementById('filter_select_country').value; newTag.elId = 'search_filter_tag_country'; tagsArr.push(newTag); } const regionVals = $(".fancy_select.region").select2("val"); if (regionVals.length > 0) { var newTag = {}; var thisTagStr = $(“.fancy_select.region”).select2(“val”); newTag.description = thisTagStr.toString().replace(/,/g, ‘, ‘); //newTag.description = document.getElementById(‘filter_county_concat’).value.replace(/–/g, ‘, ‘); newTag.elId = ‘search_filter_tag_county’; tagsArr.push(newTag); } if (document.getElementById(‘filter_search_keywords’).value != ”) { var newTag = {}; newTag.description = ‘Keywords: ‘ + document.getElementById(‘filter_search_keywords’).value; newTag.elId = ‘search_filter_tag_keywords’; tagsArr.push(newTag); } if (document.getElementById(‘search_price_min’).value > 0) { var newTag = {}; newTag.description = ‘Minimum price: £’ + document.getElementById(‘search_price_min’).value; newTag.elId = ‘search_filter_tag_price_min’; tagsArr.push(newTag); } if (document.getElementById(‘search_price_max’).value < 300) { var newTag = {}; newTag.description = 'Maximum price: £' + document.getElementById('search_price_max').value; newTag.elId = 'search_filter_tag_price_max'; tagsArr.push(newTag); } var filterCatIds = document.getElementById('search_cat_ids').value; filterCatIds = filterCatIds.split(','); for (var i = 0; i < filterCatIds.length; i++) { var thisCat = document.getElementById('search_cat_' + filterCatIds[i]); var thisLabel = document.getElementById('label_cat_' + filterCatIds[i]); if (thisCat && typeof thisCat == 'object' && thisCat.checked == true && (thisLabel.style.display == 'block' || thisLabel.style.display == '' || thisLabel.getAttribute('data-hidden')=='1')) { var newTag = {}; newTag.description = thisLabel.getAttribute('data-label'); newTag.elId = 'search_filter_tag_cat_' + filterCatIds[i]; newTag.objId = filterCatIds[i]; tagsArr.push(newTag); } } var filterFilterIds = document.getElementById('search_filter_ids').value; filterFilterIds = filterFilterIds.split(','); for (var i = 0; i < filterFilterIds.length; i++) { var thisFilter = document.getElementById('search_filter_' + filterFilterIds[i]); var thisLabel = document.getElementById('label_filter_' + filterFilterIds[i]); if (thisFilter && typeof thisFilter == 'object' && thisFilter.checked == true && (thisLabel.style.display == 'block' || thisLabel.style.display == '')) { var newTag = {}; newTag.description = thisLabel.getAttribute('data-label'); newTag.elId = 'search_filter_tag_filter_' + filterFilterIds[i]; newTag.objId = filterFilterIds[i]; tagsArr.push(newTag); } } for (var i = 0; i -1) { var thisCatId = tagEl.getAttribute('data-id'); var thisCat = document.getElementById('search_cat_' + thisCatId); thisCat.checked = false; } if (thisId.search('tag_filter') > -1) { var thisFilterId = tagEl.getAttribute(‘data-id’); var thisFilter = document.getElementById(‘search_filter_’ + thisFilterId); thisFilter.checked = false; } var r = [minPrice,maxPrice]; connectSlider.noUiSlider.set(r); refreshPropertiesDelay(1); } ]]> Back

Source