1/* 2Plugin: Initial Letter v1.0 3 4 Created: April, 29 2010 5 Author: Benjamin Gandhi-Shepard 6 License: Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl.html 9 10Description: http://812studio.com/initial-letter-a-jquery-plugin-for-making-drop-caps-and-more/ 11*/ 12 13(function ($) { 14 15 $.fn.initialLetter = function (options) { 16 17 var $options = $.extend({}, $.fn.initialLetter.defaults, options); 18 19 return this.each(function () { 20 21 var $initialLetter = $options.initialLetter, 22 $content = $(this).html(); 23 24 $(this).html($content.replace(/^([A-Za-z0-9])/g, '<span class=' + $initialLetter + '>$1</span>')); 25 26 $.fn.initialLetter.defaults = {initialLetter : 'dropped'}; 27 28 }); 29 30 }; 31 32}(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.