.account_details { padding-top:7px; } .account_details strong { color: rgb(51, 51, 51); font-family: "Open Sans",Helvetca,Arial,sans-serif; font-size: 24px; } .payinfo_area .vc_column-inner .wpb_wrapper .box-default { height:240px; padding-top:33px; } .login_area .vc_column-inner .wpb_wrapper .box-default { height:247px; } .box-default p .alignnone { margin-top:-5px; } var login_area = jQuery('.login_area').html(); var id_parts = jQuery( '.ninja-forms-form-wrap' ).attr( 'id' ).split( '_' ); var form_id = id_parts[ id_parts.length - 2]; var current_pos = 1; console.log(form_id); function isEmail( email ) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return regex.test( email ); } function fillInstagramDetails( username, email, price, name, media, followers, pic, form_id ){ if ( current_pos == 2 ) return; var details_html = ""; details_html += ''; details_html += ''; details_html += '"; details_html += ''; details_html += "
'; details_html += ''; details_html += ""; details_html += "

" + username + "

"; details_html += "

Posts: " + "" + media + "

"; details_html += "

Followers: " + "" + followers + "

"; details_html += "
   Email Address: ' + email + '
"; var original_height = jQuery('.login_area .box-default').css( 'height' ); jQuery( '.ninja-forms-all-fields-wrap .bti-lm-col-1-1' ).css( 'display', 'none' ); jQuery( '.ninja-forms-all-fields-wrap .bti-lm-col-1-1' ).last().css( 'display', 'block' ); jQuery( '.login_area .box-default' ).css( 'height', original_height ); jQuery( '.paypal_hide' ).val( 'Proceed To PayPal' ); jQuery( '#backbpp' ).remove(); jQuery( '.paypal_hide' ).first().parent().append( '' ); jQuery( '.ninja-forms-all-fields-wrap .bti-lm-col-1-1' ).last().prepend( details_html ); jQuery( '#backbpp' ).val( 'Back' ); jQuery( '#backbpp' ).css( 'margin-left', '40px' ); jQuery( '#backbpp' ).on( 'click', function goPaypalBack(){ jQuery( '.ninja-forms-all-fields-wrap .bti-lm-col-1-1' ).css( 'display', 'block' ); jQuery( '.paypal_hide' ).val( 'Next' ); jQuery( '#backbpp' ).remove(); jQuery( '#order_details_container' ).remove(); current_pos = 1; return false; } ); jQuery( '#nf_submit_' + form_id ).fadeIn(); jQuery( '#nf_processing_' + form_id ).hide(); current_pos = 2; } jQuery( '.paypal_hide' ).first().click( function( ) { if ( current_pos == 2 ) { jQuery( '.paypal_hide' ).val( 'PROCESSING...' ); return true; } var instagram_username = jQuery( '.field_username' ).val(); var user_email = jQuery( '.field_email' ).val(); var error = false; if ( ( instagram_username == '' ) || ( instagram_username == undefined ) ){ jQuery( '.field_username' ).css( 'border', '1px solid red' ); error = true; } else { jQuery( '.field_username' ).css( 'border', '1px solid silver' ); } jQuery('#inv_inst_message').remove(); if ( ( user_email == '' ) || ( user_email == undefined ) ){ jQuery( '.field_email' ).css( 'border', '1px solid red' ); error = true; } else if ( !isEmail( user_email ) ){ jQuery( '.field_email' ).css( 'border', '1px solid red' ); if ( jQuery( '#inv_email_message' ).length == 0 ){ jQuery( '.paypal_hide' ).first().parent().append( " Invalid Email Format" ); } error = true; } else { jQuery( '.field_email' ).css( 'border', '1px solid silver' ); jQuery( '#inv_email_message' ).hide(); } if ( !error ){ jQuery( '#nf_submit_' + form_id ).hide(); jQuery( '#nf_processing_' + form_id ).fadeIn(); jQuery.post( '/?instprofile=1', { instagram_username: instagram_username }, function( response ){ if ( response.error ) { jQuery( '#nf_submit_' + form_id ).show(); jQuery( '#nf_processing_' + form_id ).hide(); jQuery( '.paypal_hide' ).first().parent().append( "" + response.error + "" ); } else { fillInstagramDetails( instagram_username, user_email, '', '', response.media, response.followed, response.avatar, form_id ); } }, 'json' ); } return false; } );

 

The 10,000 Followers option is no longer available. See our new pricing on our home page.

X