1function pis_tooltips(target_items, name) 2{ 3 jQuery(target_items).each(function(i) { 4 jQuery("body").append("<div class='"+name+"' id='"+name+i+"'><p class='pis-tooltip-title'>"+jQuery(this).find('img').attr('alt')+"</p><p class='pis-tooltip-description'>"+jQuery(this).attr('title')+"</p></div>"); 5 var my_tooltip = jQuery("#"+name+i); 6 7 if (jQuery(this).attr("title") != "" && jQuery(this).attr("title") != "undefined" ) 8 { 9 jQuery(this).removeAttr("title").mouseover(function() { 10 my_tooltip.css({opacity:0.8, display:"none"}).fadeIn(0); 11 }).mousemove(function(kmouse) { 12 var border_top = jQuery(window).scrollTop(); 13 var border_right = jQuery(window).width(); 14 var left_pos; 15 var top_pos; 16 var offset = 20; 17 if(border_right - (offset *2) >= my_tooltip.width() + kmouse.pageX) 18 { 19 left_pos = kmouse.pageX+offset; 20 } 21 else 22 { 23 left_pos = border_right-my_tooltip.width()-offset; 24 } 25 26 if(border_top + (offset *2)>= kmouse.pageY - my_tooltip.height()) 27 { 28 top_pos = border_top +offset; 29 } 30 else 31 { 32 top_pos = kmouse.pageY-my_tooltip.height()-offset; 33 } 34 35 my_tooltip.css({left:left_pos, top:top_pos}); 36 }).mouseout(function(){ 37 my_tooltip.css({left:"-9999px"}); 38 }); 39 } 40 }); 41}
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.