1/** 2 * @author Paul Chan / KF Software House 3 * http://www.kfsoft.info 4 * 5 * Version 0.5 6 * Copyright (c) 2010 KF Software House 7 * 8 * Licensed under the MIT license: 9 * http://www.opensource.org/licenses/mit-license.php 10 * 11 */ 12 13(function($) { 14 15 var _options = null; 16 17 jQuery.fn.MyQRCode = function(options) { 18 _options = $.extend({}, $.fn.MyQRCode.defaults, options); 19 20 return this.each(function() 21 { 22 var codebase = "https://chart.googleapis.com/chart?chs={size}&cht=qr&chl={content}&choe={encoding}"; 23 var mycode = codebase.replace(/{size}/g, _options.size); 24 mycode = mycode.replace(/{content}/g, escape(_options.content)); 25 mycode = mycode.replace(/{encoding}/g, _options.encoding); 26 //$("#genQrCode").remove(); 27 $(this).append("<img src='"+mycode+"'>"); 28 }); 29 } 30 31 //default values 32 jQuery.fn.MyQRCode.defaults = { 33 encoding:"UTF-8", 34 content: window.location, 35 size:"150x150" 36 }; 37})(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.