PageSourceSearch

https://www.schoolofsound.co.uk/wp-content/plugins/sos-mods/assets/js/sos.js?ver=1786527750

js schoolofsound.co.uk collected 2026-10-02 11:58:05 UTC 1,044 bytes, 57 lines download raw bytes

1jQuery(function($) {
2
3	$('.read-grid-item').on('click', function( event ) {
4
5		event.preventDefault();
6
7		var id = $(this).attr('id');
8
9		var data = {
10			'id'       : id,
11			'action'   : 'sos_mods_read_pdf',
12			'security' : params.sos_mods_nonce,
13		};
14
15		$.post( params.ajax_url, data, function( response ) {
16			if ( response.success ) {
17				$( response.data ).appendTo('body').modal();
18			}
19		});
20
21	});
22
23	$('.search-grid-item a').on('click', function( event ) {
24
25		event.preventDefault();
26
27		var type = $(this).parents('.e-loop-item').find('.elementor-shortcode').text();
28		var link = $(this).attr('href');
29
30		if( type == 'Read' ) {
31
32			var id = $(this).parents('.elementor-widget-theme-post-title').attr('id');
33
34			var data = {
35				'id'       : id,
36				'action'   : 'sos_mods_read_pdf',
37				'security' : params.sos_mods_nonce,
38			};
39
40			$.post( params.ajax_url, data, function( response ) {
41				if ( response.success ) {
42					$( response.data ).appendTo('body').modal();
43				}
44			});
45
46		} else {
47
48			window.location = link;
49
50		}
51
52	});
53
54
55
56
57});

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.