PageSourceSearch

https://tyburnconvent.org.uk/js/cms.js?v=3.1

js tyburnconvent.org.uk collected 2026-10-02 07:26:29 UTC 1,776 bytes, 83 lines download raw bytes

1$(document).ready(function() {
2	
3	$('.edit-page').live('click', function() {
4			var thisURL = $(this).attr('rel');
5		 	$('#page').load('clever/inline.php?pageID='+thisURL);		 		 	
6	});
7	
8	$('.new-page').live('click', function() {
9			var thisURL = $(this).attr('rel');
10		 	$('#page').load('clever/create.php');
11	});	
12	
13	$('#cms-cancel').live('click', function() {
14		 	var thisURL = $(this).attr('rel');
15	 		window.location = "site.php?id=" + thisURL;
16	 		return false;
17	});
18	
19	$(".iframe").fancybox({
20		'width'				: '75%',
21		'height'			: '95%',
22        'autoScale'     	: true,
23        'transitionIn'		: 'none',
24		'transitionOut'		: 'none',
25		'type'				: 'iframe'
26	});
27
28	if(window.location.href.indexOf("status=delete") > -1) {
29		$('#page').html("<p>Page was deleted</p>");
30  	}
31
32
33  putClassOnElementsWithIframes();
34
35  putClassOnElementsWithTD();
36
37  mobileNavigation();
38
39  removeTheEmptyLinkFromNav();
40});
41
42function putClassOnElementsWithIframes() {
43	var iframes = jQuery('iframe');
44
45	iframes.each(function() {
46		var iframe_parent = jQuery(this).parent();
47
48		if( iframe_parent.hasClass('videoplayer') ) {
49
50		}else {
51			iframe_parent.addClass('has-iframe');
52		}
53	});
54}
55
56function putClassOnElementsWithTD() {
57	var td = jQuery('.gallery-image-td');
58
59	td.each(function() {
60		var table_parent = jQuery(this).closest('table');
61
62		table_parent.addClass('has-td-full');
63
64		
65	});
66}
67
68function mobileNavigation() {
69	jQuery('#mobile-nav-btn').click(function() {
70		jQuery('#header').toggleClass('active-menu');
71		jQuery('body').toggleClass('no-scroll');
72	});
73}
74
75function removeTheEmptyLinkFromNav() {
76	var item_no_link = jQuery('#header .topnav li a[href="#"]');
77
78	if( item_no_link.length > 0 ) {
79		item_no_link.each(function() {
80			jQuery(this).parent('li').addClass('no-link');
81		});
82	}
83}

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.