'
+ '
'
}
);
container.on('shown.bs.sabaipopover', 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-embed-wordpress-shortcode-1 .sabai-directory-search-location')
.find('input[name="center"]').val(results[0].geometry.location.lat() + ',' + 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-embed-wordpress-shortcode-1 .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-embed-wordpress-shortcode-1',
target: '.sabai-directory-listings-container',
url: form.attr('action') + '&' + form.serialize(),
pushState: true
});
};
var center = $('#sabai-embed-wordpress-shortcode-1 .sabai-directory-search-location input[name="center"]');
if (location.val()
&& $('#sabai-embed-wordpress-shortcode-1 .sabai-directory-search-location input[name="address_type"]').val() === ''
) {
if (!geocoder) geocoder = new google.maps.Geocoder();
geocoder.geocode({address: location.val(), region: 'ch'}, function(results, status) {
switch (status) {
case google.maps.GeocoderStatus.OK:
center.val(results[0].geometry.location.lat() + ',' + results[0].geometry.location.lng());
submit();
break;
case google.maps.GeocoderStatus.ZERO_RESULTS:
alert('Invalid location');
break;
default:
alert(status);
}
});
} else {
center.val('');
submit();
}
});
});
Bautec AG
Riedliweg 17, 3292 Busswil BE
smino
Spinnereistrasse 16, 8645 Rapperswil-Jona
Ramseier & Associates LTD
Itten+Brechbühl AG
Nordring 4A, Postfach, 3001 Bern
FABULOUS URBAN
Vulkanplatz 7, 8048 Zürich
MGA AG Architektur-Bauleitung
Hintere Bahnhofstrasse 9, Postfach 301, 8853 Lachen
A + P Architektur und Planung GmbH
Adam Göuffistrasse 18, Postfach 77, 2501 Biel-Bienne
Atelier 2 Architektur GmbH
Stägenacker 35, 9553 Bettwiesen
Sigrist Schweizer Architekten AG
Sentimattstrasse 5, 6003 Luzern
HSB Architekten GmbH
Poststrasse 1, 4500 Solothurn
artevetro architekten ag
Grammetstrasse 14, 4410 Liestal
Studio Barrus
Töpferstrasse 28, 8045 Zürich
Vomsattel Wagner Architekten
Bahnhofstrasse 10, 3930 Visp
meier architekten Zürich
Albisriederstrasse 80, 8003 Zürich
Schoop De Santis Architekten AG
Badstrasse 15, 5400 Baden
Scheitlin Syfrig Architekten AG
Libellenrain 17, 6004 Luzern
WANNERPARTNER ARCHITEKTEN GmbH
Frohburgerstrasse 32, 4132 Muttenz
Schnieper Architekten
Amstutzstrasse 3a, 6010 Kriens
HABERSTROH ARCHITEKTEN
Peter Merian-Strasse 54, 4052 Basel
GPplus GmbH
Höhenweg 19, 4562 Biberist
MMJS Jauch-Stolz Architekten AG
Inseliquai 10, 6005 Luzern
Fanzun AG
Salvatorenstr. 66, 7000 Chur
Zumbühl & Russo Architekten
Mittlere Strasse 3a, 3600 Thun
Baureag Architekten AG
Bruggmatt 1, 6130 Willisau