PageSourceSearch

https://www.ancoralibri.it/js/ricerca_avanzata_ver3.js

js ancoralibri.it collected 2026-09-26 10:01:18 UTC 1,028 bytes, 42 lines download raw bytes

1$( document ).ready(function() {
2	var delaySelect2AjaxList = (function(){
3		var timer = 0;
4		return function(callback, ms){
5			clearTimeout (timer);
6			timer = setTimeout(callback, ms);
7		};
8	})();
9
10	$(".select2-ajax-libri").select2({
11		allowClear: true,
12		minimumInputLength: 3,
13
14		query: function (query) {
15			$('.select2-drop').removeClass('select2-sleep');
16			var data_query = query.term;
17			var data_type = '';
18			var queryElement = query.element[0];
19			var queryElementAttributes = queryElement.attributes;
20
21			delaySelect2AjaxList(function(){
22				$.post(
23					'/ajax/trova_prodotto.php?term='+ data_query,
24					function(dataArray) {
25						var data = {
26							results: []
27						};
28
29						if ( queryElement.className.match("freeSearch") ) {
30							data.results.push({id:query.term, text:query.term});
31						}
32						for(var i = 0 ; i < dataArray.length; i++) {
33							data.results.push({id:dataArray[i].id, text:dataArray[i].label});
34						};
35						query.callback(data);
36					},
37					'json'
38				);
39			}, 500);
40		},
41	});
42});

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.