PageSourceSearch

https://seoforgex.com/wp-content/themes/news-magazine-x/assets/lib/tipsy/jquery.tipsy.min.js?ver=1.7.1

js seoforgex.com collected 2026-09-24 08:26:57 UTC 4,411 bytes, 9 lines download raw bytes

1/*!
2 * jQuery.tipsy
3 * Copyright (c) 2014 CreativeDream
4 * Website: http://creativedream.net/plugins/
5 * Version: 1.0 (18-11-2014)
6 * Requires: jQuery v1.7.1 or later
7 */
8
9(function(a){function b(a,b){return"function"==typeof a?a.call(b):a}function c(b,c){this.$element=a(b),this.options=c,this.enabled=!0}function d(a){for(;a=a.parentNode;)if(a==document)return!0;return!1}c.prototype={show:function(){var c=this.getTitle();if(c&&this.enabled){var d=this.tip();d.find(".tipsy-inner")[this.options.html?"html":"text"](c),d[0].className="tipsy",d.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var e,f=a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),g=d[0].offsetWidth,h=d[0].offsetHeight,i=this.getGravity();switch(i.charAt(0)){case"n":e={top:f.top+f.height+this.options.offset,left:f.left+f.width/2-g/2};break;case"s":e={top:f.top-h-this.options.offset,left:f.left+f.width/2-g/2};break;case"e":e={top:f.top+f.height/2-h/2,left:f.left-g-this.options.offset};break;case"w":e={top:f.top+f.height/2-h/2,left:f.left+f.width+this.options.offset};}2==i.length&&(e.left="w"==i.charAt(1)?f.left+f.width/2-15:f.left+f.width/2-g+15),d.css(e).addClass("tipsy-"+i),d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+i.charAt(0),this.options.className&&d.addClass(b(this.options.className,this.$element[0])),this.options.fade?d.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):d.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){a(this).remove()}):this.tip().remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("original-title"))&&a.attr("original-title",a.attr("title")||"").removeAttr("title")},getTitle:function(){var a,b=this.$element,c=this.options;return a="string"==typeof c.title?b.attr("title"===c.title?"original-title":c.title):c.title.call(b[0]),a=(a+"").replace(/(^\s*|\s*$)/,""),a||c.fallback},getGravity:function(){var a=this.$element.data("gravity")||b(this.options.gravity,this.$element[0]);return a},tip:function(){return this.$tip||(this.$tip=a("<div class=\"tipsy\"></div>").html("<div class=\"tipsy-arrow\"></div><div class=\"tipsy-inner\"></div>"),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},a.fn.newsxTipsy=function(b){function d(d){var e=a.data(d,"tipsy");return e||(e=new c(d,a.fn.newsxTipsy.elementOptions(d,b)),a.data(d,"tipsy",e)),e}if(!0===b)return this.data("tipsy");if("string"==typeof b){var e=this.data("tipsy");return e&&e[b](),this}if(b=a.extend({},a.fn.newsxTipsy.defaults,b),b.live||this.each(function(){d(this)})){var f="hover"===b.trigger?"mouseenter":"focus",g="hover"===b.trigger?"mouseleave":"blur";this.on(f,function(){var a=d(this);a.hoverState="in",0===b.delayIn?a.show():setTimeout(function(){"in"===a.hoverState&&a.show()},b.delayIn)}).on(g,function(){var a=d(this);a.hoverState="out",0===b.delayOut?a.hide():setTimeout(function(){"out"===a.hoverState&&a.hide()},b.delayOut)})}return this},a.fn.newsxTipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},a.fn.newsxTipsy.revalidate=function(){a(".tipsy").each(function(){var b=a.data(this,"tipsy-pointee");b&&d(b)||a(this).remove()})},a.fn.newsxTipsy.elementOptions=function(b,c){return a.metadata?a.extend({},c,a(b).metadata()):c},a.fn.newsxTipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"},a.fn.newsxTipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"},a.fn.newsxTipsy.autoBounds=function(b,c){return function(){var d={ns:c[0],ew:!!(1<c.length)&&c[1]},e={top:a(document).scrollTop()+b,left:a(document).scrollLeft()+b},f={w:a(window).width()+e.left,h:a(window).height()+e.top},g=a(this);return g.offset().top<e.top&&(d.ns="n"),g.offset().left<e.left&&(d.ew="w"),f.w<g.offset().left+g.width()&&(d.ew="e"),f.h<g.offset().top+g.height()&&(d.ns="s"),d.ns+(d.ew?d.ew:"")}}})(jQuery);

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.