';
$(".filter.buy a").css("cursor", "pointer").on("click", function (event) {
event.preventDefault();
getTxtHouseBuyUnit(lat, lng, $(this).attr("data-min"), $(this).attr("data-max"), sign, 'nouserid', '', '', '', '');
$('.popular-item .filter').toggle();
});
$(".filter.rent a").css("cursor", "pointer").on("click", function (event) {
event.preventDefault();
getTxtHouseRentUnit(lat, lng, $(this).attr("data-min"), $(this).attr("data-max"), sign);
$('.popular-item .filter').toggle();
});
getTxtHouseBuyUnit(lat, lng, 0, 1000, sign, 'nouserid', '', '', '', '');
getTxtHouseRentUnit(lat, lng, 5000, 10000, sign, '');
function getTxtHouseBuyUnit(lat, lng, min, max, sign, userid, shopid, empno, email, v) {
$.ajax({
type: 'GET',
url: '/api/widgetresult/txthouseunit/' + lat + '/' + lng + '/' + min + '/' + max + '?sign=' + sign + '&userid=' + userid + '&shopid=' + shopid + '&empno=' + empno + '&email=' + email + '&v=' + v,
beforeSend: function () { $("#txtbuyunit").html(ajaxloader); }
}).done(function (data) {
$("#txtbuyunit").html(data);
});
}
function getTxtHouseRentUnit(lat, lng, min, max, sign, v) {
$.ajax({
type: 'GET',
url: '/api/widgetresult/txthouserentunit/' + lat + '/' + lng + '/' + min + '/' + max + '?sign=' + sign + '&v=' + v,
beforeSend: function () { $("#txtrentunit").html(ajaxloader); }
}).done(function (data) {
$("#txtrentunit").html(data);
});
}
//切換tabs
$('div[id^=tab-]').bind('click', function (e) {
e.preventDefault();
var This = $(this);
var tabname = This.attr('id');
$('div[id^=tab-]').removeClass('curr');
if (tabname == 'tab-1') {
This.addClass('curr');
$('.tab-1').show();
$('.tab-2').hide();
} else if (tabname == 'tab-2') {
This.addClass('curr');
$('.tab-2').show();
$('.tab-1').hide();
}
});
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html