Instant Price Quote
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;
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;
}