/* Rental Search Core JavaScript */ (function (window, document, $) { ‘use strict’; /* ─────────── CONSTANTS ─────────── */ const DEBUG = true; const MIN_RENTAL_COMPS = 3; const EARTH_RADIUS_MI = 3958.8; const NEARBY_ZIPS = [‘33131’, ‘33132’, ‘33139’, ‘33140’, ‘33141’, ‘33027’, ‘33029’];…Continue reading
function preventNumberScroll(e) { if (e.target.matches(‘input[type=”number”]’) || e.target.closest(‘input[type=”number”]’)) { e.preventDefault(); } } document.addEventListener(‘wheel’, preventNumberScroll, { passive: false, capture: true }); document.addEventListener(‘mousewheel’, preventNumberScroll, { passive: false, capture: true }); document.addEventListener(‘DOMMouseScroll’, preventNumberScroll, { passive: false, capture: true });Continue reading
document.addEventListener(‘om.Campaign.startShow’, function(event) { if(document.referrer.search.indexOf(‘google.com’) > 0) { // replace with the specific referral domain var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID-holder’); // replace CAMPAIGN_ID with the unique ID for your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading