PageSourceSearch

https://www.stjohnschelsea.org/Images/Content/2414/Templates/56328/ContentPage.js

js stjohnschelsea.org collected 2026-10-09 01:28:44 UTC 1,900 bytes, 56 lines download raw bytes

1$(document).ready(function() 
2{ 'use strict';
3 
4var BodyTag = $('body');
5var SC = BodyTag.find('section.slice_content_page');
6var MC = SC.find('div.main-content');
7 
8// Check for duplicate links in side-bar Group Nav
9var SideBarNav = SC.find('aside.sidebar nav table.group-nav');
10var TopLink = SideBarNav.find('table.boxout_header a').attr('href');
11var NextLink = SideBarNav.find('table.boxout_contents div.group_nav_sibling:first-child');
12 if (TopLink === NextLink.children('a').attr('href')){
13 	NextLink.hide();
14 }
15 
16// Code to fix group-notes area, and replace ? with a nice icon.
17var IFGCF = MC.find('div#GroupNotesEnclosingDiv table#groupnotes_dgGroupNotes');
18var TDs = IFGCF.find('td:first-child');
19TDs.each(function(){
20	var TD = $(this);
21	var Node = TD.contents().eq(2); // (.contents() gets all the nodes including text ones.)
22	if (Node.text().trim() === ':'){
23		Node.remove();
24	} 
25	var A = TD.children('a');
26	if( (A.length === 1) && (A.text() === '(?)') ) {
27		A.html('<img src="/Images/Content/0/Templates/50870/IconInfo.png" alt="Info Icon">'); // slot in font icon.
28		A.addClass('HelpIcon');
29	}
30});
31 
32// Code to deal with new Events code, released December 2021
33 var SPC = SC.find('div.systemPageContent');
34 if(SPC.length === 1){
35   if(SPC.find('iframe#ifrReg').length === 1){
36     SPC.addClass('main-content');
37     var MCs = SC.find('div.main-content');
38     if(MCs.length === 2){MCs.eq(0).hide();}
39   }
40 }
41 
42 // We have to wait until the BX code has run.
43 $(window).load(function () {
44	var BodyTag = $('body');
45	var ContentArea = BodyTag.find('section.slice_content_page div.main-content');
46    var BXs = ContentArea.find('div.bx-wrapper');
47	BXs.each(function(){
48		var T = $(this);
49		var BC = T.find('div.bx-controls');
50		if(BC.find('a.bx-pager-link').length < 2){
51			BC.hide();
52		}
53	});
54   });
55                              
56});

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.