1jQuery(document).ready(function(){ 2 3 var jq = jQuery; 4 5 jq(document).on( 'click', 'div.bp-featured-members-button a', function() { 6 var $this = jq(this), 7 user_id = $this.data('user-id'), 8 nonce = $this.data('nonce'); 9 10 jq.post( 11 ajaxurl, { 12 action: 'bp_process_featured_members_status', 13 user_id: user_id, 14 _wpnonce: nonce 15 }, function(resp) { 16 if ( resp.success ) { 17 $this.text( resp.data.btn_label ); 18 } 19 }, 'json' 20 ); 21 return false; 22 }); 23 24 // for slider. 25 if ( typeof jq.fn.lightSlider !== 'undefined' ) { 26 jq( '.featured-members-slider').each( function() { 27 var $this = jq(this); 28 29 //read settings from element 30 var data = $this.data(); 31 32 var boolProps = ['loop', 'autoWidth', 'useCSS', 'auto', 'pauseOnHover', 33 'keyPress', 'controls', 'rtl', 'adaptiveHeight', 'vertical', 34 'pager', 'gallery', 'enableTouch', 'enableDrag', 'freeMove']; 35 36 for ( var i = 0; i< boolProps.length; i++ ) { 37 38 if( data[ boolProps[i] ] !== undefined ) { 39 data[ boolProps[i] ] = !! data[ boolProps[i] ]; 40 } 41 } 42 console.log(data); 43 44 $this.lightSlider( data ); 45 } ); 46 } 47});
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.