1/*************************************************** 2 Docs Voting 3***************************************************/ 4 5jQuery().ready(function(){ 6 jQuery('a.pakb-like-btn').click(function(){ 7 response_div = jQuery(this).parent().parent(); 8 jQuery.ajax({ 9 url : PAKB.base_url, 10 data : {'pakb_vote_like':jQuery(this).attr('post_id')}, 11 beforeSend : function(){ 12 13 }, 14 success : function(data){ 15 response_div.hide().html(data).fadeIn(900); 16 }, 17 complete : function(){ 18 19 } 20 }); 21 }) 22 23 jQuery('a.pakb-dislike-btn').click(function(){ 24 response_div = jQuery(this).parent().parent(); 25 jQuery.ajax({ 26 url : PAKB.base_url, 27 data : {'pakb_vote_dislike':jQuery(this).attr('post_id')}, 28 beforeSend : function(){ 29 30 }, 31 success : function(data){ 32 response_div.hide().html(data).fadeIn(900); 33 }, 34 complete : function(){ 35 36 } 37 }); 38 }) 39 40 jQuery('#kb-s.autosuggest').autocomplete({ 41 serviceUrl : PAKB.ajaxurl, 42 params : {'action':'search_title'}, 43 minChars : 1, 44 maxHeight : 450, 45 onSelect : function(suggestion) { 46 window.location = suggestion.url; 47 } 48 }); 49 50}) 51 52jQuery(document).ready(function ($) { 53 54 $('p.likes').tooltip({ 55 'placement' : 'top' 56 }); 57 58 $('p.dislikes').tooltip({ 59 'placement' : 'top' 60 }); 61 62}); 63
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.