PageSourceSearch

https://watt-logic.com/wp-content/plugins/advanced-categories-widget/js/jquery.widget.js?ver=2.4.1

js watt-logic.com collected 2026-10-02 08:06:05 UTC 2,503 bytes, 81 lines download raw bytes

1/**
2	The Categories widget replaces the default WordPress Categories widget. This version gives total
3	control over the output to the user by allowing the input of all the arguments typically seen
4	in the wp_list_categories() function.
5
6	Copyright 2013 zourbuth (email : [email protected])
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License, version 2, as 
10    published by the Free Software Foundation.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 */
21
22jQuery(document).ready(function($) {
23	
24	// Ajax load posts function
25	$("a.cat-load-posts").click(function() {
26		
27		var t, c, p, i;
28		
29		t = $(this); 					
30		i = t.attr("data-id");		
31		p = t.attr("data-page") ? t.attr("data-page") : 1;		
32		c = t.attr("data-cat");
33		
34		t.after("<span class='ac-loading'>Loading...</span>").fadeIn();
35		
36		$.post( ac.ajaxurl, { action: ac.action, id: i, category: c, page: p, nonce : ac.nonce }, function(data){
37			if( ! data ) {
38				t.remove();
39				return;
40			}
41			
42			p++;
43			$(".ac-loading").remove();
44			t.prev().append(data).fadeIn();
45			t.attr("data-page", p);			
46		});
47		
48		return false;
49	});
50	
51	// Category icon hover function
52	$("a.acw-image img").live("mouseover", function(){
53		$(this).stop().animate({opacity:0.75},400);
54	}).live("mouseout", function(){
55		$(this).stop().animate({opacity:1},400);
56	});
57	
58	$(".substring a").live("mouseover", function(){
59		$(".ellipses", this).hide();
60		$(".moretitle", this).show();
61	}).live("mouseout", function(){
62		$(".ellipses", this).show();
63		$(".moretitle", this).hide();
64	});
65	
66	$(".substring").each(function() {
67		var c, s, html, a, subs, content;
68		subs = $(this).attr("data-substring");
69
70		$(this).find("a.acw-post-title").each(function() {			
71			content = $(this).html();	
72			if ( content.length > subs ) {
73				c = content.substr(0, subs);
74				s = content.substr(subs , content.length - subs);
75				html = c + '<span class="ellipses">...</span><span class="moretitle">'+s+'&nbsp;</span>';
76				$(this).html(html);
77				$(".moretitle").hide();
78			}
79		});	
80	});
81});

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.