PageSourceSearch

https://www.diariovasco.com/contentfactory/post/wp-content/themes/cms-native/js/keywords.js

js diariovasco.com collected 2026-09-24 08:46:41 UTC 1,263 bytes, 46 lines download raw bytes

1jQuery(document).ready(function(){
2 jQuery('input.button.keywordadd').click(function() {
3		var inserted = jQuery("input#keywordsinput").val();
4		
5		if(	inserted === undefined || 0 === inserted.length )
6			var selected = jQuery("input[name='keywords']").val();
7		
8		if(!jQuery("input[name='keywords']").val())
9			var selected = jQuery("select#keywords").val();			
10		
11		if(inserted)
12			var selected = jQuery("input#keywordsinput").val();
13		
14		// jQuery( "'<li><a class='ntdelbutton' data-id='"+selected+"'>X</a>&nbsp;"+selected+"</li>'" ).appendTo( "#keywordsDiv" );
15		jQuery('<li><a class="ntdelbutton" data-id="'+selected+'">X</a>&nbsp;'+selected+'</li>').appendTo('#keywordsDiv');
16		jQuery("input[name='keywords']").val('');	
17		
18		});
19		
20		jQuery('body').on('click','a.ntdelbutton',function(){
21			jQuery(this).parent().remove();
22		});		
23		
24jQuery('input#publish').click(function() {
25	
26	var keywordArray ="";
27	var count = 1;
28	jQuery("div#keywordsDiv li a").each(function(){
29			if(jQuery("div#keywordsDiv li a").length==count){
30				
31				keywordArray += jQuery(this).data("id");
32				
33			}else{
34				
35				keywordArray += jQuery(this).data("id")+",";
36			}
37			count = count + 1;
38			});
39			
40		 jQuery("input[name='keyword-url']").val(keywordArray);
41		 
42		});
43		
44});
45
46		

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.