CultureMap Houston – Martha Turner Neighborhood Guide 2025

${neighborhood.image}

Where to Eat

${neighborhood.eat}

Where to Play

${neighborhood.play}

Median Home Price

${neighborhood.median}

Days on Market

${neighborhood.avg}

`;

function compare(a, b) {
if (a.neighborhood < b.neighborhood) return -1;
if (a.neighborhood > b.neighborhood) return 1;
return 0;
}

function populateNeighborhoods() {
const nhList = document.querySelector(“.nh-list”);
const nhTemplate = document.querySelector(“.nh”);

neighborhoods.sort(compare).forEach((neighborhood) => {
const html = template(neighborhood);

nhList.insertAdjacentHTML(“beforeend”, html);
});
}

populateNeighborhoods();

// Realtor headshot tweaks (zoom OUT / reposition per realtor).
// Scale examples:
// – 0.95 = 5% zoom-out
// – 0.90 = 10% zoom-out
// – 0.80 = 20% zoom-out
//
// Position format: CSS `object-position` (e.g. “50% 15%” or “center top”)
const realtorImageTweaks = {
“Peggie Pentecost”: { scale: .8, position: “50% 15%” },
// “Some Realtor Name”: { scale: 0.9, position: “50% 15%” },
};

document.querySelectorAll(“.nh”).forEach((card) => {
const realtor = card.getAttribute(“data-realtor”) || “”;
const tweak = realtorImageTweaks[realtor];
if (!tweak) return;

if (typeof tweak.scale === “number”) {
card.style.setProperty(“–realtor-image-scale”, String(tweak.scale));
}
if (typeof tweak.position === “string”) {
card.style.setProperty(“–realtor-image-position”, tweak.position);
}
});
console.log(‘mtsir’)
// Make the entire card clickable (except links inside it)…
// update
document.querySelectorAll(“.nh”).forEach((card) => {
const url = card.getAttribute(“data-article-url”);
if (!url) return;

card.addEventListener(“click”, (e) => {
if (e.target.closest(“a”)) return;
window.open(url, “_blank”);
});

card.addEventListener(“keydown”, (e) => {
if (e.key !== “Enter” && e.key !== ” “) return;
if (e.target.closest(“a”)) return;
e.preventDefault();
window.open(url, “_blank”);
});
});

document.querySelector(“.ad-tag”).remove();

Hot this week

Is Netflix Stock a Buy With Disney Closing In on Its Market Value?

The streaming giant began 2026 worth almost twice as...

33 Photos Taken Seconds Before Iconic Moments In Pop Culture History

1. This June 1997 photo of Sarah Jessica Parker...

US proposes ultra-processed food definition

The Trump administration’s proposed ultra-processed food definition casts a...

Topics

Related Articles

Popular Categories