PageSourceSearch

https://worthwhile.org.uk/files/theme/custom.js

js worthwhile.org.uk collected 2026-10-04 06:53:32 UTC 1,304 bytes, 37 lines download raw bytes

1jQuery(function() {
2	var $ = jQuery;
3
4    $('#wsite-header-search-form input').css({'width': '0px', 'display': 'none'});
5	$('#wsite-header-search-form').append( '<span class="wsite-search-cover"></span>');
6	$('#header .wsite-search').css('border', '1px transparent');
7
8	$('.wsite-search-cover').live('click', function(e){
9		e.preventDefault();
10		$('.wsite-menu-default').fadeOut('slow', function() {
11			$('#header .wsite-search').css('border', '1px solid #fff');
12			$('#wsite-header-search-form input').css({'display': 'block'});
13			$('#wsite-header-search-form input').animate({width: '170px'}, 1000, function() {
14				$(this).focus();
15				$('.wsite-search-cover').remove();
16			});
17		});
18	});
19
20
21	$('#wsite-header-search-form input').live('blur', function(e) {
22		$('#wsite-header-search-form input').animate({width: '0px'}, 1000, function() {
23			$(this).css({'display': 'none'});
24			$('#header .wsite-search').css('border', '1px transparent');
25			$('.wsite-menu-default').fadeIn('slow');
26			$('#wsite-header-search-form').append( '<span class="wsite-search-cover"></span>');
27		});
28	});
29
30	$('#skip-to-content').on('click', function(e) {
31		e.preventDefault();
32		var $content = $('[name="' + $(this).attr('href').slice(1) + '"]');
33		$('body,html').animate({
34			scrollTop: $content.offset().top
35		});
36	});
37});

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.