PageSourceSearch

https://sustainableelectronics.org/wp-content/themes/Avada/include…/assets/min/js/library/awb-tooltip.js?ver=1

js sustainableelectronics.org collected 2026-09-24 09:57:56 UTC 10,468 bytes, 1 lines download raw bytes

1!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],s={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function r(e,s){var r,a,l=e.nodeName.toLowerCase();if(-1!==t.inArray(l,s))return-1===t.inArray(l,n)||Boolean(e.nodeValue.match(i)||e.nodeValue.match(o));for(r=t(s).filter(function(t,e){return e instanceof RegExp}),a=0;a<r.length;a++)if(l.match(r[a]))return!0;return!1}function a(e,i,o){var n,s,a,l,p,h,f,c,u;if(!e.length)return e;if(o&&"function"==typeof o)return o(e);for((n=document.implementation.createHTMLDocument("sanitization")).body.innerHTML=e,s=t.map(i,function(t,e){return e}),a=t(n.body).find("*"),c=0;c<a.length;c++)if(p=(l=a[c]).nodeName.toLowerCase(),-1!==t.inArray(p,s))for(h=t.map(l.attributes,function(t){return t}),f=[].concat(i["*"]||[],i[p]||[]),u=0;u<h.length;u++)r(h[u],f)||l.removeAttribute(h[u].nodeName);else l.parentNode.removeChild(l);return n.body.innerHTML}function l(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:s},l.prototype.init=function(e,i,o){var n,s,r,a,l;if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(l=(n=this.options.trigger.split(" ")).length;l--;)"click"===(s=n[l])?this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this)):"manual"!==s&&(r="hover"===s?"mouseenter":"focusin",a="hover"===s?"mouseleave":"focusout",this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.leave,this)));this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var o,n=this.$element.data();for(o in n)n.hasOwnProperty(o)&&-1!==t.inArray(o,e)&&delete n[o];return(i=t.extend({},this.getDefaults(),n,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=a(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!==o&&(e[t]=o)}),e},l.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"===e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"===i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"===i.hoverState&&i.show()},i.options.delay.show)}},l.prototype.isInStateTrue=function(){var t;for(t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"===e.type?"focu
1s":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"===i.hoverState&&i.hide()},i.options.delay.hide)}},l.prototype.show=function(){var e,i,o,n,s,r,a,l,p,h,f,c,u,d=t.Event("show.bs."+this.type),g=this;this.hasContent()&&this.enabled&&(this.$element.trigger(d),e=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!d.isDefaultPrevented()&&e&&(i=this.tip(),o=this.getUID(this.type),this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,(r=(s=/\s?auto?\s?/i).test(n))&&(n=n.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this).addClass(this.$element.data("class")),this.options.container?i.appendTo(t(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),a=this.getPosition(),l=i[0].offsetWidth,p=i[0].offsetHeight,r&&(h=n,f=this.getPosition(this.$viewport),n="bottom"===n&&a.bottom+p>f.bottom?"top":"top"===n&&a.top-p<f.top?"bottom":"right"===n&&a.right+l>f.width?"left":"left"===n&&a.left-l<f.left?"right":n,i.removeClass(h).addClass(n)),c=this.getCalculatedOffset(n,a,l,p),this.applyPlacement(c,n),u=function(){var t=g.hoverState;g.$element.trigger("shown.bs."+g.type),g.hoverState=null,"out"===t&&g.leave(g)},this.$tip.hasClass("fade")?i.one("bsTransitionEnd",u).emulateTransitionEnd(150):u()))},l.prototype.applyPlacement=function(e,i){var o,n,s,r,a,l,p=this.tip(),h=p[0].offsetWidth,f=p[0].offsetHeight,c=parseInt(p.css("margin-top"),10)||0,u=parseInt(p.css("margin-left"),10)||0;e.top+=c,e.left+=u,t.offset.setOffset(p[0],t.extend({using:function(t){p.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),p.addClass("in"),o=p[0].offsetWidth,n=p[0].offsetHeight,"top"===i&&n!==f&&(e.top=e.top+f-n),(s=this.getViewportAdjustedDelta(i,e,o,n)).left?e.left+=s.left:e.top+=s.top,a=(r=/top|bottom/.test(i))?2*s.left-h+o:2*s.top-f+n,l=r?"offsetWidth":"offsetHeight",p.offset(e),this.replaceArrow(a,p[0][l],r)},l.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=a(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){var i=this,o=t(this.$tip),n=t.Event("hide.bs."+this.type);function s(){"in"!==i.hoverState&&o.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}if(this.$element.trigger(n),!n.isDefaultPrevented())return o.removeClass("in"),o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(150):s(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var i,o,n,s,r,a;return o="BODY"===(i=(e=e||this.$element)[0]).tagName,n=i.getBoundingClientRect(),s=o?{top:0,left:0}:e.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=o?{width:t(window).width(),height:t(window).height()}:null,t.extend({},n,r,a,s)},l.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"===t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"===t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"===t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n,s,r,a,l,p,h={top:0,left:0};return this.$viewport?(n=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport),/right|left/.test(t)?(r=e.top-n-s.scroll,a=e.top+n-s.scroll+o,r<s.top?h.top=s.top-r:a>s.top+s.height&&(h.top=s.top+s.height-a)):(l=e.left-n,p=e.left+n+i,l<s.left?h.left=s.left-l:p>s.right&&(h.left=s.left+s.width-p)),h):h},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!==this.$tip.length))throw new Error(this.t
1ype+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow"),this.$arrow},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var i=this;e?((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})},l.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)},t.fn.tooltip=function(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||(o=new l(this,n),i.data("bs.tooltip",o)),"string"==typeof e&&"function"==typeof o[e]&&o[e]())})},t.fn.tooltip.Constructor=l}(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.