PageSourceSearch

https://www.b4x.com/js/xf2_headers.js

js b4x.com collected 2026-09-24 09:18:23 UTC 1,395 bytes, 50 lines download raw bytes

1
2$(document).ready(function($){
3	$("#searchform").submit(function()
4	{
5	 $(this).find(":input").filter(function(){ return !this.value; }).attr("disabled", "disabled");
6      return true; // ensure form still submits
7	});
8	$( "#search" ).autocomplete({
9		source: function( request, response ) {
10			$.ajax({
11				url: "https://b4x.com:7778/?ac=" + (document.URL.indexOf("forum") > -1),
12				dataType: "jsonp",
13				data: {
14					name_startsWith: request.term
15				},
16				success: function( data ) {
17					response( 
18					$.map( data.res, function( item ) {
19						return {
20							label: item.text,
21							value: item.link
22						}
23					}));
24				}
25			});
26		},
27		position: { my: "right top", at: "right+30 bottom+5", collision: "flip" },
28		delay: 150,
29		minLength: 2,
30		select: function( event, ui ) {
31			window.location.href = ui.item.value;
32			event.preventDefault(); 
33		},
34		focus: function (event, ui) {
35			event.preventDefault(); 
36		}
37		
38	}).data( "ui-autocomplete" )._renderItem = function( ul, item ) {
39            return $( "<li></li>" )
40                .data( "item.autocomplete", item )
41                .append( "<a>"+ item.label + "</a>" ) 
42                .appendTo( ul );
43        }
44});
45
46function changeImage(id, image) {
47	newImage = "url(" + root + "new_images/" + image + ")";
48	document.getElementById(id).style.backgroundImage = newImage;
49}
50

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.