' + '
' + '
' + '' } ); container.on('', function(){ if (slid) return; var label = container.find('.sabai-directory-search-radius-label strong').text(radius.val()); container.find('.sabai-directory-search-radius-slider').slider({animate: true, min: 0, max: 100, value: radius.val(), step: 1, slide: function(e, ui){ radius.val(ui.value); label.text(ui.value); }}); if (navigator.geolocation && (document.location.protocol === 'https:' || document.location.hostname === 'localhost') ) { var geocode = function (trigger) { if (trigger) SABAI.ajaxLoader(trigger); if (!geocoder) geocoder = new google.maps.Geocoder(); navigator.geolocation.getCurrentPosition( function (pos) { geocoder.geocode({'latLng': new google.maps.LatLng(pos.coords.latitude,pos.coords.longitude)}, function(results, status) { if (trigger) SABAI.ajaxLoader(trigger, true); if (status == google.maps.GeocoderStatus.OK) { location.val(results[0].formatted_address).typeahead('val', results[0].formatted_address).effect('highlight', {}, 2000); $('#sabai-content .sabai-directory-search-location') .find('input[name="center"]').val(results[0] + ',' + results[0].geometry.location.lng()).end() .find('input[name="address_type"]').val(''); } }); }, function (error) { if (trigger) { SABAI.ajaxLoader(trigger, true); } SABAI.flash(error.message, 'danger'); SABAI.console.log(error.message + ' (' + error.code + ')'); }, {enableHighAccuracy:true, timeout:5000} ); }; container.find('.sabai-directory-search-geolocate').show().click(function(e){ e.preventDefault(); geocode($(this)); }); } slid = true; }); }); $('#sabai-content .sabai-directory-search-submit .sabai-btn').click(function(e){ var $this = $(this), form = $this.closest('form'); e.preventDefault(); form.find('[placeholder]').each(function() { var input = $(this); if (input.val() == input.attr('placeholder')) { input.val(''); } }); var submit = function(){ SABAI.ajax({ type: 'get', container: '#sabai-content', target: '.sabai-directory-listings-container', url: form.attr('action') + '&' + form.serialize(), pushState: true }); }; var center = $('#sabai-content .sabai-directory-search-location input[name="center"]'); if (location.val() && $('#sabai-content .sabai-directory-search-location input[name="address_type"]').val() === '' ) { if (!geocoder) geocoder = new google.maps.Geocoder(); geocoder.geocode({address: location.val()}, function(results, status) { switch (status) { case google.maps.GeocoderStatus.OK: center.val(results[0] + ',' + results[0].geometry.location.lng()); submit(); break; case google.maps.GeocoderStatus.ZERO_RESULTS: alert('Invalid location'); break; default: alert(status); } }); } else { center.val(''); submit(); } }); });
Cycles UK Greenwich Store,135 Creek Road,Greenwich,London,SE8 3BU
Our Greenwich Bike Shop has one of the best workshops in London. Our expert mechanics handle all ...
153 Green Lane, Rathnapish, Carlow, R93 W354, Ireland
JH McLoughlin & Co Ltd, Ballymany, Moorfield, Newbridge, Co. Kildare, W12 XK84, Ireland
48 Bis Avenue de Saint-Dié, 88000 Épinal, France
Lewins Mead, Bristol BS12PY
Whether you are new to cycling or a seasoned veteran, you are sure to find everything you need at...
5A Myrtlefield Shopping Centre, Myrtlefield, Aviemore PH22 1SB
Flexible personal shopping appointments/consultations for bike sales are only available out with ...
Cycles UK Watford Store,484-486 St Albans Road,Watford,Hertfordshire,WD24 6QU
Cycles UK Watford stocks bikes from the two biggest cycle brands in the world; Trek and Specializ...
Lange Koepoortstraat 47, 2000 Antwerpen, Belgium
11b Stadiou str., Ioannina, Epirus, Greece
Our Philosophy Our goal is to simply turn your vacations into a journey of experiences and knowle...
Railway Lane, Station Rd, Portarlington, Co. Laois, R32 X276, Ireland
92 Rue Saint-Spire, 91100 Corbeil-Essonnes, France
Cycles UK Maidstone Store,21-25 Lower Stone Street,Maidstone,Kent,ME15 6YT
Cycles UK Maidstone has a strong reputation for providing quality bikes and friendly service. Our...
2 Zone C, Mullingar Business Park, Mullingar, Co. Westmeath, N91 WF29, Ireland
Bridge St, Gateshead NE8 2BH
Cycles UK Braintree Store, 11a Great Square Braintree, Essex, CM7 1TX
Cycles UK Braintree is located in the centre of town on Great Square. It is a well-established bi...
Charlotte St, Graigue, Carlow, R93 P953, Ireland
Kea-Lew Business & Retail Park, Mountrath Rd, Kylekiproe, Portlaoise, Co. Laois, Ireland
At Race Right Cycles in Portlaoise, Co. Laois, we have everything that you need for your prized p...
Cycles UK Chelmsford Store,39 Victoria Road,Riverside Retail Park,Chelmsford,Essex,CM1 1AN
Cycles UK Chelmsford is located on the Riverside Retail Park and has ample free parking. Our Chel...
Napoleonstrasse 15, 3930 Visp, Switzerland
Tanyard Ln, Tullamore, Co. Offaly, Ireland
Showing 1 - 20 of 65 results
Exit mobile version