1var jQ = jQuery.noConflict(); 2 3(function(jQ){ 4 5 if( jQ('body').hasClass('page-template-portal') ){ 6 7 function replaceAll(string, search, replace) { 8 return string.split(search).join(replace); 9 } 10 11 function isEmpty(str) { 12 return (!str || 0 === str.length); 13 } 14 15 function getInfo(){ 16 17 jQ('#data-container').empty(); 18 jQ('#data-container').html('<i class="fas fa-circle-notch fa-spin"></i>'); 19 20 //info i get from form. 21 22 23 let searchMembers = jQ('#searchMember').val(); 24 25 jQ.ajax({ 26 url : dcms_vars.ajaxurl, 27 type: 'post', 28 data: { 29 action : 'dcms_ajax_readmore', 30 searchMembers:searchMembers, 31 }, 32 success: function(res){ 33 34 var container = jQ('#pagination-members'); 35 36 container.pagination({ 37 dataSource: JSON.parse(res), 38 locator: 'items', 39 pageSize: 300, 40 showPageNumbers: false, 41 showPrevious: false, 42 showNext: false, 43 showNavigator: false, 44 showFirstOnEllipsisShow: false, 45 showLastOnEllipsisShow: false, 46 callback: function(response, pagination) { 47// console.log(JSON.parse(res)); 48 let dataHtml = ''; 49 if( response == ''){ 50 dataHtml = '<div class="card-member"><span class="not-member-found">No members found...</span></div>'; 51 }else{ 52 dataHtml = response; 53 } 54 jQ('#data-container').html(dataHtml); 55 } 56 }); 57 } 58 59 }); 60 61 } 62 63 setTimeout(function(){ 64 65 getInfo(); 66 67 },1000); 68 69 //the id here is the button we have on template. 70 71 jQ('#viewAllMembers').click(function(){ 72 getInfo(); 73 }); 74 75 jQ('#searchMember').keyup(function(e){ 76 if(e.keyCode == 13){ 77 getInfo(); 78 } 79 80 }); 81 82 83 } 84 85})(jQuery); 86
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.