← back to Commercialrealestate
condos.html: add page-level Reset button (clears all filters/search/sort + strips deep-link URL params); fix top-left overlap — corner-nav menu icon-only + nav-agent field toggle side-by-side (Steve 2026-08-22)
1b8bf17a68fa0ee66b0bf24c582a028c747563c1 · 2026-08-22 11:20:54 -0700 · Steve Abrams
Files touched
Diff
commit 1b8bf17a68fa0ee66b0bf24c582a028c747563c1
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sat Aug 22 11:20:54 2026 -0700
condos.html: add page-level Reset button (clears all filters/search/sort + strips deep-link URL params); fix top-left overlap — corner-nav menu icon-only + nav-agent field toggle side-by-side (Steve 2026-08-22)
---
public/condos.html | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/public/condos.html b/public/condos.html
index 8b84d31..b4c7027 100644
--- a/public/condos.html
+++ b/public/condos.html
@@ -140,6 +140,14 @@
<script src="/three-view.js"></script>
<script src="/infinite-scroll.js"></script><!-- windowed infinite scroll for grid/table -->
<link rel="stylesheet" href="/nav-agent/nav-agent.css"><!-- nav-agent -->
+ <style>
+ /* Top-left overlap fix (Steve 2026-08-22): the corner-nav site menu (☰) and the nav-agent
+ field-panel toggle (▤) both sat at top:10px/left:10px and covered each other. Make the site
+ menu icon-only and set the field toggle side-by-side to its right — two clean icons, no overlap. */
+ .cnav-burger.left .lbl{display:none;} /* ☰ becomes an icon, no "Menu" label */
+ .cnav-burger.left{padding:8px 10px;} /* tighten to a square-ish icon button */
+ .na-side-toggle{left:56px !important;} /* ▤ sits right of the ☰, not on top of it */
+ </style>
</head>
<body>
<header>
@@ -219,6 +227,7 @@
<button id="shortbtn" title="Show only your shortlisted (starred) listings — shared with the Explorer & MLS">⭐ Shortlist (0)</button>
<button id="exportbtn" title="Download the current filtered + sorted set as a CSV">⬇ Export CSV</button>
<button id="draftbtn" title="Queue DRAFT outreach emails for the current FHA-matched set in the Solicitation Studio — nothing sends">🎯 Draft outreach</button>
+ <button id="pageReset" title="Reset all filters, search & sort — back to the full list">↺ Reset</button>
<select id="csort" title="Sort condos" style="background:var(--card,#141925);color:var(--ink,#E6E8EC);border:1px solid var(--line,#232a38);border-radius:7px;padding:5px 8px;font-size:12px">
<option value="">Newest</option>
<option value="price_desc">Price ↓</option>
@@ -780,6 +789,19 @@ $('#fAll').addEventListener('click',()=>{FIELDS.forEach(f=>VIS[f.k]=true);saveVi
$('#fNone').addEventListener('click',()=>{FIELDS.forEach(f=>VIS[f.k]=false);saveVis();buildFieldToggles();apply();});
$('#fDef').addEventListener('click',()=>{FIELDS.forEach(f=>VIS[f.k]=!!f.def);saveVis();buildFieldToggles();apply();});
$('#q').oninput=()=>{ clearTimeout(window._t); window._t=setTimeout(apply,180); };
+// Page-level Reset (Steve 2026-08-22): clear ALL filters + search + sort and strip the URL
+// deep-link params (?status=…&city=…&q=…&sort=…) → back to the full default list.
+$('#pageReset').addEventListener('click',()=>{
+ F.warr='all'; F.cities.clear(); F.firms.clear(); F.bedsMin=0; F.bathsMin=0;
+ F.shortlist=false; F.contactReady=false;
+ F.pmin=F.pmax=F.hoamin=F.hoamax=F.sqftMin=F.sqftMax=F.yearMin=F.yearMax=F.ppsfMin=F.ppsfMax=null;
+ const box=$('#q'); if(box) box.value='';
+ document.querySelectorAll('.rail input[type=number]').forEach(i=>{ i.value=''; });
+ SORTKEY=''; const sel=$('#csort'); if(sel) sel.value=''; try{ localStorage.removeItem('condoSort'); }catch(_){}
+ updateShortBtn();
+ try{ history.replaceState(null,'',location.pathname); }catch(_){}
+ buildRail(); apply(); renderNonWarrant();
+});
// ── sort (Steve rule: every grid gets sort + density; condos already had density) ──
function sortRows(rows){
const num=(v)=>{const n=+v;return isFinite(n)?n:null;};
← fff6d01 auto-data-snapshot: 2026-08-22T09:43:39 (2 data files) — dat
·
back to Commercialrealestate
·
chore: portola.crcp onboard script (server_name + cert --exp e8797da →