Current File : /home/pacjaorg/.trash/components/com_tz_portfolio_plus/js/notificationfx.min.js
!function(t){"use strict";function i(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t}function n(t){this.options=i({},this.options),i(this.options,t),this._init()}t.document.documentElement;var s=Modernizr.cssanimations,o={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"}[Modernizr.prefixed("animation")];n.prototype.options={wrapper:document.body,message:"yo!",layout:"growl",effect:"slide",type:"error",ttl:6e3,onClose:function(){return!1},onOpen:function(){return!1}},n.prototype._init=function(){this.ntf=document.createElement("div"),this.ntf.className="ns-box ns-"+this.options.layout+" ns-effect-"+this.options.effect+" ns-type-"+this.options.type;var t='<div class="ns-box-inner">';t+=this.options.message,t+="</div>",t+='<span class="ns-close"></span></div>',this.ntf.innerHTML=t,this.options.wrapper.insertBefore(this.ntf,this.options.wrapper.firstChild);var i=this;this.dismissttl=setTimeout(function(){i.active&&i.dismiss()},this.options.ttl),this._initEvents()},n.prototype._initEvents=function(){var t=this;this.ntf.querySelector(".ns-close").addEventListener("click",function(){t.dismiss()})},n.prototype.show=function(){this.active=!0,classie.remove(this.ntf,"ns-hide"),classie.add(this.ntf,"ns-show"),this.options.onOpen()},n.prototype.dismiss=function(){var t=this;this.active=!1,clearTimeout(this.dismissttl),classie.remove(this.ntf,"ns-show"),setTimeout(function(){classie.add(t.ntf,"ns-hide"),t.options.onClose()},25);var i=function(n){if(s){if(n.target!==t.ntf)return!1;this.removeEventListener(o,i)}t.options.wrapper.removeChild(this)};s?this.ntf.addEventListener(o,i):i()},t.NotificationFx=n}(window);
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!