Skip to content

Commit

Permalink
add HOA fee and frequency to property details; update list price labe…
Browse files Browse the repository at this point in the history
…l and replace parking spaces with garage spaces
  • Loading branch information
perfectly-preserved-pie committed Jan 4, 2025
1 parent 498f35b commit 0f44050
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions assets/javascript/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,16 @@ window.dash_props = Object.assign({}, window.dash_props, {
<td style="padding:8px;border-bottom:1px solid #ddd;">${phoneNumberBlock}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Sale Price</th>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">List Price</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">$${data.list_price.toLocaleString()}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">HOA Fee</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.hoa_fee ? `$${data.hoa_fee.toLocaleString()}` : "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">HOA Fee Frequency</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.hoa_fee_frequency || "Unknown"}</td>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Square Feet</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.sqft ? `${data.sqft.toLocaleString()}` : "Unknown"} sq. ft</td>
Expand All @@ -180,25 +187,21 @@ window.dash_props = Object.assign({}, window.dash_props, {
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Price Per Square Foot</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.ppsqft ? `$${data.ppsqft.toLocaleString()}` : "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Lot Size</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.lot_size ? `${data.lot_size.toLocaleString()} sq. ft` : "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Bedrooms/Bathrooms</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.bedrooms}/${data.total_bathrooms}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Parking Spaces</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.parking_spaces || "Unknown"}</td>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.garage_spaces || "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Pets Allowed?</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.pet_policy || "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Furnished?</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.furnished || "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Laundry Features</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.laundry || "Unknown"}</td>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.pets_allowed || "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Senior Community</th>
Expand All @@ -208,10 +211,6 @@ window.dash_props = Object.assign({}, window.dash_props, {
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Year Built</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.year_built || "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Sale Terms</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.terms || "Unknown"}</td>
</tr>
<tr>
<th style="text-align:left;padding:8px;border-bottom:1px solid #ddd;">Physical Sub Type</th>
<td style="padding:8px;border-bottom:1px solid #ddd;">${data.subtype || "Unknown"}</td>
Expand Down

0 comments on commit 0f44050

Please sign in to comment.