You must create a profile to view subscription packages.
jQuery(document).ready(function () {
jQuery('body').on('click', '.subscription-link', function (e) {
e.preventDefault();
jQuery('input[name=suscription_url]').val(jQuery(this).attr('href'))
let subscriptionContactDataEncoded = sessionStorage.subscriptionContactData
if (subscriptionContactDataEncoded) {
try {
let subscriptionContactData = JSON.parse(atob(subscriptionContactDataEncoded))
jQuery('.form-table').hide()
jQuery('.data-table-div').show()
jQuery('.data-table-div table').html('
')
jQuery('.modal input[name=name]').val(subscriptionContactData.name)
jQuery('.modal input[name=email]').val(subscriptionContactData.email)
jQuery('.modal input[name=phone]').val(subscriptionContactData.phone)
jQuery('.modal input[name=company_name]').val(subscriptionContactData.company_name)
} catch (e) {
sessionStorage.removeItem('subscriptionContactData')
}
}
jQuery('#detail-modal').show()
})
jQuery('body').on('click', '.close', function (e) {
jQuery('#detail-modal').hide()
})
jQuery('body').on('click', '.edit-detail-link', function (e) {
jQuery('.form-table').show()
jQuery('.data-table-div').hide()
})
jQuery('body').on('submit', '#subscription-form', function (e) {
e.preventDefault();
let data = {
name: jQuery('.modal input[name=name]').val(),
email: jQuery('.modal input[name=email]').val(),
phone: jQuery('.modal input[name=phone]').val(),
company_name: jQuery('.modal input[name=company_name]').val(),
}
let encodedData = btoa(JSON.stringify(data))
sessionStorage.subscriptionContactData = encodedData
window.open(jQuery('input[name=suscription_url]').val() + "?d=" + encodedData, '_blank').focus();
})
})