(function(){ let projectInterest = 0; let timeOnPage = 0; let leadShown = false; // Track clicks on project images or cards document.addEventListener("click", function(e){ if(e.target.closest("img") || e.target.closest(".project") || e.target.closest(".portfolio")){ projectInterest++; } }); // Track time on page setInterval(function(){ timeOnPage++; if(timeOnPage > 25 && projectInterest >= 2 && !leadShown){ showProjectLead(); leadShown = true; } },1000); // Exit intent trigger document.addEventListener("mouseleave", function(e){ if(e.clientY < 10 && !leadShown){ showProjectLead(); leadShown = true; } }); // Lead Modal function showProjectLead(){ let modal = document.createElement("div"); modal.innerHTML = `

Like What You See?

Let's build your project next.

Free consultation • No obligation

`; document.body.appendChild(modal); // Submit lead document.getElementById("proj_submit").onclick = function(){ let name = document.getElementById("proj_name").value; let phone = document.getElementById("proj_phone").value; let message = document.getElementById("proj_message").value; fetch("https://formspree.io/f/YOUR-ID",{ method:"POST", headers:{ "Content-Type":"application/json" }, body:JSON.stringify({ name:name, phone:phone, message:message, source:"Projects Page Lead" }) }); document.getElementById("projectLeadOverlay").remove(); alert("Thanks! We'll contact you about your project soon."); }; } })();
0
Skip to Content
Anew Build
HOME
ABOUT
SERVICES
PROJECTS
CONTACT
Anew Build
HOME
ABOUT
SERVICES
PROJECTS
CONTACT
HOME
ABOUT
SERVICES
PROJECTS
CONTACT
Austin Remodeling Contractor
Austin Custom Home Builder

Hours

Monday — Friday
8:00 am — 5:00 pm

Contact

info@anewbuildatx.com
Office: (512) 598-1178 Fax: (877) 598-1178