Skip to content

Instantly share code, notes, and snippets.

View cosmicwomp's full-sized avatar

Cosmic Womp cosmicwomp

  • Cosmic Womp Desings
  • Eugene
View GitHub Profile
<form id="IDX-quicksearchForm-22792" class="IDX-quicksearchForm" action="//mdh.sitemockup.idxbroker.com/idx/results/listings" method="get" target="_self" _lpchecked="1">><input id="IDX-qsPt-22792" class="IDX-qsInput IDX-qsHiddenInput" name="pt" type="hidden" value="1"><input id="IDX-qsPt-22792" class="IDX-qsInput IDX-qsHiddenInput" name="a_communityName[]" type="hidden" value="MacDonald Highlands"><div id="IDX-qsMinPriceWrap-22792" class="IDX-qsFieldWrap"><label id="IDX-qsMinPriceLabel-22792" class="IDX-qsLabel" for="IDX-qsMinPrice-22792">Min Price</label><input id="IDX-qsMinPrice-22792" class="IDX-qsInput IDX-qsTextInput" name="lp" type="text"></div><div id="IDX-qsMaxPriceWrap-22792" class="IDX-qsFieldWrap"><label id="IDX-qsMaxPriceLabel-22792" class="IDX-qsLabel" for="IDX-qsMaxPrice-22792">Max Price</label><input id="IDX-qsMaxPrice-22792" class="IDX-qsInput IDX-qsTextInput" name="hp" type="text"></div><input id="IDX-qsQuickSearch-22792" class="IDX-qsInput IDX-qsHiddenInput" name="widgetReferer" type="hidden
<form id="IDX-quicksearchForm-22792" class="IDX-quicksearchForm" action="//mdh.sitemockup.idxbroker.com/idx/results/listings" method="get" target="_self" _lpchecked="1">><input id="IDX-qsPt-22792" class="IDX-qsInput IDX-qsHiddenInput" name="pt" type="hidden" value="3"><input id="IDX-qsPt-22792" class="IDX-qsInput IDX-qsHiddenInput" name="a_associationName[]" type="hidden" value="MacDonald Highlands"><div id="IDX-qsMinPriceWrap-22792" class="IDX-qsFieldWrap"><label id="IDX-qsMinPriceLabel-22792" class="IDX-qsLabel" for="IDX-qsMinPrice-22792">Min Price</label><input id="IDX-qsMinPrice-22792" class="IDX-qsInput IDX-qsTextInput" name="lp" type="text"></div><div id="IDX-qsMaxPriceWrap-22792" class="IDX-qsFieldWrap"><label id="IDX-qsMaxPriceLabel-22792" class="IDX-qsLabel" for="IDX-qsMaxPrice-22792">Max Price</label><input id="IDX-qsMaxPrice-22792" class="IDX-qsInput IDX-qsTextInput" name="hp" type="text"></div><input id="IDX-qsQuickSearch-22792" class="IDX-qsInput IDX-qsHiddenInput" name="widgetReferer" type="hidd
// Wrap each image in <a> with reference to image URL - Used only on IDX Broker "Gallery" template
$( ".IDX-showcaseContent img" ).each(function () {
var newHref = $( this ).attr( "src" );
$( this ).wrap( "<a class='lightbox' data-lightbox='idx-gallery' href='" + newHref + "'/>" );
});
// Initiate Owl Carousel
$( "body.page-id-2129 #IDX-detailsShowcase" ).owlCarousel({
<script>
idx( document ).ready(function() {
var listingprice = idx("#IDX-detailsPrice").text().replace(/[$,]/g, '');
var rebateprice = listingprice * .01;
idx("#IDX-detailsField-rntLsePrice").append("<p>Rebate Price:</p>" + rebateprice);
});
</script>
<script>
idx( document ).ready(function() {
var listingprice = idx("#IDX-detailsPrice").text().replace(/[$,]/g, '');
var rebateprice = listingprice * .01
console.log(rebateprice)
});
</script>
[row]
[column medium="6" large="3"]
[iconbox type="3" icon="fa-search" heading="Buy With Us" url="http://idx-curbappeal.idxbroker.com/idx/search/basic" ]Search homes by us[/iconbox]
[/column]
[column medium="6" large="3"]
[iconbox type="3" icon="fa-envelope" heading="Listings by Email" url="http://idx-curbappeal.idxbroker.com/idx/usersignup" ]Listing updates sent to your inbox[/iconbox]
[/column]
[column medium="6" large="3"]
[iconbox type="3" icon="fa-bar-chart" heading="Home Valuation" url="http://idx-curbappeal.idxbroker.com/idx/homevaluation" ]What is your home worth?[/iconbox]
[/column]
{"agent":[{"agentCategory":"agent","agentFirstName":"Amber","agentLastName":"Northcutt","agentDisplayName":"Amber
Northcutt","agentEmail":"amber@vanpoole.com","agentTitle":"Market Specialist, REALTOR\u00ae","address":"18383 Preston
Road #150","city":"Dallas","stateProvince":"Texas","country":"United
States","zipCode":"75252","agentHomePhone":"","agentHomeFax":"","agentOfficePhone":"","agentOfficeFax":"","agentCellPhone":"806-789-5792","agentPager":"","agentPhotoURL":"https:\/\/s3.amazonaws.com\/clientphotos.idxbroker.com\/agents\/agentPhoto-37042-165909","agentURL":"","agentURLdisplay":"","lastLoginDate":"0000-00-00
00:00:00","accountCreated":"2020-01-22 18:41:02","lastUpdate":"2020-01-22
18:41:02","redirectToSite":"n","linkOnRoster":"n","displayOnRoster":"y","bioDetails":"","featuredInWidget":"n","propUpdateSignature":"&amp;lt;div
style=&amp;quot;box-sizing: border-box; outline: none; font-family: -apple-system, system-ui, &amp;amp;quot;Segoe
UI&amp;amp;quot;, Roboto, Oxygen-Sans, Ubuntu, Cantarell, &amp;amp
{"b022!%RTC2044727":{"mlsPtID":1,"listingID":"RTC2044727","acres":"2.450","bedrooms":5,"cityName":"Nashville","countyName":"Davidson
County,
TN","fullBaths":6,"listingPrice":"$1,549,000","partialBaths":0,"rntLsePrice":1549000,"sqFt":"5,850","state":"Tennessee","subdivision":"Forest
Hills","totalBaths":6,"displayAddress":"y","listingAgentID":"RTC41983","listingOfficeID":"RTC856","mlsPhotoCount":30,"rntLse":"neither","parentPtID":"1","priceReductionDate":"2020-01-21T20:11:15+00:00","priceBeforeReduction":1599000,"propStatus":"Active","remarksConcat":"Re-envisioned
Retreat! A 1967 beauty that has been completely renovated | Top to bottom remodel by an award winning designer | 2.5
acres | 5 Beds | 6 Baths | 5850 sq ft | Pro-grade Kitchen | Pool | STUNNING Master with full wet bar | Multiple bonus
living spaces | Multiple Decks with exquisite views | A 3-stop elevator can be installed | Details to spare | A
One-Of-A-Kind opportunity | Fabulous value for a Forest Hills
Estate","zipcode":"37215","idxStatus":"active"
{# Save property link. #}
                                        <div class="IDX-resultsSaveProperty">
                                            {% if not listing.propertySavedPreviously %}
                                                <a data-listingid="{{ listing.listingID }}" data-idxid="{{ listing.idxID }}" href="#saveProperty" class="IDX-resultsCellAction IDX-btn IDX-btn-default" id="IDX-SP-{{ listing.idxID }}-{{ listing.listingID }}">
                                                    Add to Favorites
                                                </a>
                                            {% else %}
                                                <a data-listingid="{{ listing.listingID }}" data-idxid="{{ listing.idxID }}" href="#removeProperty" class="IDX-resultsCellAction IDX-resultsCellSaved IDX-btn IDX-btn-default IDX-btn__remove" id="IDX-SP-{{ listing.idxID }}-{{ listing.listingID }}">
                                                    Unfavorite
                                     
<iframe src="https://idxsubdomain.idxbroker.com/idx/search/address?bare&agentHeaderID=sample123" width="0" height="0" style="visibility:hidden;"></iframe>