1/** 2 * functions.js 3 * 4 * Various additional functions. 5 * 6 * v.2.0.5 7 */ 8 9(function( $ ) { 'use strict'; 10 11 /* Accessibility enhancements 12 * 13 * Tip25 - Mark the links that will open in a new window with special icon, usually these are the links to external resources. 14 */ 15 $( '.entry-content a[target="_blank"]' ).append( '<span class="icon-webfont fa-external-link" aria-hidden="true"></span><span class="screen-reader-text">' + tinyframeworkAdditionalScripts.newWindow + '</span>' ); 16 17 // Remove title attributes when the title attribute is the same as the link text 18 $('*').each( function () { 19 var self = $(this); 20 var theTitle = $.trim( self.attr( 'title' ) ); 21 var theText = $.trim( self.text() ); 22 if ( theTitle === theText ) { 23 self.removeAttr( 'title' ); 24 } 25 } ); 26 27} )(jQuery);
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.