Mint: A Fresh Look at your Site Minted
  1. 1 jQuery(document).ready(function($){$('.sfba-main-form-container').on("animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",function(){$(this).removeClass('animation-start')});var set_animation=setInterval(function(){$('.sfba-main-form-container').addClass('animation-start')},3500);$(".sfba_subscribe_form").on('submit',function(){var form_id=jQuery(this).attr('id');var sfba_page_link=jQuery('#'+form_id+' .sfba_page_link').val();var post_id=jQuery('#'+form_id+' .sfba_post_type_id').val();var name=jQuery('#'+form_id+' .sfba-form-name').val();var email=jQuery('#'+form_id+' .sfba-form-email').val();if(name==null){data={action:'sfba_ajax','subscriberemail':email,'post_id':post_id,'sfba_page_link':sfba_page_link,"wpnonce":the_ajax_script.ajax_nonce}}else{data={action:'sfba_ajax','subscribername':name,'subscriberemail':email,'post_id':post_id,'sfba_page_link':sfba_page_link,"wpnonce":the_ajax_script.ajax_nonce}}
  2. 2 $.post(the_ajax_script.ajaxurl,data,function(response){$('#'+form_id+' .sfba_thanks_container').css({"opacity":"0","display":"flex",}).show().animate({opacity:1})
  3. 3 clearInterval(set_animation)});return!1});jQuery(document).on('click',".sfba_delete_entry",function(){var deleterowid=$(this).attr("data-delete");var wpappp_confirm_delete=window.confirm("Are you sure you want to delete Record with ID# "+deleterowid);var wpapp_redirect_refresh=window.location.href;if(wpappp_confirm_delete==!0){jQuery.ajax({type:'POST',url:the_ajax_script.ajaxurl,data:{"action":"sfba_delete_db_record","id":deleterowid,"wpnonce":the_ajax_script.ajax_nonce},success:function(data){location.href=wpapp_redirect_refresh},error:function(XMLHttpRequest,textStatus,errorThrown){alert("Status: "+textStatus);alert("Error: "+errorThrown)}})}
  4. 4 return!1});jQuery(document).on('click',"#sfba_delete_all_data",function(){var wpappp_confirm_delete=window.confirm("Are you sure you want to delete all subscribers from the database?");var wpapp_redirect_refresh=window.location.href;if(wpappp_confirm_delete==!0){jQuery.ajax({type:'POST',url:the_ajax_script.ajaxurl,data:{"action":"sfba_delete_db_data","wpnonce":the_ajax_script.ajax_nonce},success:function(data){location.href=wpapp_redirect_refresh},error:function(XMLHttpRequest,textStatus,errorThrown){alert("Status: "+textStatus);alert("Error: "+errorThrown)}})}
  5. 5 return!1});$('.sfba-form-submit-button').on('click',function(event){var form_id=jQuery(this).data('form-id');if(typeof $('#'+form_id+' input[type=checkbox]').prop("checked")!=='undefined'&&$('#'+form_id+' input[type=checkbox]').prop("checked")!==!0){$('#'+form_id+' .sfba-conset-field-error').show();event.preventDefault();return!1}else{$('#'+form_id+' .sfba-conset-field-error').hide()}
  6. 6 if($('form#'+form_id+' .sfba-form-email').val()==''){$('form#'+form_id+' .sfba-email-field-error').show();event.preventDefault()}else{$('form#'+form_id+' .sfba-email-field-error').hide()}});$('a.sfba-form-close').on('click',function(event){$('#'+$(this).data('form-id')).slideToggle()});$("#sfba_subscription_selection_dd").select2({closeOnSelect:!1,placeholder:"Integrations list",allowHtml:!1,tags:!1})})
Bookmark: javascript:location='http://shauninman.com/vs/?url='+escape(location)