patx/miadruck
Clean up unused styles and scripts
Commit ff73086 · Harrison Erd · 2026-01-16T00:31:32-05:00
Clean up unused styles and scripts Removed unused CSS animation and JavaScript functions related to listing prefill and tab switching.
Comments
No comments yet.
Diff
diff --git a/index.html b/index.html
index 05a0669..ff53bc7 100644
--- a/index.html
+++ b/index.html
@@ -345,14 +345,6 @@
transform:translateX(-50%) translateY(-4px);
}
- /* --- listing deep-link highlight (strong + obvious) --- */
- @keyframes listingPulse {
- 0% { box-shadow: 0 16px 46px rgba(0,0,0,.08), 0 0 0 0 rgba(var(--accent-rgb), .0); }
- 30% { box-shadow: 0 22px 70px rgba(0,0,0,.12), 0 0 0 10px rgba(var(--accent-rgb), .18); }
- 60% { box-shadow: 0 22px 70px rgba(0,0,0,.12), 0 0 0 6px rgba(var(--accent-rgb), .10); }
- 100% { box-shadow: 0 16px 46px rgba(0,0,0,.08), 0 0 0 0 rgba(var(--accent-rgb), .0); }
- }
-
.card.listing-highlight{
border-color: rgba(var(--accent-rgb), .65);
box-shadow:
@@ -815,9 +807,6 @@
<textarea name="message" rows="4" placeholder="Buying, selling, or just exploring?"></textarea>
</label>
- <input type="hidden" name="source_page" value="home" />
- <input type="hidden" id="listing_context" name="listing_context" value="" />
-
<button class="send" type="submit">Send</button>
</form>
@@ -1133,7 +1122,7 @@
<div class="btn-split">
<a href="${esc(link)}" ${newTab}>More Details</a>
- <a href="#contact" onclick="prefillListing('${lid}'); switchToContact(); return false;">Contact</a>
+ <a href="#contact">Contact</a>
</div>
</div>
</div>
@@ -1165,51 +1154,11 @@
const p = new URLSearchParams(location.search);
const listing = p.get("listing");
if (listing){
- prefillListing(listing);
// wait a bit so layout/images are ready, then scroll + highlight
setTimeout(() => scrollToListing(listing), 320);
}
}
- // ---------------------------
- // Tabs: MLS vs Contact
- // ---------------------------
- const tabMLS = () => {
- document.getElementById("tab-mls")?.classList.add("active");
- document.getElementById("tab-contact")?.classList.remove("active");
- document.getElementById("panel-mls")?.classList.remove("hide");
- document.getElementById("panel-contact")?.classList.add("hide");
- document.getElementById("tab-mls")?.setAttribute("aria-selected","true");
- document.getElementById("tab-contact")?.setAttribute("aria-selected","false");
- };
-
- const tabContact = () => {
- document.getElementById("tab-contact")?.classList.add("active");
- document.getElementById("tab-mls")?.classList.remove("active");
- document.getElementById("panel-contact")?.classList.remove("hide");
- document.getElementById("panel-mls")?.classList.add("hide");
- document.getElementById("tab-contact")?.setAttribute("aria-selected","true");
- document.getElementById("tab-mls")?.setAttribute("aria-selected","false");
- };
-
- document.addEventListener("click", (e) => {
- if (e.target && e.target.id === "tab-mls") tabMLS();
- if (e.target && e.target.id === "tab-contact") tabContact();
- });
-
- function switchToContact(){ tabContact(); }
-
- // ---------------------------
- // Prefill listing context in both forms
- // ---------------------------
- function prefillListing(id){
- const v = String(id || "");
- const a = document.getElementById("listing_context");
- const b = document.getElementById("listing_context_2");
- if (a) a.value = v;
- if (b) b.value = v;
- }
-
// ---------------------------
// Share URL + copy helper (for link icon)
// ---------------------------
@@ -1356,8 +1305,6 @@
})();
// expose for inline onclick
- window.switchToContact = switchToContact;
- window.prefillListing = prefillListing;
window.copyListingLink = copyListingLink;
window.scrollToListing = scrollToListing;