1/* jQuery tooltip Plugin 2 * --------------------------------------------------- 3 * Author: Roman Vlach (http://www.adsystem.cz) 4 * Created 4.4.2015 5 * --------------------------------------------------- 6 * Tested in IE8+, Firefox 4+, Chrome 1+ 7 */ 8 9(function ($) { 10 $.fn.adToolTip = function (atribute) { 11 if(!atribute){ 12 var atribute = 'title'; // defaultnÄ nastavený atribut title 13 } 14 15function get_div_width(){ 16 return $("#adtooltip .datatooltip").width()/2; 17} 18function get_div_height(){ 19 return $("#adtooltip .datatooltip").height(); 20} 21 22 $(this).hover(function(e){ 23 this.vv = $(this).height(); 24 this.t = $(this).attr(atribute); 25 if(this.t){ 26 $(this).attr(atribute,''); 27 $("body").append("<div id='adtooltip'><div class='datatooltip'>"+this.t+"</div></div>"); 28 var yOffset = get_div_width(); 29 var xOffset = get_div_height(); 30 $("#adtooltip").css("top",e.pageY-xOffset-this.vv+"px").css("left",e.pageX-this.yOffset+"px").fadeIn("fast"); 31 } 32 },function(){ 33 $(this).attr(atribute,this.t); 34 $("#adtooltip").remove(); 35 }); 36 37 $(this).mousemove(function(e){ 38 var yOffset = get_div_width(); 39 var xOffset = get_div_height(); 40 $("#adtooltip").css("top",e.pageY-xOffset-this.vv+"px").css("left",e.pageX-yOffset+"px"); 41 }); 42 43}; 44})(jQuery); 45 46/* použità 47 * 48 * $('a').adToolTip(); // vypÃÅ¡e title do tooltipu 49 * $('img').adToolTip('alt'); // vypÃÅ¡e alt do tooltipu 50 */
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.