PageSourceSearch

http://www.activa.com.au/js/jquery.tooltip.js

js activa.com.au collected 2026-10-06 13:15:20 UTC 4,440 bytes, 9 lines download raw bytes

1var createTooltip={config:{identifier:$('.cTooltip'),offsetLeft:0,flexible:true},current:null,delay:0,timer:null,setTooltipElements:function(userconfig){$.extend(this.config,userconfig);createTooltip.config.identifier.each(function(){if($(this).find('span.cTooltipWrap').length)return;$(this).wrapInner('<div class="cTooltipWrap"></div>');$('<span class="cTooltipFoot"></span>').appendTo($(this));});createTooltip.setTooltips();},setTooltips:function(){var screenWidth=$(window).width(),screenBottom=$(window).scrollTop()+ $(window).height();createTooltip.config.identifier.parent().hoverIntent(function(){createTooltip.current=$(this);createTooltip.timer=setTimeout(function(){createTooltip.current.find(createTooltip.config.identifier).stop(true,true).fadeIn();},createTooltip.delay);},function(){clearTimeout(createTooltip.timer);$(this).find(createTooltip.config.identifier).stop(true,true).hide();}).attr("title","");createTooltip.config.identifier.each(function(){var $this=$(this),container=$this.parent(),top=container.height(),totalHeight=top+ $this.outerHeight(),width=$this.outerWidth(),offset=container.offset(),left=createTooltip.config.offsetLeft;if(container.css('position')!='absolute'&&container.css('position')!='fixed'){container.css({position:'relative'});}
2if(createTooltip.config.flexible==true){if(offset.left+ width>screenWidth){left=0- width+ 42;$(this).addClass('left');}else{$(this).removeClass('left');}
3if(offset.top+ totalHeight>screenBottom){top=0- $(this).outerHeight();$(this).addClass('above');}else{$(this).removeClass('above');}}
4$(this).css({'top':top,'left':left});});}}
5var clickMiniTooltip={config:{message:'We are sorry but this resource is unavailable on your current package.',inactive:$('.inactive').css('position','relative')},createTooltip:function(userconfig){$.extend(this.config,userconfig);clickMiniTooltip.config.inactive.hover(function(){$('.minitooltip').remove();if($(this).find('span.minitooltip').length)return;$('<span class="minitooltip"></span>').hide().text(clickMiniTooltip.config.message).appendTo($(this))});clickMiniTooltip.displayTooltip();},displayTooltip:function(){clickMiniTooltip.config.inactive.click(function(event){$('span.minitooltip').fadeIn('slow');}).mouseout(function(){$('#topnav li li .minitooltip').fadeOut(400);});}}
6function flexibleTooltip(){this.config={identifier:$('.cTooltip'),offsetLeft:0,offsetTop:0,flexible:true,width:260};this.current=null;this.delay=0;this.timer=null;this.setTooltipElements=function(userconfig){var userconfig=userconfig;$.extend(this.config,userconfig);$(this.config.identifier).each(function(){$(this).css({'width':userconfig.width});if($(this).find('span.cTooltipWrap').length)return;$(this).wrapInner('<div class="cTooltipWrap"></div>');$('<span class="cTooltipFoot"></span><span class="cTooltipBottomCorner"></span>').appendTo($(this));$('<span class="cTooltipHead"></span><span class="cTooltipTopCorner"></span>').prependTo($(this));});var toolTipWrapWidth=userconfig.width- 9;$(this.config.identifier).find('.cTooltipHead, .cTooltipFoot').css({'width':toolTipWrapWidth});this.setTooltips();};this.setTooltips=function(){var screenWidth=$(window).width(),screenBottom=$(window).scrollTop()+ $(window).height();var u_config=this.config;$(this.config.identifier).parent().hoverIntent(function(){hoveredTip=$(this);this.timer=setTimeout(function(){if(!$(u_config.identifier).hasClass('disabled')){hoveredTip.find(u_config.identifier).stop(true,true).fadeIn();}},this.delay);},function(){clearTimeout(this.timer);$(this).find(u_config.identifier).stop(true,true).fadeOut();}).attr("title","");$(this.config.identifier).each(function(){var $this=$(this),container=$this.parent(),top=container.height(),totalHeight=top+ $this.outerHeight(),width=$this.outerWidth(),offset=container.offset(),left=u_config.offsetLeft;if(container.css('position')!='absolute'&&container.css('position')!='fixed'){container.css({position:'relative'});}
7if(u_config.flexible==true){if(offset.left+ width>screenWidth){left=0- width+ 42;$(this).addClass('left');}else{$(this).removeClass('left');}
8if(offset.top+ totalHeight>screenBottom){top=0- $(this).outerHeight();$(this).addClass('above');}else{$(this).removeClass('above');}}
9$(this).css({'top':top+ u_config.offsetTop,'left':left});});};this.disableTooltip=function(){this.config.identifier.addClass('disabled');};this.enableTooltip=function(){this.config.identifier.removeClass('disabled');};}

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.