Shadow-Here


Server : Apache/2.4.41 (Ubuntu)
System : Linux cls 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : iscuser ( 1001)
PHP Version : 7.4.12
Disable Function : shell_exec,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/ideaworldwide/idea-worldwide.com/www/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : /var/www/html/ideaworldwide/idea-worldwide.com/www/assets/js/notifications.js
Math.randomString=function(n){var text="";var possible="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var i=0;i<n;i++)text+=possible.charAt(Math.floor(Math.random()*possible.length));return text;};var Lobibox=Lobibox||{};(function(){var LobiboxNotify=function(type,options){this.$type=null;this.$options=null;this.$el=null;var me=this;var _processInput=function(options){if(options.size==='mini'||options.size==='large'){options=$.extend({},Lobibox.notify.OPTIONS[options.size],options);}options=$.extend({},Lobibox.notify.OPTIONS[me.$type],Lobibox.notify.DEFAULTS,options);if(options.size!=='mini'&&options.title===true){options.title=Lobibox.notify.OPTIONS[me.$type].title;}else if(options.size==='mini'&&options.title===true){options.title=false;}if(options.icon===true){options.icon=Lobibox.notify.OPTIONS.icons[options.iconSource][me.$type];}if(options.sound===true){options.sound=Lobibox.notify.OPTIONS[me.$type].sound;}if(options.sound){options.sound=options.soundPath+options.sound+options.soundExt;}return options;};var _appendInWrapper=function($el,$wrapper){if(me.$options.size==='normal'){if($wrapper.hasClass('bottom')){$wrapper.prepend($el);}else{$wrapper.append($el);}}else if(me.$options.size==='mini'){if($wrapper.hasClass('bottom')){$wrapper.prepend($el);}else{$wrapper.append($el);}}else if(me.$options.size==='large'){var tabPane=_createTabPane().append($el);var $li=_createTabControl(tabPane.attr('id'));$wrapper.find('.lb-notify-wrapper').append(tabPane);$wrapper.find('.lb-notify-tabs').append($li);_activateTab($li);$li.find('>a').click(function(){_activateTab($li);});}};var _activateTab=function($li){$li.closest('.lb-notify-tabs').find('>li').removeClass('active');$li.addClass('active');var $current=$($li.find('>a').attr('href'));$current.closest('.lb-notify-wrapper').find('>.lb-tab-pane').removeClass('active');$current.addClass('active')};var _createTabControl=function(tabPaneId){var $li=$('<li></li>',{'class':Lobibox.notify.OPTIONS[me.$type]['class']});$('<a></a>',{'href':'#'+tabPaneId}).append('<i class="tab-control-icon '+me.$options.icon+'"></i>').appendTo($li);return $li;};var _createTabPane=function(){return $('<div></div>',{'class':'lb-tab-pane','id':Math.randomString(10)})};var _createNotifyWrapper=function(){var selector=(me.$options.size==='large'?'.lobibox-notify-wrapper-large':'.lobibox-notify-wrapper')+"."+me.$options.position.replace(/\s/gi,'.'),$wrapper;$wrapper=$(selector);if($wrapper.length===0){$wrapper=$('<div></div>').addClass(selector.replace(/\./g,' ').trim()).appendTo($('body'));if(me.$options.size==='large'){$wrapper.append($('<ul class="lb-notify-tabs"></ul>')).append($('<div class="lb-notify-wrapper"></div>'));}}return $wrapper;};var _createNotify=function(){var OPTS=Lobibox.notify.OPTIONS,$iconEl,$innerIconEl,$iconWrapper,$body,$msg,$notify=$('<div></div>',{'class':'lobibox-notify '+OPTS[me.$type]['class']+' '+OPTS['class']+' '+me.$options.showClass});$iconWrapper=$('<div class="lobibox-notify-icon-wrapper"></div>').appendTo($notify);$iconEl=$('<div class="lobibox-notify-icon"></div>').appendTo($iconWrapper);$innerIconEl=$('<div></div>').appendTo($iconEl);if(me.$options.img){$innerIconEl.append('<img src="'+me.$options.img+'"/>');}else if(me.$options.icon){$innerIconEl.append('<div class="icon-el"><i class="'+me.$options.icon+'"></i></div>');}else{$notify.addClass('without-icon');}$msg=$('<div class="lobibox-notify-msg">'+me.$options.msg+'</div>');if(me.$options.messageHeight!==false){$msg.css('max-height',me.$options.messageHeight);}$body=$('<div></div>',{'class':'lobibox-notify-body'}).append($msg).appendTo($notify);if(me.$options.title){$body.prepend('<div class="lobibox-notify-title">'+me.$options.title+'<div>');}_addCloseButton($notify);if(me.$options.size==='normal'||me.$options.size==='mini'){_addCloseOnClick($notify);_addDelay($notify);}if(me.$options.width){$notify.css('width',_calculateWidth(me.$options.width));}return $notify;};var _addCloseButton=function($el){if(!me.$options.closable){return;}$('<span class="lobibox-close">&times;</span>').click(function(){me.remove();}).appendTo($el);};var _addCloseOnClick=function($el){if(!me.$options.closeOnClick){return;}$el.click(function(){me.remove();});};var _addDelay=function($el){if(!me.$options.delay){return;}if(me.$options.delayIndicator){var delay=$('<div class="lobibox-delay-indicator"><div></div></div>');$el.append(delay);}var time=0;var interval=1000/30;var currentTime=new Date().getTime();var timer=setInterval(function(){if(me.$options.continueDelayOnInactiveTab){time=new Date().getTime()-currentTime;}else{time+=interval;}var width=100*time/me.$options.delay;if(width>=100){width=100;me.remove();timer=clearInterval(timer);}if(me.$options.delayIndicator){delay.find('div').css('width',width+"%");}},interval);if(me.$options.pauseDelayOnHover){$el.on('mouseenter.lobibox',function(){interval=0;}).on('mouseleave.lobibox',function(){interval=1000/30;});}};var _findTabToActivate=function($li){var $itemToActivate=$li.prev();if($itemToActivate.length===0){$itemToActivate=$li.next();}if($itemToActivate.length===0){return null;}return $itemToActivate;};var _calculateWidth=function(width){width=Math.min($(window).outerWidth(),width);return width;};this.remove=function(){me.$el.removeClass(me.$options.showClass).addClass(me.$options.hideClass);var parent=me.$el.parent();var wrapper=parent.closest('.lobibox-notify-wrapper-large');var href='#'+parent.attr('id');var $li=wrapper.find('>.lb-notify-tabs>li:has(a[href="'+href+'"])');$li.addClass(Lobibox.notify.OPTIONS['class']).addClass(me.$options.hideClass);setTimeout(function(){if(me.$options.size==='normal'||me.$options.size==='mini'){me.$el.remove();}else if(me.$options.size==='large'){var $newLi=_findTabToActivate($li);if($newLi){_activateTab($newLi);}$li.remove();parent.remove();}var list=Lobibox.notify.list;var ind=list.indexOf(me);list.splice(ind,1);var next=list[ind];if(next&&next.$options.showAfterPrevious){next._init();}},500);return me;};me._init=function(){var $notify=_createNotify();if(me.$options.size==='mini'){$notify.addClass('notify-mini');}if(typeof me.$options.position==='string'){var $wrapper=_createNotifyWrapper();_appendInWrapper($notify,$wrapper);if($wrapper.hasClass('center')){$wrapper.css('margin-left','-'+($wrapper.width()/2)+"px");}}else{$('body').append($notify);$notify.css({'position':'fixed',left:me.$options.position.left,top:me.$options.position.top})}me.$el=$notify;if(me.$options.sound){var snd=new Audio(me.$options.sound);snd.play();}if(me.$options.rounded){me.$el.addClass('rounded');}me.$el.on('click.lobibox',function(ev){if(me.$options.onClickUrl){window.location.href=me.$options.onClickUrl;}if(me.$options.onClick&&typeof me.$options.onClick==='function'){me.$options.onClick.call(me,ev);}});me.$el.data('lobibox',me);};this.$type=type;this.$options=_processInput(options);if(!me.$options.showAfterPrevious||Lobibox.notify.list.length===0){this._init();}};Lobibox.notify=function(type,options){if(["default","info","warning","error","success"].indexOf(type)>-1){var lobibox=new LobiboxNotify(type,options);Lobibox.notify.list.push(lobibox);return lobibox;}};Lobibox.notify.list=[];Lobibox.notify.closeAll=function(){var list=Lobibox.notify.list;for(var i in list){list[i].remove();}};Lobibox.notify.DEFAULTS={title:true,size:'normal',soundPath:'sounds/',soundExt:'.ogg',showClass:'fadeInDown',hideClass:'zoomOut',icon:true,msg:'',img:null,closable:true,hideCloseButton:false,delay:5000,delayIndicator:true,closeOnClick:true,width:400,sound:true,position:"bottom right",iconSource:'bootstrap',rounded:false,messageHeight:60,pauseDelayOnHover:true,onClickUrl:null,showAfterPrevious:false,continueDelayOnInactiveTab:true,onClick:null};Lobibox.notify.OPTIONS={'class':'animated-fast',large:{width:500,messageHeight:96},mini:{'class':'notify-mini',messageHeight:32},default:{'class':'lobibox-notify-default','title':'Default',sound:false},success:{'class':'lobibox-notify-success','title':'Success',sound:'sound2'},error:{'class':'lobibox-notify-error','title':'Error',sound:'sound4'},warning:{'class':'lobibox-notify-warning','title':'Warning',sound:'sound5'},info:{'class':'lobibox-notify-info','title':'Information',sound:'sound6'},icons:{bootstrap:{success:'glyphicon glyphicon-ok-sign',error:'glyphicon glyphicon-remove-sign',warning:'glyphicon glyphicon-exclamation-sign',info:'glyphicon glyphicon-info-sign'},fontAwesome:{success:'fa fa-check-circle',error:'fa fa-times-circle',warning:'fa fa-exclamation-circle',info:'fa fa-info-circle'}}};})();

Samx