generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
112 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
<div class="contact-form"> | ||
<div class="form-title">Contact Us</div> | ||
<div class="company-name">Berkshire Hathaway HomeServices<br>Commonwealth Real Estate</div> | ||
<div class="company-email"><a href="mailto:[email protected]" tabindex="-1">[email protected]</a></div> | ||
<div class="company-phone">Direct: <a href="tel:(508) 810-0700" tabindex="-1">(508) 810-0700</a></div> | ||
<div class="contact-details"> | ||
<div class="contact-info"> | ||
<div class="company-name">Berkshire Hathaway HomeServices<br>Commonwealth Real Estate</div> | ||
<div class="company-email"><a href="mailto:[email protected]" tabindex="-1">[email protected]</a></div> | ||
<div class="company-phone">Direct: <a href="tel:(508) 810-0700" tabindex="-1">(508) 810-0700</a></div> | ||
</div> | ||
</div> | ||
<form id="property-contact" class="contact-form form-elements" method="post" action="/bin/bhhs/websiteTopicServlet"> | ||
<div class="message"> | ||
<svg class="icon error" role="presentation"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Handle the Worker event. Fetches details for each provided listing id. | ||
* | ||
* @param {Object} event the worker event. | ||
* @param {string} event.data.api the URL to fetch. | ||
* @param {string[]} event.data.ids list of listing ids | ||
*/ | ||
onmessage = async (event) => { | ||
const { listingId } = event.data; | ||
|
||
try { | ||
const response = await fetch(`/bin/bhhs/CregPropertySearchServlet?SearchType=Envelope&ListingId=${listingId}`); | ||
const data = response.ok ? await response.json() : undefined; | ||
|
||
postMessage(data); | ||
} catch (error) { | ||
postMessage({}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters