// source --> https://www.mparolling.co.uk/wp-content/plugins/indeed-membership-pro/assets/js/functions.js?ver=1.1
function ihcDeleteFileViaAjax(id, u_id, parent, name, hidden_id){
var r = confirm("Are you sure you want to delete?");
if (r) {
var s = jQuery(parent).attr('data-h');
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_delete_attachment_ajax_action",
attachemnt_id: id,
user_id: u_id,
field_name: name,
h: s
},
success: function (data) {
jQuery(hidden_id).val('');
jQuery(parent + ' .ajax-file-upload-filename').remove();
jQuery(parent + ' .ihc-delete-attachment-bttn').remove();
if (jQuery(parent + ' .ihc-member-photo').length){
jQuery(parent + ' .ihc-member-photo').remove();
if (name=='ihc_avatar'){
jQuery(parent).prepend("
");
jQuery(parent + " .ihc-file-upload").css("display", 'block');
}
}
if (jQuery(parent + " .ihc-file-name-uploaded").length){
jQuery(parent + " .ihc-file-name-uploaded").remove();
}
if (jQuery(parent + ' .ajax-file-upload-progress').length){
jQuery(parent + ' .ajax-file-upload-progress').remove();
}
if (jQuery(parent + ' .ihc-icon-file-type').length){
jQuery(parent + ' .ihc-icon-file-type').remove();
}
}
});
}
}
function ihcSetFormI(i_id, f_id, l_id, confirm){
/*
* i_id = input hidden id
* f_id = form id
* l_id = level id
*/
if (confirm){
var ihc_labels = JSON.parse(window.ihc_translated_labels)
var c = window.confirm( ihc_labels.delete_level );
if (!c){
return;
}
}
if (jQuery("#ihc_coupon").val()){
jQuery(f_id).append("");
}
jQuery(i_id).val(l_id);
jQuery(f_id).submit();
}
function ihcDhSelector(id, display){
if (display){
jQuery(id).css('visibility', 'visible');
} else {
jQuery(id).css('visibility', 'hidden');
}
}
function ihcSetLevelAp(l){
jQuery('#ihc_renew_level').val(l);
jQuery('#ihc_form_ap_subscription_page').submit();
}
function ihcRunSocialReg(s){
var form = jQuery("form#createuser");
jQuery("form#createuser input, form#createuser textarea").each(function(){
ihcAppendInput(this.name, this.value, "#ihc_social_login_form");
});
ihcAppendInput('sm_type', s, "#ihc_social_login_form");
jQuery("#ihc_social_login_form").submit();
}
function ihcAppendInput(n,v,w){
jQuery(w).append("");
}
function ihcBuyNewLevel(href){
if (jQuery("#ihc_coupon").val()){
//we have a coupon
var url = href + "&ihc_coupon=" + jQuery("#ihc_coupon").val();
window.location.href = url;
} else {
window.location.href = href;
}
}
jQuery(document).ready(function(){
jQuery('.ihc-mobile-bttn').on('click', function(){
jQuery('.ihc-ap-menu').toggle();
});
});
function ihcRegisterCheckViaAjax(the_type){
var target_id = '#' + jQuery('.ihc-form-create-edit [name='+the_type+']').parent().attr('id');
var val1 = jQuery('.ihc-form-create-edit [name='+the_type+']').val();
var val2 = '';
if (the_type=='pass2'){
val2 = jQuery('.ihc-form-create-edit [name=pass1]').val();
} else if (the_type=='confirm_email'){
val2 = jQuery('.ihc-form-create-edit [name=user_email]').val();
}
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_check_reg_field_ajax",
type: the_type,
value: val1,
second_value: val2
},
success: function (data) {
//remove prev notice, if its case
jQuery(target_id + ' .ihc-register-notice').remove();
jQuery('.ihc-form-create-edit [name='+the_type+']').removeClass('ihc-input-notice');
if (data==1){
// it's all good
} else {
jQuery(target_id).append('
'+data+'
');
jQuery('.ihc-form-create-edit [name='+the_type+']').addClass('ihc-input-notice');
}
}
});
}
function ihcCheckLoginField(t, e){
var n = jQuery('#notice_' + t);
n.fadeOut(500, function(){
n.remove();
});
var target = jQuery('#ihc_login_form [name='+t+']').parent();
var v = jQuery('#ihc_login_form [name='+t+']').val();
if (v==''){
jQuery(target).append('
' + e + '
');
}
}
function ihcGetCheckboxRadioValue(type, selector){
if (type=='radio'){
var r = jQuery('[name='+selector+']:checked').val();
if (typeof r!='undefined'){
return r;
}
} else {
var arr = [];
jQuery('[name=\''+selector+'[]\']:checked').each(function(){
arr.push(this.value);
});
if (arr.length>0){
return arr.join(',');
}
}
if ( jQuery('[name="' + selector + '"]').is(':checked') ){
return 1;
}
return '';
}
function ihcRegisterCheckViaAjaxRec(types_arr){
jQuery('.ihc-register-notice').remove();
var fields_to_send = [];
//EXCEPTIONS
var exceptions = jQuery("#ihc_exceptionsfields").val();
if (exceptions){
var exceptions_arr = exceptions.split(',');
}
for (var i=0; i-1){
continue;
}
var is_unique_field = false;
jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').removeClass('ihc-input-notice');
var field_type = jQuery('.ihc-form-create-edit [name=' + types_arr[i] + ']').attr('type');
if (typeof field_type=='undefined'){
var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').attr('type');
}
if (typeof field_type=='undefined'){
var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '\']').prop('nodeName');
}
if (typeof field_type=='undefined'){
var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').prop('nodeName');
if (field_type=='SELECT'){
field_type = 'multiselect';
}
}
if (field_type=='checkbox' || field_type=='radio'){
var val1 = ihcGetCheckboxRadioValue(field_type, types_arr[i]);
} else if ( field_type=='multiselect' ){
val1 = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').val();
if (typeof val1=='object' && val1!=null){
val1 = val1.join(',');
}
} else {
var val1 = jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').val();
if (jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').attr('data-search-unique')){
var is_unique_field = true;
}
}
var val2 = '';
if (types_arr[i]=='pass2'){
val2 = jQuery('.ihc-form-create-edit [name=pass1]').val();
} else if (types_arr[i]=='confirm_email'){
val2 = jQuery('.ihc-form-create-edit [name=user_email]').val();
} else if (types_arr[i]=='tos') {
if (jQuery('.ihc-form-create-edit [name=tos]').is(':checked')){
val1 = 1;
} else {
val1 = 0;
}
}
var params_to_send = {type: types_arr[i], value: val1, second_value: val2};
if (is_unique_field){
params_to_send.is_unique_field = true;
}
fields_to_send.push(params_to_send);
}
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_check_reg_field_ajax",
fields_obj: fields_to_send
},
success: function (data) {
var obj = JSON.parse(data);
var must_submit = 1;
for (var j=0; j'+obj[j].value+'');
must_submit = 0;
} else {
jQuery('#'+target_id).append('
'+obj[j].value+'
');
jQuery('.ihc-form-create-edit [name=' + obj[j].type + ']').addClass('ihc-input-notice');
must_submit = 0;
}
}
}
if (must_submit==1){
window.must_submit = 1;
jQuery(".ihc-form-create-edit").submit();
} else {
return false;
}
}
});
}
function ihcPaymentGatewayUpdate(v, is_r){
//remove authorize block
//remove stripe stuff
jQuery('[name=ihc_payment_gateway]').val(v);
jQuery('#ihc_submit_bttn').unbind('click');
jQuery('#ihc_authorize_r_fields').fadeOut(200);
jQuery('#ihc_braintree_r_fields').fadeOut(200);
switch (v){
case 'stripe':
jQuery('#ihc_submit_bttn').bind('click', function(e){
e.preventDefault();
var p = jQuery("#iumpfinalglobalp").val();
if ((jQuery("#stripeToken").val() && jQuery("#stripeEmail").val()) || p==0){
jQuery(".ihc-form-create-edit").submit();
return true;
}
p = p * 100;
if (p<50){
p = 50;
}
iump_stripe.open({
name: jQuery('#iump_site_name').val(),
description: jQuery('#iumpfinalglobal_ll').val(),
amount: p,
currency: jQuery('#iumpfinalglobalc').val(),
});
});
break;
case 'authorize':
if (is_r==1){
jQuery('#ihc_authorize_r_fields').fadeIn(200);
}
break;
case 'braintree':
jQuery('#ihc_braintree_r_fields').fadeIn(200);
break;
}
}
function iumpStripePrice(){
var p = jQuery("#iumpfinalglobalp").val();
p = p * 100;
if (p<50){
p = 50;
}
return p;
}
function ihcBuyNewLevelFromAp(l_name, l_amount, lid, url){
var v = jQuery('[name=ihc_payment_gateway]').val();
if (v=='stripe'){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_check_lid_price",
level_id: lid
},
success: function (data){
if (data==1){
//it's free
ihcBuyNewLevel(url+'&ihc_payment_gateway='+v);
} else {
// make payment with stripe
ihc_stripe_payment(l_name, l_amount, lid);
}
}
});
//
} else {
var c = jQuery('#ihc_coupon').val();
/*
if ( c!='' ){
url = url +'&ihc_coupon=' + c;
}
*/
if (typeof v!='undefined'){
url = url +'&ihc_payment_gateway='+v;
}
ihcBuyNewLevel(url);
}
}
function ihcRenewFunction(i_id, f_id, l_id, l_name, l_amount){
/*
* i_id = input hidden id
* f_id = form id
* l_id = level id
* l_name = level name
* l_amount = level amount
*/
var v = jQuery('[name=ihc_payment_gateway]').val();
if (v=='stripe'){
if (typeof ihc_stripe_renew_payment == 'function') {
ihc_stripe_renew_payment(l_name, l_amount, l_id);
return false;
}
} else {
ihcSetFormI(i_id, f_id, l_id);
}
}
function ihcPaymentSelectIcon(t){
jQuery('.ihc-payment-icon').removeClass('ihc-payment-select-img-selected');
jQuery('#ihc_payment_icon_'+t).addClass('ihc-payment-select-img-selected');
}
//////////////logic condition
function ihcAjaxCheckFieldConditionOnblurOnclick(check_name, field_id, field_name, show){
var check_value = jQuery(".ihc-form-create-edit [name="+check_name+"]").val();
ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show);
}
function ihcAjaxCheckOnClickFieldCondition(check_name, field_id, field_name, type, show){
if (type=='checkbox'){
var vals = [];
jQuery(".ihc-form-create-edit [name='"+check_name+"[]']:checked").each(function() {
vals.push(jQuery(this).val());
});
var check_value = vals.join(',');
} else {
var check_value = jQuery(".ihc-form-create-edit [name="+check_name+"]:checked").val();
}
ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show);
}
function ihcAjaxCheckOnChangeMultiselectFieldCondition(check_name, field_id, field_name, show){
var obj = jQuery(".ihc-form-create-edit [name='"+check_name+"[]']").val();
if (obj!=null){
var check_value = obj.join(',');
ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show);
}
}
function ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_check_logic_condition_value",
val: check_value,
field: field_name
},
success: function (data){
var str = jQuery("#ihc_exceptionsfields").val();
if (str){
var arr = str.split(',');
var index = arr.indexOf(field_name);
} else {
var arr = [];
}
if (data=='1'){
if (show==1){
jQuery(field_id).fadeIn(200);
if (arr.indexOf(field_name)!=-1){
arr.splice(index, 1);
}
} else {
jQuery(field_id).fadeOut(200);
if (arr.indexOf(field_name)==-1){
arr.push(field_name);
}
}
} else {
if (show==1){
jQuery(field_id).fadeOut(200);
if (arr.indexOf(field_name)==-1){
arr.push(field_name);
}
} else {
jQuery(field_id).fadeIn(200);
if (arr.indexOf(field_name)!=-1){
arr.splice(index, 1);
}
}
}
if (arr){
var str = arr.join(',');
jQuery("#ihc_exceptionsfields").val(str);
}
}
});
}
function ihcCheckUniqueValueField(the_type){
var target_id = '#' + jQuery('.ihc-form-create-edit [name='+the_type+']').parent().attr('id');
var v = jQuery('.ihc-form-create-edit [name='+the_type+']').val();
if (v){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihcCheckUniqueValueField_register",
meta_key: the_type,
meta_value: v
},
success: function (data) {
//remove prev notice, if its case
jQuery(target_id + ' .ihc-register-notice').remove();
jQuery('.ihc-form-create-edit [name='+the_type+']').removeClass('ihc-input-notice');
if (data==1){
// it's all good
} else {
jQuery(target_id).append('
'+data+'
');
jQuery('.ihc-form-create-edit [name='+the_type+']').addClass('ihc-input-notice');
window.must_submit = 0;
}
}
});
}
}
function ihcCheckInvitationCode(){
var target_id = '#' + jQuery('.ihc-form-create-edit #ihc_invitation_code_field').parent().attr('id');
var v = jQuery('#ihc_invitation_code_field').val();
if (v){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_check_invitation_code_via_ajax",
c: v,
},
success: function (data) {
//remove prev notice, if its case
jQuery(target_id + ' .ihc-register-notice').remove();
jQuery('.ihc-form-create-edit #ihc_invitation_code_field').removeClass('ihc-input-notice');
if (data==1){
// it's all good
} else {
jQuery(target_id).append('
'+data+'
');
jQuery('.ihc-form-create-edit #ihc_invitation_code_field').addClass('ihc-input-notice');
window.must_submit = 0;
}
}
});
}
}
function ihcUpdateCart(){
var lid_val = jQuery('.ihc-form-create-edit [name=lid]').val();
var coupon_val = jQuery('.ihc-form-create-edit [name=ihc_coupon]').val();
var country_val = jQuery('.ihc-form-create-edit #ihc_country_field').val();
var state_val = jQuery('.ihc-form-create-edit [name=ihc_state]').val();
if (jQuery('#ihc_dynamic_price').length){
var d_a = jQuery('#ihc_dynamic_price').val();
} else {
var d_a = -1;
}
var payment_gateway = jQuery('[name=ihc_payment_gateway]').val()
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_get_cart_via_ajax",
country: country_val,
lid: lid_val,
coupon: coupon_val,
state: state_val,
a: d_a,
payment_type: payment_gateway,
},
success: function (response){
jQuery('#ihc_cart_wrapper').remove();
jQuery('.ihc-form-create-edit').after(response);
}
});
}
function ihcShowPrint(i){
jQuery(i).css('display', 'block');
}
function ihcHidePrint(i){
jQuery(i).css('display', 'none');
}
function ihcDoPrint(i){
var file = jQuery(i).files[0];
var reader = new FileReader();
reader.onload = function(event) {
var html = "" +
"" +
""+
"" +
"";
var win = window.open("about:blank","_blank");
win.document.write(html);
};
reader.readAsDataURL(file);
}
jQuery(document).ready(function(){
var e = jQuery('.ihc-form-create-edit [name=ihc_coupon]');
e.on('blur', function(){
ihcUpdateCart();
var p = '#' + e.parent().attr('id');
jQuery(p+' #ihc_coupon_code_check_div_msg').remove();
if (e.val()){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_check_coupon_status_via_ajax",
c: e.val(),
l: jQuery('.ihc-form-create-edit [name=lid]').val(),
},
success: function (r) {
var obj = JSON.parse(r);
if (obj.is_active){
jQuery(p).append('
' + obj.success_msg + '
');
} else {
jQuery(p).append('
' + obj.err_msg + '
');
}
setTimeout(function(){jQuery('#ihc_coupon_code_check_div_msg').fadeOut(500, function(){this.remove();});},5000);
}
});
}
});
});
function ihcUpdateStateField( updateCart ){
var s = jQuery('.ihc-form-create-edit [name=ihc_state]').length>0;
if (s){
var e = jQuery('.ihc-form-create-edit [name=ihc_country]');
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_get_ihc_state_field",
country: e.val(),
},
success: function (r) {
var f = jQuery('.ihc-form-create-edit [name=ihc_state]');
var p = f.parent();
f.remove();
p.append(r);
if (updateCart){
ihcUpdateCart();
}
}
});
}
}
function ihcRemoveSocial(t){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_remove_sm_from_user",
type: t,
},
success: function (r) {
location.reload();
}
});
}
function iumpGenerateInvoice(i){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_generate_invoice",
order_id: i
},
success: function (r) {
if (r){
jQuery('body').append(r);
}
}
});
}
function ihcClosePopup(){
jQuery('#popup_box').fadeOut(300, function(){
jQuery(this).remove();
});
}
function ihcDeselectAll(n, c){
if (jQuery(c).is(':checked')){
jQuery('[name="'+n+'[]"]').each(function(){
if (jQuery(this).val()!=''){
jQuery(this).attr('checked', false);
}
});
}
}
function ihcDynamicPriceUpdateGlobal(){
var p = jQuery('#ihc_dynamic_price').val();
jQuery('#iumpfinalglobalp').val(p);
ihcUpdateCart();
}
function ihcDoUsersiteModuleDelete(i){
var c = confirm(window.ihc_current_question);
if (c){
jQuery.ajax({
type : "post",
url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php',
data : {
action: "ihc_do_user_delete_blog",
lid: i
},
success: function (r){
window.location.href = window.ihc_current_url;
}
});
}
}
jQuery(document).ready( function() {
var nonce = jQuery('meta[name="ump-token"]').attr('content');
jQuery.ajaxSetup( { headers: {'X-CSRF-UMP-TOKEN': nonce }});
});
// source --> https://www.mparolling.co.uk/wp-content/plugins/indeed-membership-pro/assets/js/printThis.js
/*
* printThis v1.5
* @desc Printing plug-in for jQuery
* @author Jason Day
*
* Resources (based on) :
* jPrintArea: http://plugins.jquery.com/project/jPrintArea
* jqPrint: https://github.com/permanenttourist/jquery.jqprint
* Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm
*
* Licensed under the MIT licence:
* http://www.opensource.org/licenses/mit-license.php
*
* (c) Jason Day 2015
*
* Usage:
*
* $("#mySelector").printThis({
* debug: false, * show the iframe for debugging
* importCSS: true, * import page CSS
* importStyle: false, * import style tags
* printContainer: true, * grab outer container as well as the contents of the selector
* loadCSS: "path/to/my.css", * path to additional css file - us an array [] for multiple
* pageTitle: "", * add title to print page
* removeInline: false, * remove all inline styles from print elements
* printDelay: 333, * variable print delay
* header: null, * prefix to html
* formValues: true * preserve input/form values
* });
*
* Notes:
* - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout
*/
;
(function($) {
var opt;
$.fn.printThis = function(options) {
opt = $.extend({}, $.fn.printThis.defaults, options);
var $element = this instanceof jQuery ? this : $(this);
var strFrameName = "printThis-" + (new Date()).getTime();
if (window.location.hostname !== document.domain && navigator.userAgent.match(/msie/i)) {
// Ugly IE hacks due to IE not inheriting document.domain from parent
// checks if document.domain is set by comparing the host name against document.domain
var iframeSrc = "javascript:document.write(\"\")";
var printI = document.createElement('iframe');
printI.name = "printIframe";
printI.id = strFrameName;
printI.className = "MSIE";
document.body.appendChild(printI);
printI.src = iframeSrc;
} else {
// other browsers inherit document.domain, and IE works if document.domain is not explicitly set
var $frame = $("");
$frame.appendTo("body");
}
var $iframe = $("#" + strFrameName);
// show frame if in debug mode
if (!opt.debug) $iframe.css({
position: "absolute",
width: "0px",
height: "0px",
left: "-600px",
top: "-600px"
});
// $iframe.ready() and $iframe.load were inconsistent between browsers
setTimeout(function() {
// Add doctype to fix the style difference between printing and render
function setDocType($iframe,doctype){
var win, doc;
win = $iframe.get(0);
win = win.contentWindow || win.contentDocument || win;
doc = win.document || win.contentDocument || win;
doc.open();
doc.write(doctype);
doc.close();
}
if(opt.doctypeString){
setDocType($iframe,opt.doctypeString);
}
var $doc = $iframe.contents(),
$head = $doc.find("head"),
$body = $doc.find("body");
// add base tag to ensure elements use the parent domain
$head.append('');
// import page stylesheets
if (opt.importCSS) $("link[rel=stylesheet]").each(function() {
var href = $(this).attr("href");
if (href) {
var media = $(this).attr("media") || "all";
$head.append("")
}
});
// import style tags
if (opt.importStyle) $("style").each(function() {
$(this).clone().appendTo($head);
//$head.append($(this));
});
//add title of the page
if (opt.pageTitle) $head.append("" + opt.pageTitle + "");
// import additional stylesheet(s)
if (opt.loadCSS) {
if( $.isArray(opt.loadCSS)) {
jQuery.each(opt.loadCSS, function(index, value) {
$head.append("");
});
} else {
$head.append("");
}
}
// print header
if (opt.header) $body.append(opt.header);
// grab $.selector as container
if (opt.printContainer) $body.append($element.outer());
// otherwise just print interior elements of container
else $element.each(function() {
$body.append($(this).html());
});
// capture form/field values
if (opt.formValues) {
// loop through inputs
var $input = $element.find('input');
if ($input.length) {
$input.each(function() {
var $this = $(this),
$name = $(this).attr('name'),
$checker = $this.is(':checkbox') || $this.is(':radio'),
$iframeInput = $doc.find('input[name="' + $name + '"]'),
$value = $this.val();
//order matters here
if (!$checker) {
$iframeInput.val($value);
} else if ($this.is(':checked')) {
if ($this.is(':checkbox')) {
$iframeInput.attr('checked', 'checked');
} else if ($this.is(':radio')) {
$doc.find('input[name="' + $name + '"][value=' + $value + ']').attr('checked', 'checked');
}
}
});
}
//loop through selects
var $select = $element.find('select');
if ($select.length) {
$select.each(function() {
var $this = $(this),
$name = $(this).attr('name'),
$value = $this.val();
$doc.find('select[name="' + $name + '"]').val($value);
});
}
//loop through textareas
var $textarea = $element.find('textarea');
if ($textarea.length) {
$textarea.each(function() {
var $this = $(this),
$name = $(this).attr('name'),
$value = $this.val();
$doc.find('textarea[name="' + $name + '"]').val($value);
});
}
} // end capture form/field values
// remove inline styles
if (opt.removeInline) {
// $.removeAttr available jQuery 1.7+
if ($.isFunction($.removeAttr)) {
$doc.find("body *").removeAttr("style");
} else {
$doc.find("body *").attr("style", "");
}
}
setTimeout(function() {
if ($iframe.hasClass("MSIE")) {
// check if the iframe was created with the ugly hack
// and perform another ugly hack out of neccessity
window.frames["printIframe"].focus();
$head.append("");
} else {
// proper method
if (document.queryCommandSupported("print")) {
$iframe[0].contentWindow.document.execCommand("print", false, null);
} else {
$iframe[0].contentWindow.focus();
$iframe[0].contentWindow.print();
}
}
//remove iframe after print
if (!opt.debug) {
setTimeout(function() {
$iframe.remove();
}, 1000);
}
}, opt.printDelay);
}, 333);
};
// defaults
$.fn.printThis.defaults = {
debug: false, // show the iframe for debugging
importCSS: true, // import parent page css
importStyle: false, // import style tags
printContainer: true, // print outer container/$.selector
loadCSS: "", // load an additional css file - load multiple stylesheets with an array []
pageTitle: "", // add title to print page
removeInline: false, // remove all inline styles
printDelay: 333, // variable print delay
header: null, // prefix to html
formValues: true, // preserve input/form values
doctypeString: '' // html doctype
};
// $.selector container
jQuery.fn.outer = function() {
return $($("").html(this.clone())).html()
}
})(jQuery);
// source --> https://www.mparolling.co.uk/wp-content/plugins/indeed-membership-pro/assets/js/iziModal.min.js
/*
* iziModal | v1.6.0
* http://izimodal.marcelodolce.com
* by Marcelo Dolce.
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}(function(t){function e(){var t,e=document.createElement("fakeelement"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in i)if(void 0!==e.style[t])return i[t]}function i(t){return 9===t?navigator.appVersion.indexOf("MSIE 9.")!==-1:(userAgent=navigator.userAgent,userAgent.indexOf("MSIE ")>-1||userAgent.indexOf("Trident/")>-1)}function n(t){var e=/%|px|em|cm|vh|vw/;return parseInt(String(t).split(e)[0])}function o(e){var i=e.replace(/^.*#/,""),n=t(e);n.attr("id",i+"-tmp"),window.location.hash=e,n.attr("id",i)}var s=t(window),a=t(document),r="iziModal",l={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened",DESTROYED:"destroyed"},d=e(),h=!!/Mobi/.test(navigator.userAgent);window.$iziModal={},window.$iziModal.autoOpen=0,window.$iziModal.history=!1;var c=function(t,e){this.init(t,e)};return c.prototype={constructor:c,init:function(e,i){var n=this;this.$element=t(e),void 0!==this.$element[0].id&&""!==this.$element[0].id?this.id=this.$element[0].id:(this.id=r+Math.floor(1e7*Math.random()+1),this.$element.attr("id",this.id)),this.classes=void 0!==this.$element.attr("class")?this.$element.attr("class"):"",this.content=this.$element.html(),this.state=l.CLOSED,this.options=i,this.width=0,this.timer=null,this.timerTimeout=null,this.progressBar=null,this.isPaused=!1,this.isFullscreen=!1,this.headerHeight=0,this.modalHeight=0,this.$overlay=t(''),this.$navigate=t('