PageSourceSearch

https://newsk.net/js/site_search_btn.js?1577682295

js newsk.net collected 2026-10-08 20:39:58 UTC 580 bytes, 35 lines download raw bytes

1var SITE_SEARCH_BTN = function(){
2	var code;
3	var data = {};
4	var $container;
5	var $button;
6	var $input;
7	var spare_width = 0;
8
9	var init = function(c,d){
10		code = c;
11		data = d;
12		$container = $('#'+c);
13		$button = $container.find('._search_button');
14		$input = $container.find('._input');
15
16		run();
17	};
18
19	var run = function(){
20		spare_width = 2;
21		var width = Math.floor($button.outerWidth(true)) + spare_width;
22		$input.css({
23			'width' : 'calc(100% - '+width+'px)'
24		});
25	};
26
27	return {
28		'init': function (c, d) {
29			init(c, d);
30		},
31		'run': function () {
32			run();
33		}
34	}
35};

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.