PageSourceSearch

https://robertbparker.net/webassist/plugins/side_menu/menu.js

js robertbparker.net collected 2026-10-02 10:18:26 UTC 1,495 bytes, 60 lines download raw bytes

1window.addEvent('domready', function() {
2	sidemenu(document.id('side-menu'));
3	//paginationLinks();
4});
5
6window.slides = {};
7window.counter = 0;
8window.sidemenu = function(base) {
9	if(base) {
10		base.getElements('> li').each(function(category) {
11			var ul = category.getElement('ul');
12			if(ul) {	
13				var a = category.getElement('a');			
14				var h = a.getHeight();
15				
16				ul.getParent().setStyle('position', 'relative');
17				ul.getParent().adopt(new Element('span', {
18					'text': '+',
19					'styles': {
20						'position': 'absolute',
21						'top': ((h-14)/2) + 'px',
22						'right': '1px',
23						'padding-left': '5px',
24						'padding-right': '4px',
25						'font-size': '14px',
26						'cursor': 'pointer',
27						'color': a.getStyle('color')
28					},
29					'events': {
30						'click': function() {
31							this.set('html', this.get('html') == '+' ? '-' : '+');
32							window.slides[ul.get('id')].toggle();
33						}
34					}
35				}));
36				
37				window.slides[ul.get('id')] = new Fx.Slide(ul, {
38					resetHeight: true
39				});
40				if (!document.id(ul.get('id')).get("class") || document.id(ul.get('id')).get("class").indexOf("is_open") < 0) window.slides[ul.get('id')].hide();
41
42				window.sidemenu(ul);
43			}
44			else {
45				
46			}
47		});
48	}
49};
50
51window.paginationLinks = function() {
52	//console.log($$('.pagination .pages a'));
53	$$('.pagination .pages a').each(function(a) {
54		a.addEvent('click', function() {
55			document.id('page').load(this.get('href'));
56			this.addClass('selected');
57			return false;
58		});
59	});
60};

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.