บ้านสวนดุสิต 3 สำหรับขาย | Lab Property Thailand
", width: 66, height: 65 }, events: { click:function(cluster, event, object) { try { var same_address = true; var adr = ''; $.each(object.data.markers, function(item) { if(adr == '') adr = object.data.markers[item].adr; if(adr != object.data.markers[item].adr) same_address = false; }); if(same_address) { cluster.main.map.panTo(object.data.latLng); cluster.main.map.setZoom(19); } else { cluster.main.map.panTo(object.data.latLng); cluster.main.map.setZoom(cluster.main.map.getZoom()+1); } } catch(err) { cluster.main.map.panTo(object.data.latLng); cluster.main.map.setZoom(cluster.main.map.getZoom()+1); } } } }; // Cluster config end // // Map style start // //mapStyle = [{"featureType":"water","stylers":[{"color":"#46bcec"},{"visibility":"on"}]},{"featureType":"landscape","stylers":[{"color":"#f2f2f2"}]},{"featureType":"road","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]}]; //mapStyle = [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.business","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]}]; mapStyle = [{"featureType":"landscape","stylers":[{"hue":"#FFA800"},{"saturation":0},{"lightness":0},{"gamma":1}]},{"featureType":"road.highway","stylers":[{"hue":"#53FF00"},{"saturation":-73},{"lightness":40},{"gamma":1}]},{"featureType":"road.arterial","stylers":[{"hue":"#FBFF00"},{"saturation":0},{"lightness":0},{"gamma":1}]},{"featureType":"road.local","stylers":[{"hue":"#00FFFD"},{"saturation":0},{"lightness":30},{"gamma":1}]},{"featureType":"water","stylers":[{"hue":"#00BFFF"},{"saturation":6},{"lightness":8},{"gamma":1}]},{"featureType":"poi","stylers":[{"hue":"#679714"},{"saturation":33.4},{"lightness":-25.4},{"gamma":1}]}]; // Map style end // // Map Marker options start // markerOptions = { draggable: false }; // Map Marker options end // // Calendar translation start // var translated_cal = { days: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์", "วันอาทิตย์"], daysShort: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์", "วันอาทิตย์"], daysMin: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์", "วันอาทิตย์"], months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "อาจ", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"], monthsShort: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "อาจ", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"] }; if(typeof(DPGlobal) != 'undefined'){ DPGlobal.dates = translated_cal; } if($(selectorResults).length <= 0) selectorResults = '.wrap-content .container'; // Calendar translation End // // Slider range Start // // Slider range End // // [START] Save search // $("#search-save").click(function(){ manualSearch(0, '#content', true); return false; }); // [END] Save search // // Popup form Start // /* visible */ $('.hidden-agent-details,.hidden-file-details').css('display','block'); $('.popup-with-form').magnificPopup({ type: 'inline', preloader: false, focus: '#name', // When elemened is focused, some mobile browsers in some cases zoom in // It looks not nice, so we disable it: callbacks: { beforeOpen: function() { if($(window).width() < 700) { this.st.focus = false; } else { this.st.focus = '#name'; } } } }); $('#unhide-agent-mask').click(function(){ var data = $('#test-form').serializeArray(); data.push({name: 'property_id', value: "44"}); data.push({name: 'agent_id', value: "46"}); //console.log( data ); $('#ajax-indicator-masking').css('display', 'inline'); // send info to agent $.post("https://lab-property.com/frontend/maskingsubmit/th", data, function(data){ if(data=='successfully') { // Display agent details $('.popup-with-form').css('display', 'none'); // Close popup $.magnificPopup.instance.close(); } else { $('.alert.hidden').css('display', 'block'); $('.alert.hidden').css('visibility', 'visible'); $('#popup-form-validation').html(data); //console.log("Data Loaded: " + data); } $('#ajax-indicator-masking').css('display', 'none'); }); return false; }); // Popup form End // // Filters Start // $(".checkbox_am").click((function(){ var option_id = $(this).attr('data-option_id'); if($(this).prop('checked')) { $("#search_option_"+option_id).prop('checked', true); } else { $("#search_option_"+option_id).prop('checked', false); } //console.log(option_id); })); $(".input_am").focusout((function(){ var option_id = $(this).attr('data-option_id'); if($(this).hasClass('multi_am')) { $("#search_option_"+option_id+"_multi").val($(this).val()); } else { $("#search_option_"+option_id).val($(this).val()); } //console.log(option_id); })); $(".input_am_from").focusout((function(){ var option_id = $(this).attr('data-option_id'); $("#search_option_"+option_id+"_from").val($(this).val()); //console.log(option_id); })); $(".input_am_to").focusout((function(){ var option_id = $(this).attr('data-option_id'); $("#search_option_"+option_id+"_to").val($(this).val()); //console.log(option_id); })); $(".checkbox_am, .search-form .advanced-form-part label.checkbox input").prop('checked', false); $(".input_am, .input_am_from, .input_am_to, .search-form input[type=text], .search-form select").val(''); $('.search-form select.selectpicker').selectpicker('render'); $("button.refresh_filters").click(function () { manualSearch(0); return false; }); showCounters([]); // Filters End // /* $('#your_button_id').click(function(){ $("#wrap-map").gmap3({ map:{ options:{ center: [12.8668815, 100.90961803376], zoom: 13 } }}); return false; }); */ //Init carousel $('#myCarousel').carousel(); $('#search-start-map').click(function () { $('#wrap-map-1').attr('id', 'wrap-map').empty(); if(!map) map ='init'; manualSearch(0, false); return false; }); /* $(".scroll").click(function(event){ event.preventDefault(); //calculate destination place var dest=0; if($(this.hash).offset().top > $(document).height()-$(window).height()){ dest=$(document).height()-$(window).height(); }else{ dest=$(this.hash).offset().top; } //go to destination $('html,body').animate({scrollTop:dest}, 2000,'swing'); }); */ /* Search start */ $('.menu-onmap li a').click(function () { if(!$(this).parent().hasClass('list-property-button')) { $(this).parent().parent().find('li').removeClass("active"); $(this).parent().addClass("active"); if(loadOnTab) manualSearch(0); return false; } }); if($('.menu-onmap li.active').length == 0) { $('.menu-onmap li.all-button').addClass('active'); } $('#search-start').click(function () { manualSearch(0); return false; }); /* Search end */ /* Date picker */ var nowTemp = new Date(); var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0); $('.datetimepicker_standard').datepicker().on('changeDate', function(ev) { $(this).datepicker('hide'); }); var checkin = $('#datetimepicker1').datepicker({ onRender: function(date) { //console.log(date.valueOf()); //console.log(date.toString()); //console.log(now.valueOf()); var dd = date.getDate(); var mm = date.getMonth()+1;//January is 0!` var yyyy = date.getFullYear(); if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} var today_formated = yyyy+'-'+mm+'-'+dd; if(date.valueOf() < now.valueOf()) // Just for performance { return 'disabled'; } return ''; } }).on('changeDate', function(ev) { if (ev.date.valueOf() > checkout.date.valueOf()) { var newDate = new Date(ev.date) newDate.setDate(newDate.getDate() + 7); checkout.setValue(newDate); } checkin.hide(); $('#datetimepicker2')[0].focus(); }).data('datepicker'); var checkout = $('#datetimepicker2').datepicker({ onRender: function(date) { var dd = date.getDate(); var mm = date.getMonth()+1;//January is 0!` var yyyy = date.getFullYear(); if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} var today_formated = yyyy+'-'+mm+'-'+dd; if(date.valueOf() <= checkin.date.valueOf()) // Just for performance { return 'disabled'; } return ''; } }).on('changeDate', function(ev) { checkout.hide(); }).data('datepicker'); $('a.available.selectable').click(function(){ $('#datetimepicker1').val($(this).attr('ref')); $('#datetimepicker2').val($(this).attr('ref_to')); $('div.property-form form input:first').focus(); var nowTemp = new Date($(this).attr('ref')); var date_from = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0); checkin.setValue(date_from); date_from.setDate(date_from.getDate() + 7); checkout.setValue(date_from); }); /* Date picker end */ /* Edit property */ // If alredy selected var edit_map_marker; var edit_map if($('#mapsAddress').length){ if($('#inputGps').length && $('#inputGps').val() != '') { savedGpsData = $('#inputGps').val().split(", "); edit_map = L.map('mapsAddress', { center: [parseFloat(savedGpsData[0]), parseFloat(savedGpsData[1])], zoom: 13+1, }); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(edit_map); var positron = L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}{r}.png').addTo(edit_map); edit_map_marker = L.marker( [parseFloat(savedGpsData[0]), parseFloat(savedGpsData[1])], {draggable: true} ).addTo(edit_map); edit_map_marker.on('dragend', function(event){ var marker = event.target; var location = marker.getLatLng(); var lat = location.lat; var lon = location.lng; $('#inputGps').val(lat+', '+lon); //retrieved the position }); firstSet = true; } else { edit_map = L.map('mapsAddress', { center: [12.9235557, 100.88245510000002], zoom: 13+1, }); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(edit_map); var positron = L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}{r}.png').addTo(edit_map); edit_map_marker = L.marker( [12.9235557, 100.88245510000002], {draggable: true} ).addTo(edit_map); edit_map_marker.on('dragend', function(event){ var marker = event.target; var location = marker.getLatLng(); var lat = location.lat; var lon = location.lng; $('#inputGps').val(lat+', '+lon); //retrieved the position }); firstSet = true; } $('#inputAddress').keyup(function (e) { clearTimeout(timerMap); timerMap = setTimeout(function () { $.get('https://nominatim.openstreetmap.org/search?format=json&q='+$('#inputAddress').val(), function(data){ if(data.length && typeof data[0]) { edit_map_marker.setLatLng([data[0].lat, data[0].lon]).update(); edit_map.panTo(new L.LatLng(data[0].lat, data[0].lon)); $('#inputGps').val(data[0].lat+', '+data[0].lon); } else { ShowStatus.show('ที่อยู่ไม่พบ!'); return; } }); }, 2000); }); } //Typeahead $('#search_option_smart').typeahead({ minLength: 1, source: function(query, process) { $.post('https://lab-property.com/frontend/typeahead/th/1/smart', { q: query, limit: 8 }, function(data) { process(JSON.parse(data)); }); } }); $('.zoom-button').bind("click touchstart", function() { var myLinks = new Array(); var current = $(this).attr('href'); var curIndex = 0; $('.files-list-u .zoom-button').each(function (i) { var img_href = $(this).attr('href'); myLinks[i] = img_href; if(current == img_href) curIndex = i; }); options = {index: curIndex} blueimp.Gallery(myLinks, options); return false; }); reloadElements(); // palceholder fix for IE 9 $('input, textarea').placeholder(); // Universal pagination solution reloadPaginationUniversal(); }); function reloadElements() { $('.selectpicker-small').selectpicker({ style: 'btn-default' }); $('.selectpicker-small').change(function() { manualSearch(0); return false; }); $('.view-type').click(function () { $(this).parent().find('.view-type').removeClass("active"); $(this).addClass("active"); manualSearch(0); return false; }); $('.pagination.properties a').click(function () { var page_num = $(this).attr('href'); var n = page_num.lastIndexOf("/"); page_num = page_num.substr(n+1); manualSearch(page_num); return false; }); $('.pagination.news a').click(function () { var page_num = $(this).attr('href'); var n = page_num.lastIndexOf("/"); page_num = page_num.substr(n+1); $.post($(this).attr('href'), {search: $('#search_showroom').val()}, function(data){ $('.property_content_position').html(data.print); reloadElements(); }, "json"); return false; }); } function reloadPaginationUniversal() { $('.pagination-ajax-results a').click(function () { var page_num = $(this).attr('href'); var n = page_num.lastIndexOf("/"); page_num = page_num.substr(n+1); var results_dom_id = '#'+$(this).parent().parent().parent().attr('rel'); $.post($(this).attr('href'), {'page_num':page_num}, function(data){ $(results_dom_id).html(data.print); reloadPaginationUniversal(); }, "json"); return false; }); } function manualSearch(v_pagenum, scroll_enabled, onlysave) { if (typeof scroll_enabled === 'undefined') scroll_enabled = "#content"; if (typeof onlysave === 'undefined') onlysave = false; // Order ASC/DESC var v_order = $('.selectpicker-small').val(); // View List/Grid var v_view = $('.view-type.active').attr('data-ref'); //Define default data values for search var data = { order: v_order, view: v_view, page_num: v_pagenum }; if($('#booking_date_from').length > 0) { if($('#booking_date_from').val() != '') data['v_booking_date_from'] = $('#booking_date_from').val(); } if($('#booking_date_to').length > 0) { if($('#booking_date_to').val() != '') data['v_booking_date_to'] = $('#booking_date_to').val(); } // Purpose, "for custom tabbed selector" /* if($('#search_option_4 .active a').length > 0) { data['v_search_option_4'] = $('#search_option_4 .active a').html(); } */ // Improved tabbed selector code $(".tabbed-selector").each(function() { var selected_text = $(this).find(".active:not(.all-button) a").html(); data['v_'+$(this).attr('id')] = selected_text; }); // Add custom data values, automatically by fields inside search-form $('.search-form form input, .search-form form select').each(function (i) { if($(this).attr('type') == 'checkbox') { if ($(this).attr('checked')) { data['v_'+$(this).attr('id')] = $(this).val(); } } else if($(this).hasClass('tree-input')) { if($(this).val() != '') { var tre_id_split = $(this).attr('id').split('_'); //console.log($(this).find("option:selected").attr('value')); //console.log(tre_id_split); if(data['v_search_option_'+tre_id_split[2]] == undefined) data['v_search_option_'+tre_id_split[2]] = ''; data['v_search_option_'+tre_id_split[2]]+= $(this).find("option:selected").text()+' - '; } } else { data['v_'+$(this).attr('id')] = $(this).val(); } }); // Custom tags filter Start if($('#tags-filters').length > 0) { var tags_html = ''; // Add custom data values, automatically by fields inside search-form $('.search-form form input, .search-form form select').each(function (i) { if($(this).attr('type') == 'checkbox') { if ($(this).attr('checked')) { data['v_'+$(this).attr('id')] = $(this).val(); var option_name = ''; //var attr = $(this).attr('placeholder'); var attr = $(this).attr('value').substring(4); if(typeof attr !== 'undefined' && attr !== false) { option_name = attr; } if($(this).val() != '' && $(this).val() != null) tags_html+='
บ้านสวนดุสิต 3 สำหรับขาย, #44
บ้านสวยทันสมัย ​​2 ชั้นในบ้านดุสิตพาร์ค 3
ที่อยู่ Baan Dusit Park 3 Pattaya, Muang Pattaya, Amphoe Bang Lamung, Chang Wat Chon Buri 20150
ราคขาย: ฿ 6,800,000.00
เคาน์เตอร์ชม: 412