Instant Quote
By cellfixadmin
Instant Quote2021-01-212021-01-21https://cellfixinc.com/wp-content/uploads/2020/08/cellfix-logo.pngCellfixInc Storehttps://cellfixinc.com/wp-content/uploads/2020/08/cellfix-logo.png200px200px
window.onmessage = (e) => {
if (e.origin !== "https://www.repairlift.com") return;
if (e.data.hasOwnProperty("frameHeight")) {
document.getElementById("iframe").style.height = `${e.data.frameHeight + 30}px`;
}
var data = e.data;
var contactPref = data.contactpref;
var contactMsg = data.contactmsg;
document.getElementById("set_contact_pref").value = contactPref;
document.getElementById("set_contact_msg").value = contactMsg;
document.getElementById("onpage_client_name").value = data.clientName;
document.getElementById("onpage_client_phone").value = data.clientPhone;
document.getElementById("onpage_client_email").value = data.clientEmail;
document.getElementById("onpage_client_notes").value = data.clientNotes;
if (typeof(window[data.func]) == "function") {
window[data.func].call(null, data.vartypage);
}
};
function parentFunc(vartypage) {
//This function will kick off any POST APIs and then redirect
var contactPref = document.getElementById("set_contact_pref").value;
var contactMsg = document.getElementById("set_contact_msg").value;
console.log(vartypage);
console.log(contactPref);
console.log(contactMsg);
window.location.href = vartypage;
//For Wix sites, delete the line above and add the line below - change the URL!
//window.location.replace("https://www.thesmartphoneer.com/thank-you");
}
Recent Posts