1var msTooltip = { 2 3 init: function (target, right, i) { 4 5 tip = target.attr('title'); 6 7 if (!tip || tip == '' || $("#ms-tooltip" + i).length > 0) 8 return false; 9 10 tooltip = $('<div class="ms-tooltip ms-in" id="ms-tooltip' + i + '"></div>'); 11 target.attr('title', ''); 12 tooltip.css('display', 'none').css('max-width', 340).html(tip).appendTo('body'); 13 14 if ($(window).width() < tooltip.outerWidth()) { 15 tooltip.css('max-width', $(window).width() / 2); 16 } 17 18 var pos_left = target.offset().left + (target.outerWidth() / 2) - (tooltip.outerWidth() / 2); 19 var pos_top = target.offset().top - tooltip.outerHeight() - 30; 20 21 if (pos_left < 0) { 22 pos_left = target.offset().left + target.outerWidth() / 2 - 20; 23 tooltip.addClass('left'); 24 } 25 else 26 tooltip.removeClass('left'); 27 28 if (right && ((target.offset().left + target.outerWidth() + tooltip.outerWidth()) < $(window).width())) { 29 pos_left = target.offset().left + target.outerWidth() + 20; 30 pos_top = target.offset().top - 10; 31 tooltip.addClass('left'); 32 } 33 34 tooltip.css({ left: pos_left, top: pos_top }).fadeIn(); 35 }, 36 37 remove: function (target, i) { 38 39 tip = $('#ms-tooltip' + i).html(); 40 41 if (!tip || tip == '') 42 return false; 43 44 if (target.attr('title') == '') 45 target.attr('title', tip); 46 47 $('#ms-tooltip' + i).fadeOut(100, function () { 48 $(this).remove(); 49 }); 50 } 51}
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.