PageSourceSearch

http://krasnodon.net/templates/Gemini/js/libs.js

js krasnodon.net collected 2026-10-02 22:58:02 UTC 1,533 bytes, 72 lines download raw bytes

1$.fn.Button=function(sel)
2{
3	var closed=true,
4		th=this;
5	$(sel).hide();
6	$(this).removeClass('selected').click(function(){
7		$(sel).toggle("fast");
8		$(this).toggleClass("selected");
9		closed=!closed;
10		return false;
11	});
12	$(document).click(function(e){
13		if(closed)
14			return;
15		var target=e.target||e.srcElement;
16		while(target)
17		{
18			var ret=false;
19			$(sel).each(function(){
20				if(ret=target==this)
21					return false;
22			});
23			if(ret)
24				return;
25			target=target.parentNode;
26		}
27		$(sel).hide('fast');
28		$(th).removeClass('selected');
29		closed=true;
30	});
31	return this;
32}
33
34$.fn.UlMenu=function()
35{
36	$.each(this,function(){
37	$("li.submenu",this).hide();
38		$("li:has(.sublnk)",this).click(function(){
39			$(this).toggleClass("selected").next("li.submenu").slideToggle(300).css("display",function(){
40					if($(this).css("display")=="list-item")
41				return "block";
42			});
43		});
44	});
45return this;
46}
47
48$(function() {
49
50	$( "#logindialog" ).dialog({
51		autoOpen: false,
52		width: 300
53	});
54
55	$('#loginlink').click(function(){
56		$('#logindialog').dialog('open');
57		return false;
58	});
59});
60
61$(document).ready(function(){
62	var tabContainers = $('#tabbs .tabcont');
63		tabContainers.hide().filter(':first').show();
64								
65		$('#tabbs .tabmenu a').click(function () {
66			tabContainers.hide();
67			tabContainers.filter(this.hash).show();
68			$('#tabbs .tabmenu a').removeClass('selected');
69			$(this).addClass('selected');
70			return false;
71		}).filter(':first').click();
72});

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.