芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/tooltip.min.js
!function(f){"use strict";function s(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("bsf_tooltip",t,e)}s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},s.prototype.init=function(t,e,o){this.enabled=!0,this.type=t,this.$element=f(e),this.options=this.getOptions(o);var i=this.options.trigger.split(" ");for(let t=i.length;t--;){var s,n=i[t];"click"==n?this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this)):"manual"!=n&&(s="hover"==n?"mouseleave":"focusout",this.$element.on(("hover"==n?"mouseenter":"focusin")+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,f.proxy(this.leave,this)))}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(t){return(t=f.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},s.prototype.getDelegateOptions=function(){const o={},i=this.getDefaults();return this._options&&f.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)}),o},s.prototype.enter=function(t){const e=t instanceof this.constructor?t:f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},s.prototype.leave=function(t){const e=t instanceof this.constructor?t:f(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},s.prototype.show=function(){var e=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled&&(this.$element.trigger(e),!e.isDefaultPrevented())){const a=this;e=this.tip();this.setContent(),this.options.animation&&e.addClass("fade");let t="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement;var o,i,s=/\s?auto?\s?/i,n=s.test(t),s=(n&&(t=t.replace(s,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(t),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element),this.getPosition()),r=e[0].offsetWidth,l=e[0].offsetHeight,p=(n&&(n=this.$element.parent(),o=t,h=document.documentElement.scrollTop||document.body.scrollTop,i="body"==this.options.container?window.innerWidth:n.outerWidth(),p="body"==this.options.container?window.innerHeight:n.outerHeight(),n="body"==this.options.container?0:n.offset().left,t="bottom"==t&&s.top+s.height+l-h>p?"top":"top"==t&&s.top-h-l<0?"bottom":"right"==t&&s.right+r>i?"left":"left"==t&&s.left-r