Free Consultation or Quick Quote:
980-256-6970
Get your Quote
Today
Full Name
*
Phone Number
*
document.addEventListener(‘DOMContentLoaded’, () => {
const urlSearchParams = new URLSearchParams(window.location.search);
let utmSourceFromUrl = urlSearchParams.get(‘utm_source’);
const utmCampaignFromUrl = urlSearchParams.get(“utm_campaign”);
const sdrNameFromUrl = urlSearchParams.get(“sdr_name”);
let mobileForm = document.getElementById(“mobile-pre-quote-form”);
let utmSourceInput = document.createElement(“input”);
utmSourceInput.type = “hidden”;
utmSourceInput.name = “utm_source”;
utmSourceInput.value = utmSourceFromUrl;
mobileForm.appendChild(utmSourceInput);
let utmCampaignInput = document.createElement(“input”);
utmCampaignInput.type = “hidden”;
utmCampaignInput.name = “utm_campaign”;
utmCampaignInput.value = utmCampaignFromUrl;
mobileForm.appendChild(utmCampaignInput);
let sdrNameInput = document.createElement(“input”);
sdrNameInput.type = “hidden”;
sdrNameInput.name = “sdr_name”;
sdrNameInput.value = sdrNameFromUrl;
mobileForm.appendChild(sdrNameInput);
var urlParams = new URLSearchParams(window.location.search);
var utmSource = urlParams.get(“utm_source”)
if (utmSource !== “PPC”) {
document.getElementById(‘mobile-dynamic-phone-number’).innerHTML = “Call us: 704-773-9699“;
document.getElementById(‘mobile-dynamic-phone-number’).href = “tel:7047739699”
}
if (utmSource === “facebook_ads”) {
document.getElementById(‘mobile-dynamic-phone-number’).innerHTML = “Call us: 980-890-7820“;
document.getElementById(‘mobile-dynamic-phone-number’).href = “tel:9808907820”
}
if (utmSource === “Youtube”) {
document.getElementById(‘mobile-dynamic-phone-number’).innerHTML = “Call us: 980-920-6222“;
document.getElementById(‘mobile-dynamic-phone-number’).href = “tel:9809206222”
}
const mobilePhone = document.getElementById(‘mobile-phone-input’);
const mPhoneMask = {
mask: ‘(000) 000-0000’
};
IMask(mobilePhone, mPhoneMask);
});
#submit {
background: var(–primary-500-main, #F1B72C);
height: 54px;
}
#submit:hover {
background: black;
color: var(–primary-500-main, #F1B72C);
}
.has-float-label label,
.has-float-label>span {
top: -10px;
background: white;
left: 4px;
padding-left: 4px;
padding-right: 4px;
display: flex;
align-items: center;
column-gap: 4px;
}
.has-float-label input,
.has-float-label select,
.has-float-label textarea {
padding-top: 0;
width: 100%;
height: 44px;
margin-bottom: 16px;
padding-left: 8px;
}
.has-float-label input:placeholder-shown:not(:focus)+*,
.has-float-label select:placeholder-shown:not(:focus)+*,
.has-float-label textarea:placeholder-shown:not(:focus)+* {
font-size: 120%;
padding-top: 4px;
display: flex;
align-items: center;
column-gap: 4px;
}