Greenbrier Academy for Girls

Company Overview

  • Founded Date January 1, 2007
  • Posted Jobs 0
  • Viewed 623
  • Categories Behavioral Health , Education

Company Description

Greenbrier Academy is a therapeutic boarding school with an immersive program specifically designed to help heal negative core beliefs that are impacting your daughter’s life. This is done through the close collaboration of our therapeutic, residential and academic departments within a supportive, peer-led community and the use of our Signature Therapeutic Programs as devices for change.

// Initialize Firebase firebase.initializeApp(firebaseConfig); firebase.auth().languageCode = "en"; if (jQuery('#jobsearch_reg_va_fr_otp').length > 0) { window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('jobsearch_reg_va_fr_otp', { 'size': 'invisible', 'callback': function (response) {}, 'expired-callback': function () {}, 'error-callback': function () {} }); } }); // jQuery('.jobsearch-usereg-otptriger').on('click', function() { var this_btn = jQuery(this); var this_parent_con = this_btn.parents('.jobsearch-sendin-otpcon'); var parent_form = this_btn.parents('form'); var phon_num_field = parent_form.find('input[name="pt_user_phone"]'); var loder_con = this_parent_con.find('.sendin-otp-loder'); var genral_errmsg_con = this_parent_con.find('.sendin-otpcon-errmsg'); genral_errmsg_con.hide(); if (phon_num_field.length > 0) { if (parent_form.find('input[name="dial_code"]').length > 0) { var dial_code_val = parent_form.find('input[name="dial_code"]').val(); var phon_num_val = dial_code_val + phon_num_field.val(); } else { var phon_num_val = phon_num_field.val(); } if (phon_num_val == '') { genral_errmsg_con.html('A valid phone number is required to send OTP.').slideDown(); } else { loder_con.html(''); this_btn.addClass('jobsearch-disable-btn'); var appVerifier = window.recaptchaVerifier; firebase.auth().signInWithPhoneNumber(phon_num_val, appVerifier).then(function (confirmationResult) { //console.log(confirmationResult); window.confirmationResult = confirmationResult; // this_btn.hide(); this_parent_con.find('.jobsearch-fill-otpcon').find('.userfill-otp-msgcon').find('strong').html(phon_num_val); this_parent_con.find('.jobsearch-fill-otpcon').slideDown(); loder_con.html(''); }).catch(function (error) { console.log(error); genral_errmsg_con.html(error.code + ': ' + error.message).slideDown(); loder_con.html(''); this_btn.removeClass('jobsearch-disable-btn'); }); } } else { genral_errmsg_con.html('A valid phone number is required to send OTP.').slideDown(); } }); jQuery('.jobsearch-regotp-checkbtn').on('click', function() { var this_btn = jQuery(this); var this_parent_con = this_btn.parents('.jobsearch-sendin-otpcon'); var genral_errmsg_con = this_parent_con.find('.sendin-otpcon-errmsg'); genral_errmsg_con.hide(); var otp_code = this_parent_con.find('.jobsearch-userfill-otp-field').val(); if (otp_code == '') { genral_errmsg_con.html('Please enter the OTP code first.').slideDown(); } else { jobsearch_phone_otp_check_call(this_btn, confirmationResult, otp_code); } }); function jobsearch_phone_otp_check_call(this_btn, confirmationResult, otp_code) { var this_parent_con = this_btn.parents('.jobsearch-sendin-otpcon'); var genral_errmsg_con = this_parent_con.find('.sendin-otpcon-errmsg'); var loder_con = this_parent_con.find('.cheking-otp-loder'); var parent_form = this_btn.parents('form'); this_btn.addClass('jobsearch-disable-btn'); loder_con.html(''); confirmationResult.confirm(otp_code).then(function (result) { parent_form.find('.regsend-submit-btncon').removeAttr('style'); this_btn.parent('.userfill-otp-btnholdr').hide(); loder_con.html(''); this_parent_con.find('.userfill-otp-msgcon').addClass('alert alert-success'); this_parent_con.find('.userfill-otp-msgcon').find('em').html('You have successfully validated the OTP code. Great job! Now you are authorize to register your account.'); }).catch(function (error) { console.log(error); genral_errmsg_con.html(error.code + ': ' + error.message).slideDown(); loder_con.html(''); this_btn.removeClass('jobsearch-disable-btn'); }); }