`;
elementTarget.append('.frame-wrapper');
document.getElementById('confirmform').style.visibility = 'visible';
window.scrollTo(0, 300);
}
function unsubscribeCustom(onSuccess) {
if(onSuccess) {
form.getFormElem().hide();
document.querySelector("h2").textContent = "Unsubscribe Successful";
document.getElementById('confirmform').style.visibility = 'visible';
} else {
const e = sessionStorage.getItem('e');
if(typeof e !== 'undefined'){
document.querySelector("#Email").value = e;
}
document.querySelector("#mktoForm_1").style.display = "none";
}
}
function pricingCustom(onSuccess) {
form.getFormElem().hide();
document.querySelector('.form-response').classList.remove('hidden');
}
function partnerStartupSingleCustom(onSuccess) {
const urlParams = new URLSearchParams(window.location.search);
let code = "";
const burnerField3 = document.querySelector('input[name=burnerField3]');
if ( null && burnerField3) {
code = "%!s(\u003cnil\u003e)" + `= ${ urlParams.get( null ) }`;
burnerField3.value = code;
}
}
function moveElementBefore(formID, targetSelector, referenceSelector, textReference) {
const formEl = document.querySelector(`#mktoForm_${formID}`);
const targetEl = formEl.querySelector(targetSelector);
if (textReference && targetEl && targetEl.textContent.indexOf(textReference) !== -1) {
formEl.insertBefore(targetEl.closest('.mktoFormRow'), formEl.querySelector(referenceSelector));
} else {
throw new Error('Could not move target element.')
}
}
});