jQuery(function ($) {
var id = “4497”;
var options = {“enabled”:true,”theme”:”default_theme”,”delay_time”:”5000″,”mask_color”:”#000″,”border_color”:”#000″,”transition”:”elastic”,”rules”:{“show_on_homepage”:true,”show_to_logged_in_users”:true,”cookie_expiration_time”:””,”show_only_on_homepage”:false,”hide_on_mobile_devices”:false,”show_only_to_search_engine_visitors”:false,”exit_popup”:false,”when_post_end_rule”:false,”use_cookies”:false}};
var uniq_id = “58de610c04cbd”;
var submit_url = “http://www.integralcentromedico.com/wp-admin/admin-ajax.php?action=wpp_store_email”;
var options = {“enabled”:true,”theme”:”default_theme”,”delay_time”:”5000″,”mask_color”:”#000″,”border_color”:”#000″,”transition”:”elastic”,”rules”:{“show_on_homepage”:true,”show_to_logged_in_users”:true,”cookie_expiration_time”:””,”show_only_on_homepage”:false,”hide_on_mobile_devices”:false,”show_only_to_search_engine_visitors”:false,”exit_popup”:false,”when_post_end_rule”:false,”use_cookies”:false}};
var rules = options.rules;
$(‘.link_default_theme-4497’).magnificPopup({
type: ‘inline’,
closeOnBgClick: false,
enableEscapeKey: false,
callbacks: {
open: function() {
$(‘.mfp-bg’).css( ‘background’, options.mask_color );
$(‘.wpp_default_theme’).css( ‘border-color’, options.border_color );
},
close: function() {
if ( rules.use_cookies )
wpp_place_popup_close_cookie( id, rules.cookie_expiration_time );
}
}
});
if ( rules.comment_autofill ) {
wpp_do_comment_autofill( uniq_id, ’26cb54d23c137d5507176ea0544c4052′ );
}
$(‘.’ + uniq_id + ‘ input[type=submit]’ ).click(function(e){
e.preventDefault();
wpp_handle_form_submit( id, uniq_id, submit_url, rules.cookie_expiration_time );
});
});
Click to open popup