PageSourceSearch

https://meerblick.io/static/js/lg.js

js meerblick.io collected 2026-10-08 17:24:10 UTC 2,428 bytes, 105 lines download raw bytes

1
2
3$(window).unload(function(){
4		$(".progress").show()
5		});
6
7function change_url(loc){
8	$(".progress").show(0, function(){
9		document.location = loc;
10	});
11}
12
13function reload(){
14	loc = "/" + request_type + "/" + hosts + "/" + proto;
15	if (request_type != "summary" ){
16		if( request_args != undefined && request_args != ""){
17			loc = loc + "?q=" + escape(request_args);
18			change_url(loc)
19		} 
20	} else {
21		change_url(loc)
22	}
23}
24function update_view(){
25	if (request_type == "summary")
26		$(".navbar-search").hide();
27	else
28		$(".navbar-search").show();
29
30	$(".navbar li").removeClass('active');
31
32	$(".proto a#"+proto).parent().addClass('active');
33	$(".hosts a[id='"+hosts+"']").parent().addClass('active');
34	$(".request_type a#"+request_type).parent().addClass('active');
35
36	command = $(".request_type a#"+request_type).text().split("...");
37	$(".request_type a:first").html(command[0] + '<b class="caret"></b>');
38	if (command[1] != undefined ) {
39		$(".navbar li:last").html("&nbsp;&nbsp;"+command[1]);
40	} else {
41		$(".navbar li:last").html("");
42	}
43	
44	request_args = $(".request_args").val();
45	$(".request_args").focus();
46	$(".request_args").select();
47}
48$(function(){
49		$(".history a").click(function (event){
50			event.preventDefault();
51			change_url(this.href)
52		});
53		$(".modal .modal-footer .btn").click(function(){
54			$(".modal").modal('hide'); 
55		});
56		$("a.whois").click(function (event){
57			event.preventDefault();
58			link = $(this).attr('href');
59			$.getJSON(link, function(data) {
60				$(".modal h3").html(data.title);
61			        $(".modal .modal-body > p").html(data.output);
62				$(".modal").modal('show');
63			});
64		});
65
66		$(".history a").click(function (){
67			$(".history li").removeClass("active")
68			$(this).parent().addClass("active")
69		});
70
71
72		$(".hosts a").click(function(){
73			hosts = $(this).attr('id');
74			update_view();
75			reload();
76			});
77		$(".proto a").click(function(){
78			proto = $(this).attr('id');
79			update_view();
80			reload();
81			});
82		$(".request_type ul a").click(function(){
83			if ( request_type.split("_")[0] != $(this).attr('id').split("_")[0] ){
84				request_args = ""
85				$(".request_args").val("");
86			}
87			request_type = $(this).attr('id');
88			update_view();
89			reload();
90			});
91		$("form").submit(function(){
92				update_view();
93				reload();
94				});
95		$('.request_args').val(request_args);
96		update_view();
97
98	t = $('.table-summary')
99    if (t) t.dataTable( {
100        "bPaginate": false,
101	} );
102
103});
104
105

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.