PageSourceSearch

https://www.staloysiusglasgow.org/wp-content/plugins/insert-pages/js/widget.js?ver=20221115

js staloysiusglasgow.org collected 2026-10-03 00:31:31 UTC 1,079 bytes, 31 lines download raw bytes

1jQuery( document ).ready( function ( $ ) {
2	// Enable/Disable template dropdown based on display choice in widget options.
3	$( document ).on( 'change', '.insertpage-format-select', function() {
4		if ( $( this ).val() == 'template' ) {
5			$( '.insertpage-template-select' ).removeAttr( 'disabled' );
6			$( '.insertpage-template-select' ).show();
7			if ( $( this ).is( ':focus' ) ) {
8				$( '.insertpage-template-select' ).focus();
9			}
10		} else {
11			$( '.insertpage-template-select' ).attr( 'disabled', 'disabled' );
12			$( '.insertpage-template-select' ).hide();
13		}
14
15		if ( $( this ).val() == 'post-thumbnail' ) {
16			$( '.insertpage-size-select' ).removeAttr( 'disabled' );
17			$( '.insertpage-size-select' ).show();
18			if ( $( this ).is( ':focus' ) ) {
19				$( '.insertpage-size-select' ).focus();
20			}
21		} else {
22			$( '.insertpage-size-select' ).attr( 'disabled', 'disabled' );
23			$( '.insertpage-size-select' ).hide();
24		}
25	});
26	$( document ).on( 'widget-updated', function () {
27		$( '.insertpage-format-select' ).change();
28	})
29	$( '.insertpage-format-select' ).change();
30
31});

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.