Tenant Turner Rental Widget Code
- customer_id: Replace Customer ID with the id from inspecting the tenant turner listings page and searching for customer_id
<script id="ttWidget" type="text/javascript">
try {
window.tenantTurnerListingsWidget = {
connection: {
customer_id: 25397,
user_id: null
},
environment: {
root_path: "https://app.tenantturner.com"
},
tracking: {},
options: {
appearance__theme_color: "213E74",
appearance__map_enabled: 0,
appearance__map_height: "800",
appearance__map_width: "undefined",
appearance__map_view: "show_listings_first",
appearance__application_enabled: 1,
appearance__application_display_type: "link",
appearance__waitlist_enabled: 1,
appearance__description_enabled: 1,
search__search_enabled: 1,
search__default_value: "",
filter__filter_enabled: 1,
filter__city_default_value: "",
filter__state_default_value: "",
filter__property_type_default_value: "",
filter__bedrooms_default_value: "",
filter__baths_default_value: "",
filter__pets_default_value: "",
sort__sort_enabled: 1,
sort__default_value: "Most Recent"
}
};
} catch (err) {
if (console) {
console.warn("TT widget error: " + err);
}
}
</script>
<script>
try {
(function() {
var w = window;
var tt = w.TenantTurner;
if (typeof tt !== "function") {
var d = document;
function l() {
var s = d.createElement("script");
s.type = "text/javascript";
s.async = true;
s.src = (window.tenantTurnerListingsWidget.environment.root_path ? window.tenantTurnerListingsWidget.environment.root_path + "/widget/widget.js" : "https://app.tenantturner.com/widget/widget.js");
var x = d.getElementById("ttWidget");
x.parentNode.insertBefore(s, x);
}
if (w.attachEvent) {
w.attachEvent("onload", l);
} else {
w.addEventListener("load", l, false);
}
}
})()
} catch (err) {
if (console) {
console.log("TT widget error: " + err)
}
}
</script>