vendor: 2,686 bytes, lines 1-99
1/*!--------------------------------------------------------------------------* 2 * 3 * jquery.heightLine.js 1.0.0 4 * 5 * MIT-style license. 6 * 7 * 2013 Kazuma Nishihata 8 * http://www.to-r.net 9 * 10 *--------------------------------------------------------------------------*/ 11(function (factory) { 12 if(typeof module === "object" && typeof module.exports === "object") { 13 factory(require("jquery"), window, document); 14 } else { 15 factory(jQuery, window, document); 16 } 17}(function($, window, document, undefined) { 18 $.fn.heightLine = function(){ 19 var target = this,fontSizeChangeTimer,windowResizeId= Math.random(); 20 var heightLineObj = { 21 op : { 22 "maxWidth" : 10000, 23 "minWidth" : 0, 24 "fontSizeCheck" : false 25 }, 26 setOption : function(op){ 27 this.op = $.extend(this.op,op); 28 }, 29 destroy : function(){ 30 target.css("height",""); 31 }, 32 create : function(op){ 33 var self = this, 34 maxHeight = 0, 35 windowWidth = $(window).width(); 36 self.setOption(op); 37 if( windowWidth<=self.op.maxWidth && windowWidth>=self.op.minWidth ){ 38 target.each(function(){ 39 if($(this).outerHeight()>maxHeight){ 40 maxHeight = $(this).outerHeight(); 41 } 42 }).each(function(){ 43 var height = maxHeight 44 - parseInt($(this).css("padding-top")) 45 - parseInt($(this).css("padding-bottom")); 46 $(this).height(height); 47 }); 48 } 49 }, 50 refresh : function(op){ 51 this.destroy(); 52 this.create(op); 53 }, 54 removeEvent :function(){ 55 $(window).off("resize."+windowResizeId); 56 target.off("destroy refresh"); 57 clearInterval(fontSizeChangeTimer); 58 } 59 } 60 if(typeof arguments[0] === "string" && arguments[0] === "destroy"){ 61 target.trigger("destroy"); 62 }else if(typeof arguments[0] === "string" && arguments[0] === "refresh"){ 63 target.trigger("refresh"); 64 }else{ 65 heightLineObj["create"](arguments[0]); 66 67 $(window).on("resize."+windowResizeId,function(){ 68 heightLineObj["refresh"](); 69 }); 70 71 target.on("destroy",function(){ 72 heightLineObj["removeEvent"](); 73 heightLineObj["destroy"](); 74 }).on("refresh",function(){ 75 heightLineObj["refresh"](); 76 }); 77 78 if(heightLineObj.op.fontSizeCheck){ 79 80 if($("#fontSizeChange").length<=0){ 81 var fontSizeChange = $("<span id='fontSizeChange'></span>").css({ 82 width:0, 83 height:"1em", 84 position:"absolute", 85 left:0, 86 top:0 87 }).appendTo("body"); 88 } 89 var defaultFontSize = $("#fontSizeChange").height(); 90 fontSizeChangeTimer = setInterval(function(){ 91 if(defaultFontSize != $("#fontSizeChange").height()){ 92 heightLineObj["refresh"](); 93 } 94 },100); 95 } 96 } 97 return target; 98 } 99}));
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.