PageSourceSearch

https://keelesu.com/pagestylesheet/search/scripts.js?v=48

js keelesu.com collected 2026-10-02 19:06:54 UTC 1,438 bytes, 37 lines download raw bytes

1$(document).ready(function() {
2// $("#msl-content-area").find("#search_main").eq(1).hide();
3$("#ctl00_searchcriteria_cblSections tr:last").remove();
4$("#ctl00_searchcriteria_cblSections tr:last").remove();
5$('#search-results h2').each(function() {
6label = $(this).text();
7if (label === 'Website Content') {label = 'Pages';}
8if (label === 'Organisations') {label = 'Societies, Clubs, Courses';}
9labelID = $(this).parent().attr('class');
10if (label == 'Pages' || label == 'News' || label == 'Events' || label == 'Societies, Clubs, Courses' ) {
11$('ol#search-tabs').prepend('<li id="' + labelID + '">' + label + '</li>');
12}
13else {
14$('ol#search-tabs').append('<li id="' + labelID + '">' + label + '</li>');
15}
16$(this).remove();
17});
18$('ol#search-tabs li').click(function() {
19labelIndex = $(this).attr('ID');
20$('#search-results > div').hide();
21$('.' + labelIndex).show();
22$('ol#search-tabs li').removeClass('active-tab');
23$(this).addClass('active-tab');
24});
25
26$('#search-results > div').hide();
27$('ol#search-tabs li:eq(0)').addClass('active-tab');
28// Get ID of the first tab so we can identify which panel to show
29initialContent = $('ol#search-tabs li:eq(0)').attr('id');
30$('#search-results > div.' + initialContent).show();
31
32searchterm = $('div[role="search"] input[type="text"]').val();
33if (searchterm.length) {
34$('#search-term').html('Search Term: <span class="term">' + searchterm + '</span>').show();
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.