1/* Prayer Engine - This updates the prayer counter on individual prayer requests via AJAX */ 2jQuery(document).ready(function() { 3 jQuery(".submitlink").click(function() { 4 var pid = jQuery(this).siblings("input.id").attr("value"); 5 var noncename = "enmpe_iprayed"+pid; 6 var thenonce = jQuery('#'+noncename).attr("value"); 7 8 jQuery.ajax({ 9 url: peajax.ajaxurl, 10 data: { 11 'action': 'prayerengine_prayercount', 12 'enmpe_nonce' : thenonce, 13 'pid' : pid 14 }, 15 success:function(data) { 16 jQuery('#count'+pid).html( data ); 17 }, 18 error: function(errorThrown){ 19 console.log(errorThrown); 20 } 21 }); 22 return false; 23 }); 24 25 jQuery(".pe-prayer-form").click( 26 function () { 27 jQuery("#pe-form-container").slideToggle(); 28 return false; 29 } 30 ); 31 32 jQuery(".pe-focus-form").click( 33 function () { 34 jQuery(".enmpe-signupform").slideToggle(); 35 return false; 36 } 37 ); 38 39 jQuery("#prayerengine_twitter_ok").click(function () { //If enabled, toggle the Prayer Tweet field 40 jQuery("#pe-twitter-area").slideToggle(); 41 }); 42 43 var enmpedocwidth = jQuery( document ).width(); 44 var enmpeembedwidth = jQuery('#prayerengine').width(); 45 46 if ( enmpeembedwidth < 701 && enmpedocwidth > 715 ) { 47 jQuery('.enmpe-signupform').addClass('pe-small'); 48 jQuery('.enmpe-prayerfocus-table').addClass('pe-small'); 49 }; 50 51 if ( (enmpeembedwidth > 700 && enmpeembedwidth < 825) && enmpedocwidth > 825 ) { 52 jQuery('.enmpe-signupform').addClass('pe-medium'); 53 jQuery('.enmpe-prayerfocus-table').addClass('pe-medium'); 54 }; 55 56});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.