We are very excited to grow our book collection, and we would love for you to be a part of that process.
We invite you to request books, which you think will be good additions to the library’s collection. We cannot guarantee that every book requested will be purchased, but we hope that we can accommodate as many requests as possible!
To submit a book request, please fill out the following form:
//document jQuery( document ).ready(function() { // donot submit form on enter , allow enter button only for tex jQuery(document).on("keypress", ":input:not(textarea)", function(event) { return event.keyCode != 13; }); //animation effect // do not use previous password saved in broswer for passowrd field jQuery("input[type='password']").attr("autocomplete", "new-password");
//handle form submission //jQuery("form[name='wpdevart_frontend_form_2']").submit(function(e){ jQuery(document).on("submit", "form[name='wpdevart_frontend_form_2']", function(e) { //shortcode attributes e.g var atts = {"id":"2"}; var options = { //target:'#frontend_form_messages_2', // target element(s) to be updated with server response // other available options: url:"https://www.laniertheologicallibrary.org/wp-admin/admin-ajax.php", // override for form's 'action' attribute //url:"https://www.laniertheologicallibrary.org/wp-content/plugins/contact-forms-builder-pro/check-ajax.php", data:{'btn_send_form_email':'1','process_ajax':'1','atts':JSON.stringify(atts),'action':'get_post_information'}, //type: type // 'get' or 'post', override for form's 'method' attribute //dataType: null // 'xml', 'script', or 'json' (expected server response type) //clearForm: true , // clear all form fields after successful submit //resetForm: true , // reset the form after successful submit
// $.ajax options can be used here too, for example: //timeout: 3000
beforeSubmit: function() { jQuery("#loader-icon-2").show(); }, success:showResponse, // post-submit callback };
// inside event callbacks 'this' is the DOM element so we first // wrap it in a jQuery object and then invoke ajaxSubmit jQuery(this).ajaxSubmit(options);
// !!! Important !!! // always return false to prevent standard browser submit and page navigation return false; });
function showResponse(responseText, statusText, xhr, $form) { str = responseText; //replace first occurence str = str.replace("successmsg_", " "); // append response console.log($form) jQuery("#frontend_form_messages_2").text(" "); jQuery("#frontend_form_messages_2").append(str); jQuery(".notice-dismiss").click(function(){ self=this; jQuery(this).parent().parent().slideUp("normal"); setTimeout(function(){jQuery(self).parent().parent().remove()},600) }) /*setTimeout(function(){ //jQuery("#frontend_form_messages_2 .success_message2").fadeout(); jQuery("#frontend_form_messages_2 .success_message").fadeOut(); }, 5000);*/
// responseText , updates the div in target specified in options jQuery("#loader-icon-2").hide();
var matched = responseText.search('successmsg_'); if(matched != -1) {
var formId = "2"; grecaptcha.reset(); jQuery('#wpdevart-forms-2').hide(); return;
setTimeout(function(){ jQuery('#wpdevart-forms-2')[0].reset(); jQuery("#wpdevart-forms-"+formId).each(function() { jQuery(this).find(".input-file ").each(function(){ jQuery(this).find("input").val(""); }); jQuery(this).find(".file-upload-btn + span").each(function() { jQuery(this).text(" "); }); }); },100); } grecaptcha.reset(); return false;
} function showRequest() { return false; }
jQuery(document).on("click","[type=reset].ws-reset-form",function(e){ formId= jQuery(this).attr('data-attr'); //reset jQuery("#wpdevart-forms-"+formId).each(function(){ jQuery(this).find(".input-file ").each(function(){ jQuery(this).find("input").val(""); }); jQuery(this).find(".file-upload-btn + span").each(function(){ jQuery(this).text(" "); }); jQuery("#wpdevart-forms-"+formId)[0].reset(); }); grecaptcha.reset(); return false;
}); });