![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/cwd/wp-content/plugins/bdthemes-element-pack/assets/vendor/js/ |
!function(t,e,i,n){var o="circleMenu",s={depth:0,item_diameter:30,circle_radius:80,angle:{start:0,end:90},speed:500,delay:1e3,step_out:20,step_in:-20,trigger:"hover",transition_function:"ease"};function r(t,e,i){["-webkit-","-moz-","-o-","-ms-",""].forEach((function(n){t.css(n+e,i)}))}function l(e,i){this._timeouts=[],this.element=t(e),this.options=t.extend({},s,i),this._defaults=s,this._name=o,this.init(),this.hook()}l.prototype.init=function(){var e,i=this,n={"bottom-left":[180,90],bottom:[135,45],right:[-45,45],left:[225,135],top:[225,315],"bottom-half":[180,0],"right-half":[-90,90],"left-half":[270,90],"top-half":[180,360],"top-left":[270,180],"top-right":[270,360],full:[-90,270-Math.floor(360/(i.element.children("li").length-1))],"bottom-right":[0,90]};i._state="closed",i.element.addClass(o+"-closed"),"string"==typeof i.options.direction&&(e=n[i.options.direction.toLowerCase()])&&(i.options.angle.start=e[0],i.options.angle.end=e[1]),i.menu_items=i.element.children("li:not(:first-child)"),i.initCss(),i.item_count=i.menu_items.length,i._step=(i.options.angle.end-i.options.angle.start)/(i.item_count-1),i.menu_items.each((function(e){var n=t(this),s=(i.options.angle.start+i._step*e)*(Math.PI/180),r=Math.round(i.options.circle_radius*Math.cos(s)),l=Math.round(i.options.circle_radius*Math.sin(s));n.data("plugin_"+o+"-pos-x",r),n.data("plugin_"+o+"-pos-y",l),n.on("click",(function(){i.select(e+2)}))})),["open","close","init","select"].forEach((function(t){var e;i.options[t]&&(e=i.options[t],i.element.on(o+"-"+t,(function(){return e.apply(i,arguments)})),delete i.options[t])})),i.submenus=i.menu_items.children("ul"),i.submenus.circleMenu(t.extend({},i.options,{depth:i.options.depth+1})),i.trigger("init")},l.prototype.trigger=function(){var t,e,i=[];for(t=0,e=arguments.length;t<e;t++)i.push(arguments[t]);this.element.trigger(o+"-"+i.shift(),i)},l.prototype.hook=function(){var t=this;"hover"===t.options.trigger?t.element.on("mouseenter",(function(e){t.open()})).on("mouseleave",(function(e){t.close()})):"click"===t.options.trigger?t.element.children("li:first-child").on("click",(function(e){return e.preventDefault(),"closed"===t._state||"closing"===t._state?t.open():t.close(!0),!1})):t.options.trigger},l.prototype.open=function(){var e,i=this,n=this.element;return i.clearTimeouts(),"open"===i._state||(n.addClass(o+"-open"),n.removeClass(o+"-closed"),(e=i.options.step_out>=0?i.menu_items:t(i.menu_items.get().reverse())).each((function(e){var n=t(this);i._timeouts.push(setTimeout((function(){n.css({left:n.data("plugin_"+o+"-pos-x")+"px",top:n.data("plugin_"+o+"-pos-y")+"px"}),r(n,"transform","scale(1)")}),0+Math.abs(i.options.step_out)*e))})),i._timeouts.push(setTimeout((function(){"opening"===i._state&&i.trigger("open"),i._state="open"}),0+Math.abs(i.options.step_out)*e.length)),i._state="opening"),i},l.prototype.close=function(e){var i=this,n=this.element,s=function(){var e;return i.submenus.circleMenu("close"),i.clearTimeouts(),"closed"===i._state||((e=i.options.step_in>=0?i.menu_items:t(i.menu_items.get().reverse())).each((function(e){var n=t(this);i._timeouts.push(setTimeout((function(){n.css({top:0,left:0}),r(n,"transform","scale(.5)")}),0+Math.abs(i.options.step_in)*e))})),i._timeouts.push(setTimeout((function(){"closing"===i._state&&i.trigger("close"),i._state="closed"}),0+Math.abs(i.options.step_in)*e.length)),n.removeClass(o+"-open"),n.addClass(o+"-closed"),i._state="closing"),i};return e?s():i._timeouts.push(setTimeout(s,i.options.delay)),this},l.prototype.select=function(t){var e,i,n=this;"open"!==n._state&&"opening"!==n._state||(n.clearTimeouts(),i=n.element.children("li:not(:nth-child("+t+"),:first-child)"),e=n.element.children("li:nth-child("+t+")"),n.trigger("select",e),r(e.add(i),"transition","all 500ms ease-out"),r(e,"transform","scale(2)"),r(i,"transform","scale(0)"),e.css("opacity","0"),i.css("opacity","0"),n.element.removeClass(o+"-open"),setTimeout((function(){n.initCss()}),500))},l.prototype.clearTimeouts=function(){for(var t;t=this._timeouts.shift();)clearTimeout(t)},l.prototype.initCss=function(){var t,e=this;e._state="closed",e.element.removeClass(o+"-open"),e.element.css({"list-style":"none",margin:0,padding:0,width:e.options.item_diameter+"px"}),(t=e.element.children("li")).attr("style",""),t.css({display:"block",width:e.options.item_diameter+"px",height:e.options.item_diameter+"px","text-align":"center","line-height":e.options.item_diameter+"px",position:"absolute","z-index":1,opacity:""}),e.element.children("li:first-child").css({"z-index":1e3-e.options.depth}),e.menu_items.css({top:0,left:0}),r(t,"border-radius",e.options.item_diameter+"px"),r(e.menu_items,"transform","scale(.5)"),setTimeout((function(){r(t,"transition","all "+e.options.speed+"ms "+e.options.transition_function)}),0)},t.fn[o]=function(e){return this.each((function(){var i=t.data(this,"plugin_"+o),n={init:function(){i.init()},open:function(){i.open()},close:function(){i.close(!0)}};"string"==typeof e&&i&&n[e]&&n[e](),i||t.data(this,"plugin_"+o,new l(this,e))}))}}(jQuery,window,document);