PageSourceSearch

https://seance.ru/wp-content/plugins/alphabetic-pagination/js/scripts.js?ver=5.9.3

js seance.ru collected 2026-10-02 03:03:55 UTC 3,189 bytes, 119 lines download raw bytes

1// JavaScript Document.
2function ap_reset_items_list_javascript_func(){
3	//console.log('Items list refreshed!');
4}
5function ap_item_selected_javascript_func(){
6	//console.log('Item selected from the list!');
7}
8jQuery(document).ready(function($){
9	
10	$('.ap_allowed_pages').on('change', function(){
11		var num = $(this).val();
12		var obj = $('input[name="ap_query['+num+']"]');
13		obj.parent().find('input[type="number"]').attr('class', 'hide');
14		obj.removeAttr('class');
15		
16		obj.parent().find('select.ap_post_types').hide();
17		obj.parent().find('select#ap_post_types_'+num).show();
18		//console.log(num);
19		//console.log(obj);
20	});
21
22								
23	var ap_methods = {
24		load_sub_items: function(type){
25			
26			$.post(ajaxurl, {action: 'ap_tax_types',"type":type}, function(response) {
27				response = jQuery.parseJSON(response);	
28																			
29				if(response.msg){
30					var data = response.data;
31					var selected = response.selected;
32					var selected_x = response.selected_x;
33					var items = '';
34					var items_x = '';
35					//console.log(typeof selected=='object');
36					//console.log(typeof selected_x=='boolean');
37					$.each(data, function(i, v){
38						var is_selected = false;	
39						var is_selected_x = false;											   
40						if(typeof selected=='object'){
41							$.each(selected, function(is, vs){
42								//console.log(is+' > '+vs+' > '+i+' > '+v);								
43								if(vs==i)
44								is_selected = 'selected="selected"';							
45							});
46						}
47						if(typeof selected_x=='object'){
48							$.each(selected_x, function(is, vs){	
49							//console.log(is+' > '+vs+' > '+i+' > '+v);							
50								if(vs==i)
51								is_selected_x = 'selected="selected"';							
52							});
53						}
54						
55						items+='<option value="'+i+'" '+is_selected+'>'+(i==0?v+'Include':v)+'</option>';
56						
57						items_x+='<option value="'+i+'" '+is_selected_x+'>'+(i==0?v+'Exclude':v)+'</option>';
58					
59						
60					});
61					//return;
62					$('#tax_types_selector').html(items);
63					$('#tax_types_selector_x').html(items_x);
64					$('div.ap_tax_types').show();
65
66				}																
67				
68			});
69		}
70	}
71	
72	
73	$('#tax_selector').change(function(){
74		//console.log($(this));
75		var type = $(this).val();	
76			
77		if(type!='')
78		ap_methods.load_sub_items(type);
79
80	  
81   	});
82	
83	$('div.ap_shortcode code, div.ap_shortcode div').click(function(){
84		
85		var o = $( "div.ap_shortcode.hide > a" );
86		
87		
88	});
89	
90	
91	$('.ap_slide_close').click(function(){
92		 $('.ap_video_slide').hide();
93	});
94	
95	setTimeout(function(){ jQuery('#tax_selector').change(); jQuery('.ap_allowed_pages').change(); }, 3000);
96	
97	$('#ap_lang_selector').on('change', function(){
98		var val = $(this).val().toLowerCase();
99		var sel = 'ul.ap_pagination';
100		$(sel).hide();
101
102		$(sel+'.ap_'+val).fadeIn();
103	});
104});
105function disable_ap_letters(obj){
106	//console.log(obj);
107	//alert(obj);
108	//alert(jQuery(obj).length);
109	if(jQuery(obj).length>0){
110		var obj = jQuery(obj);
111		
112		var letter = obj.find('a').html();
113		//alert(letter);
114		//console.log(letter);
115		if(typeof letter!='undefined'){
116			obj.html('<small>'+letter+'</small>'); 
117		}
118	}
119}

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.