PageSourceSearch

https://radiowigwam.co.uk/wp-content/plugins/wp-autosearch/assert/js/ajax-script.js?ver=7.0.3

js radiowigwam.co.uk collected 2026-10-01 11:57:55 UTC 2,210 bytes, 73 lines download raw bytes

1 /**
2 * Netflixtech Wordpress Autosearch Suggest Ajax Script
3 *
4 * @package    	WP Autosearch
5 * @author     	Netflixtech <[email protected]>
6 * @license     #
7 * @link		#
8  * @version    1.0
9 */
10 
11// JavaScript document
12(function($) {
13	$(document).ready(function() {
14	$(function() {
15		$(".wp_autosearch_input").cn_autocomplete(wp_autosearch_config.ajax_url, {
16			width: $(".wp_autosearch_form_wrapper").outerWidth()-2,					
17			scroll: false,
18			minChars: wp_autosearch_config.min_chars,
19			delay: wp_autosearch_config.ajax_delay,
20			cacheLength: wp_autosearch_config.cache_length,
21			highlight : false,
22			matchSubset: false,
23                        loadingClass: "wp_autosearch_indicator",
24                        resultsClass: "wp_autosearch_suggestions",
25			max: 1000,
26			selectFirst: false,
27			extraParams: {action: "wi_get_search_results", security: wp_autosearch_config.nonce},
28			parse: function (data) {
29				this.width = $(".wp_autosearch_form_wrapper").outerWidth()-2;
30				var parsed = [];
31				var rows = data.split("|||");
32				for (var i=0; i < rows.length; i++) {
33					var row = $.trim(rows[i]);
34					if (row) {
35						parsed[parsed.length] = {
36							data: row
37						};
38					}
39				}
40				return parsed;
41			},
42			formatItem: function(item) {				
43				return item;
44			}
45			}).result(function(e, item) {
46				var url = $(item).filter("a").attr("href");
47				var title = $(item).find(".searchheading").text();
48                if(title.length == 0){
49					title = $(item).data("q");
50				}
51                $(".wp_autosearch_input").val(title);
52				if(typeof url !== "undefined"){
53					location.href = $(item).filter("a").attr("href");
54				}
55			});						
56		});
57	});
58})(jQuery);
59
60(function($) {
61$(document).ready(function() {
62		$(function() {
63			$(".wp_autosearch_submit").click(function(e){
64				e.preventDefault();
65				var $this = $(this);
66				var full_search_url = $this.closest("#wizardinfosys_autosearch_form").attr("full_search_url");
67				var keyword = $this.siblings(".wp_autosearch_input").val();
68				full_search_url = full_search_url.replace("%q%", keyword);
69				location.href = full_search_url;
70			});
71		});
72	});
73})(jQuery);

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.