Файловый менеджер - Редактировать - /home/lmsyaran/public_html/joomla5/media/com_fabrik/js/dist/tipsBootStrapMock.js
Назад
/*! Fabrik */ define(["jquery","fab/fabrik"],function(jQuery,Fabrik){var FloatingTips=new Class({Implements:[Events],Binds:[],options:{fxProperties:{transition:Fx.Transitions.linear,duration:500},position:"top",trigger:"hover",content:"title",distance:50,tipfx:"Fx.Transitions.linear",heading:"",duration:500,fadein:!1,notice:!1,html:!0,showFn:function(t){return t.stop(),!0},hideFn:function(t){return t.stop(),!0},placement:function(t,e){Fabrik.fireEvent("bootstrap.tips.place",[t,e]);t=0!==Fabrik.eventResults.length&&Fabrik.eventResults[0];return!1===t?(e=JSON.parse(e.get("opts","{}").opts))&&e.position?e.position:"top":t}},initialize:function(elements,options){3<=Fabrik.bootstrapVersion("modal")||"object"==typeof Materialize||(this.options=jQuery.extend(this.options,options),this.options.fxProperties={transition:eval(this.options.tipfx),duration:this.options.duration},window.addEvent("tips.hideall",function(t,e){this.hideOthers(e)}.bind(this)),elements&&this.attach(elements))},attach:function(t){var o,i;3<=Fabrik.bootstrapVersion("modal")||"object"==typeof Materialize?(this.elements=document.getElements(t),this.elements.each(function(t){jQuery(t).popover({html:!0})})):(this.elements=jQuery(t),i=this,this.elements.each(function(){try{var t=JSON.parse(jQuery(this).attr("opts"));o="object"===jQuery.type(t)?t:{}}catch(t){o={}}o.position&&(o.defaultPos=o.position,delete o.position);var e,t=jQuery.extend({},i.options,o);if("title"===t.content?(t.content=jQuery(this).prop("title"),jQuery(this).removeAttr("title")):"function"===jQuery.type(t.content)&&(e=t.content(this),t.content=null===e?"":e.innerHTML),t.placement=i.options.placement,t.title=t.heading,jQuery(this).hasClass("tip-small"))t.title=t.content,jQuery(this).tooltip(t);else{t.notice||(t.title+='<button class="close" data-popover="'+this.id+'">×</button>');try{jQuery(this).popoverex(t)}catch(t){console.log("failed to apply popoverex tips")}}}))},addStartEvent:function(t,e){},addEndEvent:function(t,e){},getTipContent:function(t,e){},show:function(t,e){},hide:function(t,e){},hideOthers:function(t){},hideAll:function(){jQuery(".popover").remove()}});return function(i){function n(t,e){this.init("popover",t,e)}void 0===i.fn.popover?console.log("Fabrik: cant load PopoverEx as jQuery popover not found - could be the J template has overwritten jQuery (and yes Im looking at your Warp themes!)"):(n.prototype=i.extend({},i.fn.popover.Constructor.prototype,{constructor:n,tip:function(){return this.$tip||(this.$tip=i(this.options.template),this.options.modifier&&this.$tip.addClass(this.options.modifier)),this.$tip},show:function(){var t,e,o,i,n;if(this.hasContent()&&this.enabled){t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade");var s=this.options.placement,p="function"==typeof s?s.call(this,t[0],this.$element[0]):s,s=/in/.test(p);switch(t.remove().css({top:0,left:0,display:"block"}).appendTo(s?this.$element:document.body),e=this.getPosition(s),o=t[0].offsetWidth,i=t[0].offsetHeight,s?p.split(" ")[1]:p){case"bottom":n={top:e.top+e.height,left:e.left+e.width/2-o/2};break;case"bottom-left":n={top:e.top+e.height,left:e.left},p="bottom";break;case"bottom-right":n={top:e.top+e.height,left:e.left+e.width-o},p="bottom";break;case"top":n={top:e.top-i,left:e.left+e.width/2-o/2};break;case"top-left":n={top:e.top-i,left:e.left},p="top";break;case"top-right":n={top:e.top-i,left:e.left+e.width-o},p="top";break;case"left":n={top:e.top+e.height/2-i/2,left:e.left-o};break;case"right":n={top:e.top+e.height/2-i/2,left:e.left+e.width}}t.css(n).addClass(p).addClass("in")}}}),i.fn.popoverex=function(o){return this.each(function(){var t=i(this),e=t.data("popover");e||t.data("popover",e=new n(this,"object"==typeof o&&o)),"string"==typeof o&&e[o]()})})}(jQuery),FloatingTips});
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка