1/* 2 * CircleType 0.34 3 * Peter Hrynkow 4 * Copyright 2013, Licensed GPL & MIT 5 * 6 */ 7;(function ($) { 8 $.fn.circleType = function (options) { 9 10 var settings = { 11 dir: 1, 12 position: 'relative' 13 }; 14 if (typeof ($.fn.lettering) !== 'function') { 15 console.log('Lettering.js is required'); 16 return; 17 } 18 return this.each(function () { 19 20 if (options) { 21 $.extend(settings, options); 22 } 23 var elem = this, 24 delta = (180 / Math.PI), 25 ch = parseInt($(elem).css('line-height'), 10), 26 fs = parseInt($(elem).css('font-size'), 10), 27 txt = elem.innerHTML.replace(/^\s+|\s+$/g, '').replace(/\s/g, ' '), 28 letters, 29 center; 30 31 elem.innerHTML = txt 32 $(elem).lettering(); 33 34 elem.style.position = settings.position; 35 36 letters = elem.getElementsByTagName('span'); 37 center = Math.floor(letters.length / 2) 38 39 }); 40 }; 41})(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.