PageSourceSearch

https://schneiders.ca/wp-content/plugins/schneiders-blocks/inc/utils/subscript.js?ver=6.7.9

js schneiders.ca collected 2026-09-26 03:42:26 UTC 1,509 bytes, 37 lines download raw bytes

1
2jQuery( document ).ready( function( $ ) {
3	function mlf_filter_special_characters( item, value ) {
4		//Check if there is a special character and replace
5		const symbolCharacter = value;
6		const specialCharacters = [ '®','™','©', '🅪', '℠', 'ᴹᴰ' ];
7		const specialCharactersReplace = [ '<sup class="special-character">®</sup>','<sup>TM</sup>','<sup class="special-character">©</sup>', '<sup>MC</sup>','<supSM</sup>', '<sup>MD</sup>' ];
8		let replacedCharacter = '';
9
10		$( specialCharacters ).each( function( index, specialItem ) {
11			if ( symbolCharacter.indexOf( specialItem ) > -1 ) {
12				replacedCharacter = symbolCharacter.replace( specialItem, specialCharactersReplace[index] );
13			}
14		} );
15
16		//Check if there is a special character using letters and replace
17		const symbolLetter = replacedCharacter.slice( -2 );
18		const specialLetters = [ 'MC', 'TM', 'SM', 'MD' ];
19		const specialLettersReplace = [ '<sup>MC</sup>','<sup>TM</sup>','<sup>SM</sup>', '<sup>MD</sup>' ];
20		let replacedSymbol = '';
21
22		$( specialLetters ).each( function( index, specialItem ) {
23			if ( symbolLetter.indexOf( specialItem ) > -1 ) {
24				replacedSymbol = replacedCharacter.replace( specialItem, specialLettersReplace[index] );
25			}
26		} );
27
28		if ( replacedSymbol || replacedCharacter ) {
29			item.html( replacedSymbol ? replacedCharacter.slice( 0, -2 ) . replacedSymbol : replacedCharacter );
30		}
31	}
32
33	$( '.subscript' ).each( function() {
34		mlf_filter_special_characters( $( this ), $( this ).text() );
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.