PageSourceSearch

https://306riverfront.com/assets/js/scripts.js

js 306riverfront.com collected 2026-10-04 12:56:57 UTC 14,760 bytes, 1 lines download raw bytes

1if("rs-builder"!==document.body.id){const{animate:a,inView:b,stagger:c}=Motion;function initAnimations(){[".block.header article",".block.welcome .inner",".block.image-box article .content",".block.simple-section .inner",".block.floor-plans .inner",".block.square-gallery .inner",".block.contact .inner"].forEach(e=>{document.querySelectorAll(e).forEach(e=>{e.classList.add("animated-element")})}),b(".block.header article",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7})}),b(".block.welcome .inner",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7},{amount:.5})}),b(".block.image-box article .content",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7},{amount:.2})}),b(".block.simple-section .inner",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7},{amount:.2})}),b(".block.floor-plans .inner",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7})}),b(".block.square-gallery .inner",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7})}),b(".block.contact .inner",({target:e})=>{e.style.opacity=0,a(e,{opacity:[0,1]},{delay:.7,duration:.7})})}}function initFloorplanSingle(){$(".avail-date").each(function(){var e=$
1(this).text();new Date(e)<new Date&&$(this).text("Now")}),$(".block.floorplan .unit-cost").each(function(){var e=this.dataset.rent;e&&"null"!==e&&"undefined"!==e&&(e=parseFloat(e),isNaN(e)||(e=e.toFixed(0),this.textContent="$"+e))}),$(".block.floorplan .g2").each(function(){"0"===this.textContent.trim()&&(this.textContent="Studio")}),$(".block.floorplan .g8").each(function(){var e=this.dataset.price;e&&"null"!==e&&"undefined"!==e&&"manual"===this.closest("article")?.dataset.type&&"0"!==e&&"$0"!==e||(this.textContent="",this.previousElementSibling&&(this.previousElementSibling.textContent=""))}),$(".block.floorplan .fp-availability-list").each(function(){var e=this.querySelectorAll("tbody tr");0===e.length?$(".block.floorplan .empty").each(function(){$(this).css("display","block")}):e.forEach(e=>{var t=e.querySelector(".unit-cost"),a=t?.dataset.rent;isNaN(Number(a))||e.querySelector(".unit-cost").textContent.includes("$")||(t.textContent="$"+a)})}),document.querySelectorAll(".block.floorplan address a").forEach(e=>{updateMapLink(e)}),document.querySelectorAll(".block.floorplan").forEach(e=>{var t=$(e).find(".fp-owl-carousel"),a=e.querySelector(".additional");try{if(t&&0<t.length){const i=window.location.pathname;var n=e.querySelectorAll(".fp-owl-carousel .item");n.forEach(e=>{var t=e.querySelector("a"),a=t?.getAttribute("href"),e=e.querySelector(".bed");a===i?t.closest(".item").remove():e&&"0bd"===e.textContent.trim()&&(e.textContent="Studio")}),1<n.length?(t.owlCarousel({loop:!0,margin:10,nav:!0,dots:!1,responsive:{0:{items:1},650:{items:2},1350:{items:3}}}),$(".owlNext").click(function(){t.trigger("next.owl.carousel")})):a.style.display="none"}}catch(e){a&&(a.style.display="none"),console.error("Error adding additional Floorplans: ",e)}})}document.addEventListener("DOMContentLoaded",function(){"rs-builder"!==document.body.id&&document.querySelector(".block.floorplan")&&initFloorplanSingle()});let filteringValues={bedsMin:null,bedsMax:null,bathsMin:null,bathsMax:null,priceMin:null,priceMax:null,sqftMin:null,sqftMax:null};function toggleSidebar(e){var t=document.getElementById("fp-sidebar"),a=t.querySelector("form");let n;n="BUTTON"!==e.target.tagName?e.target.closest("button"):e.target,t.classList.contains("closed")?(t.classList.remove("closed"),t.classList.add("opened"),a.setAttribute("aria-hidden","false"),n.setAttribute("aria-label","Close sidebar filter menu"),n.setAttribute("aria-expanded","true"),document.addEventListener("keydown",handleEscKey)):(t.classList.remove("opened"),t.classList.add("closed"),a.setAttribute("aria-hidden","true"),n.setAttribute("aria-label","Open sidebar filter menu"),n.setAttribute("aria-expanded","false"),document.removeEventListener("keydown",handleEscKey))}function handleEscKey(e){"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||(e=document.getElementById("fp-sidebar")).classList.contains("opened")&&e.querySelector("button").click()}function getSelectedValues(){let t=[];document.querySelectorAll('input[name="beds"]:checked').forEach(e=>{t.push(Number(e.value))});let a=[];document.querySelectorAll('input[name="baths"]:checked').forEach(e=>{a.push(Number(e.value))});var e=parseFloat(document.getElementById("price-min").value),n=parseFloat(document.getElementById("price-max").value),i=Number(document.getElementById("sqft-min").value),r=Number(document.getElementById("sqft-max").value);return{beds:t,baths:a,priceMin:e,priceMax:n,sqftMin:i,sqftMax:r}}function checkFloorplan(e,t,a){var{beds:t,baths:n,priceMin:i,priceMax:r,sqftMin:l,sqftMax:o}=t,{fp_bed:a,fp_bath:s,fp_price:c,fp_sqftMin:d,fp_sqftMax:u}=a;let f=!0,p=(0<t.length&&(f=t.includes(a)||isNaN(Number(a))),!0);0<n.length&&(p=n.includes(Math.floor(s))||isNaN(Number(s))||!s);t=i<=c&&c<=r||isNaN(Number(c))||!c,a=l<=d&&d<=o||u<=o&&l<=u||NaN===Number(d)||!d;return![f,p,t,a].includes(!1)}function getFloorplanValues(e){let t,a,n,i,r;var l=e.querySelector(".beds")?.dataset.beds,l=(l&&"undefined"!==l.toLowerCase().trim()&&(t="studio"===l.toLowerCase().trim()?0:Number(l)),e.querySelector(".baths")?.dataset.baths),l=(!l||"undefined"===l.toLowerCase().trim()||l.toLowerCase().includes("call")||(a=Math.floor(Number(l))),e.querySelector(".price")?.dataset.price),l=(l&&"undefined"!==l.toLowerCase().trim()&&!l.toLowerCase().trim().includes("call")&&(l=parseInt(l.replace("$",""),10),!isNaN(l))&&0<l&&void 0!==l&&(n=l),e.querySelector(".sqft")?.dataset.sqft);return l&&"undefined"!==l.toLowerCase().trim()&&!l.toLowerCase().includes("call")&&(e=l.split("-").map(e=>parseFloat(e.trim().replace(/,/g,""))),i=e[0],r=e[1]||e[0]),{fp_bed:t,fp_bath:a,fp_price:n,fp_sqftMin:i,fp_sqftMax:r}}function findFilteringValues(e){function t(e,t,a){var n;!e&&0!==e||(e=Number(e),isNaN(e))||(t=t,((n=e)||0===n)&&(null===filteringValues[t]||n<filteringValues[t])&&(filteringValues[t]=n),t=a,((n=e)||0===n)&&(null===filteringValues[t]||n>filteringValues[t])&&(filteringValues[t]=n))}t(e.fp_bed,"bedsMin","bedsMax"),t(e.fp_bath,"bathsMin","bathsMax"),t(e.fp_price,"priceMin","priceMax"),t(e.fp_sqftMin,"sqftMin","sqftMax"),t(e.fp_sqftMax,"sqftMin","sqftMax")}function hideNullValues(e){var t=e.querySelector(".price span"),a=e.querySelector(".baths"),n=e.querySelector(".sqft"),i=e.querySelectorAll(".floorplan-detail
1s .details"),e=e.querySelector(".beds span"),r=t.innerText.replace("$","").trim(),r=(r&&"0"!==r.toLowerCase()&&"undefined"!==r.toLowerCase()&&"null"!==r.toLowerCase()||(t.innerHTML="<span>Call for pricing</span>"),"0"==e.innerText.trim()&&(e.innerHTML="<span>Studio</span>"),a.querySelector("span").innerText.trim()),t=e.innerText.trim(),l=n.querySelector("span").innerText.trim();r&&"undefined"!==r&&"null"!==r||(a.querySelector("span").innerHTML="<span>Call for Details</span>"),t&&"undefined"!==t&&"null"!==t||(e.innerHTML="<span>Call for Details</span>"),l&&"undefined"!==l&&"null"!==l||(n.querySelector("span").innerHTML="<span>Call for Details</span>");const o=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})(?:[?&][^"\s]*)?|(?:https?:\/\/)?(?:my\.)?(matterport\.com\/show\/\?m=)([A-Za-z0-9]{11})(?:[&?][^"\s]*)?/gi,s=/\[(realync\s+https:\/\/api\.realync\.com\/[^\]\s]+|matterport\s+https:\/\/[^\]\s]+|\s*?)\]Virtual Tour\[\s*\/(realync|matterport)\]/gi;i&&i.forEach(e=>{let t=e.innerText;var a;t=t.replace(/(\u00A0|&nbsp;)/g," "),(o.test(t)||s.test(t))&&((a=document.createElement("p")).className="tour-flag text-alt",a.innerText="Virtual Tour",e.parentNode.insertBefore(a,e.nextSibling)),t=t.replace(s,"").replace(o,"").trim(),e.innerText=t,""!==e.textContent&&"undefined"!==e.textContent||(e.style.display="none")})}function createFilterOptions(){var e=document.getElementById("beds-fieldset"),t=document.getElementById("baths-fieldset"),a=document.getElementById("price-min"),n=document.getElementById("price-max"),i=document.getElementById("sqft-min"),r=document.getElementById("sqft-max"),l=(e,a,n,i)=>{for(let t=e;t<=a;t++){let e=t;"beds"===i&&0===t&&(e=" Studio");var r=`Select ${t} `+i,l=document.createElement("label");l.htmlFor=i+"-"+t,l.setAttribute("aria-label",r),l.innerHTML=`<input type="checkbox" name="${i}" value="${t}" id="${i}-${t}" /> `+e,n.appendChild(l)}},o=(t,e,a,n,i)=>{let r=100*Math.floor(t/100),l=100*Math.ceil(e/100);var o=Math.floor((l-r)/2)+r;"price"===i&&(r+50>t?r-=50:r+=50,r<0?r=0:r,l-50<e?l+=50:l-=50);for(let e=r;e<=l;e+=100){var s="price"===i?"$":"",c=document.createElement("option");c.value=e,c.textContent=s+e,(e<o?(e===t&&(c.selected=!0),a):(e===l&&(c.selected=!0),n)).appendChild(c)}};l(filteringValues.bedsMin,filteringValues.bedsMax,e,"beds"),l(filteringValues.bathsMin,filteringValues.bathsMax,t,"baths"),o(filteringValues.priceMin,filteringValues.priceMax,a,n,"price"),o(filteringValues.sqftMin,filteringValues.sqftMax,i,r,"sqft")}function filterFloorplans(){const a=getSelectedValues();document.querySelectorAll(".floorplan").forEach(t=>{try{var e=getFloorplanValues(t);checkFloorplan(t,a,e)?t.classList.remove("hidden"):t.classList.add("hidden")}catch(e){console.error(`Error processing floorplan ID ${t.id}:`,e,t)}});var e=document.querySelectorAll(".floorplan:not(.hidden)"),t=document.getElementById("empty-list");0===e.length?t.classList.remove("hidden"):t.classList.add("hidden")}function handleFPResize(e){var t=window.innerWidth,a=document.getElementById("fp-sidebar"),n=a.querySelector("form"),a=a.querySelector("button");1e3<=t&&"false"===a.getAttribute("aria-expanded")?(n.setAttribute("aria-hidden","false"),a.setAttribute("aria-expanded","true")):t<1e3&&"false"===a.getAttribute("aria-expanded")&&(n.setAttribute("aria-hidden","true"),a.setAttribute("aria-expanded","false"))}function addEventListeners(){document.getElementById("fp-sidebar").querySelector("button").addEventListener("click",toggleSidebar),document.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.addEventListener("change",filterFloorplans)}),document.querySelectorAll("select").forEach(e=>{e.addEventListener("change",filterFloorplans)}),window.addEventListener("resize",handleFPResize),handleFPResize()}function initFloorplans(){var e=document.querySelectorAll(".floorplan-list .floorplan");0==e.length&&document.getElementById("empty-list").classList.remove("hidden"),e.forEach(e=>{findFilteringValues(getFloorplanValues(e)),hideNullValues(e)}),createFilterOptions(),addEventListeners()}function initGallery(){document.querySelectorAll(".block.square-gallery").forEach(e
1=>{addLightbox(e)})}function addLightbox(e){e=e.querySelectorAll(".item a"),e.forEach(e=>{var t=e.querySelector("img"),a=t.src,n=t.alt;e.getAttribute("data-caption")&&""!==e.getAttribute("data-caption")||e.setAttribute("data-caption",n),n&&""!==n||t.setAttribute("alt","Gallery Image"),a&&e.getAttribute("href")!==a&&(n=a.replace(/(small|medium|spec)-/,"large-"),e.setAttribute("href",n))}),e=new SimpleLightbox({elements:e,nav:!0,showCaptions:!0,captionAttribute:"data-caption",beforeSetContent:function(e,t){document.body.style.overflowY="hidden"},beforeClose:function(e){document.body.style.overflowY="auto"}});let i=e.captions;i.forEach((e,t)=>{var a=t+1,n=("Gallery image"===e&&(e=""),i.length);i[t]=`<span class="slbCaption-text">${e}</span><span class="slbCaption-counter">${a} of ${n}</span>`})}if(document.addEventListener("DOMContentLoaded",function(){document.querySelector(".block.floor-plans")&&"rs-builder"!==document.body.id&&initFloorplans()}),document.addEventListener("DOMContentLoaded",()=>{"rs-builder"!==document.body.id&&document.querySelector(".block.square-gallery")&&initGallery()}),console.log("inc"),"rs-builder"!=$("body").attr("id")){var navHeight;if($("button[type='submit']").hide(),$("#navwrap").length&&$("#header").length&&(navHeight=$("#navwrap").height(),$("#navwrap").css("margin-bottom",-navHeight)),$(".faqs").length)if(767<$(window).width()){let t=0,e=$(".faqs .inner").prepend('<div class="faq-sidebar"></div>');
1$(".faqs").find("h3").each(function(){var e=$(this).nextUntil("h3").addBack().wrapAll('<div id="faq-item-'+t+'" class="faq-item"></div>');$(".faq-sidebar").append($(e).clone()),0==t&&$(".faq-sidebar h3").addClass("active"),t++}),$(".faqs .faq-sidebar p").remove(),$(".faqs article h3").remove(),$(".faqs .faq-item").hide(),$(".faqs #faq-item-0").show(),$(".faqs .faq-item > *").show(),$(".faqs .faq-sidebar h3").click(function(){$(".faqs .faq-sidebar h3").removeClass("active"),$(this).addClass("active"),$(".faqs .faq-item").hide(),$("#faq-item-"+$(this).index()).show()})}else{let e=0;$(".faqs").find("h3").each(function(){$(this).nextUntil("h3").addBack().wrapAll('<div id="faq-item-'+e+'" class="faq-item"></div>'),e++}),$(".faqs h3").click(function(){$(this).siblings().slideToggle()})}$("#grip").click(function(){$(".generic-supernav-overlay").toggle();$(window).scrollTop();$(".generic-supernav-overlay").is(":visible")?$("#grip").attr("aria-expanded","true"):$("#grip").attr("aria-expanded","false"),$("body").css({overflow:"hidden"})}),$("#close").click(function(){$(".generic-supernav-overlay").toggle(),$("body").css({overflow:"auto",position:"static"})}),$("a").each(function(){this.hostname===window.location.hostname||this.getAttribute("href")?.startsWith("tel:")||(this.setAttribute("target","_blank"),this.setAttribute("rel","noopener"))}),$(".phone-link a").each(function(){formatPhone(this)}),$(".map-link").each(function(){updateMapLink(this)}),$(".copyright-year").each(function(){updateYear(this)}),$(".block.contact .form-group").each(function(){switch($(this).find("label")?.text()){case"First Name":$(this).find("input").attr("placeholder","ex. John");break;case"Last Name":$(this).find("input").attr("placeholder","ex. Smith");break;case"Email":$(this).find("input").attr("placeholder","ex. [email protected]");break;case"Phone":$(this).find("input").attr("placeholder","ex. 555-555-5555");break;case"Move-In Date":$(this).find("input").attr("placeholder","ex. 1/28/2025")}})}function formatPhone(e){if(e)try{var t=e.querySelector("strong"),a=(t&&t.textContent,e.innerText.replace(/\D/g,"").trim());"A"===e.tagName&&0<a.length&&(e.href="tel:+1"+a)}catch(e){console.error("Error formatting phone number: "+e)}}function updateMapLink(e,t){e&&((e.href.includes("google")||e.href.includes("goo.gl"))&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener")),t=t||e?.dataset?.address)&&0<t.length&&(t=encodeURIComponent(t),e.setAttribute("href","https://www.google.com/maps/search/?api=1&query="+t))}function updateYear(e){var t;e&&(t=(new Date).getFullYear(),e.textContent=t)}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.