SILENT KILLERPanel

Current Path: > home > codekrsu > > escapematrixonline.com > wp-content > plugins > wp-file-manager > lib > > js > > ui


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//escapematrixonline.com/wp-content/plugins/wp-file-manager/lib//js//ui

NameTypeSizeLast ModifiedActions
button.js File 4219 bytes February 08 2021 12:11:18.
contextmenu.js File 21969 bytes September 01 2020 13:09:26.
cwd.js File 89755 bytes December 28 2021 14:26:10.
dialog.js File 26831 bytes July 21 2021 08:53:50.
fullscreenbutton.js File 634 bytes May 25 2020 10:48:08.
navbar.js File 5343 bytes May 25 2020 10:48:08.
navdock.js File 4470 bytes May 25 2020 10:48:08.
overlay.js File 969 bytes May 25 2020 10:48:08.
panel.js File 559 bytes May 25 2020 10:48:08.
path.js File 5344 bytes May 25 2020 10:48:08.
places.js File 16591 bytes May 25 2020 10:48:08.
searchbutton.js File 10287 bytes May 25 2020 10:48:08.
sortbutton.js File 3750 bytes May 25 2020 10:48:08.
stat.js File 3478 bytes May 25 2020 10:48:08.
toast.js File 2689 bytes May 25 2020 10:48:08.
toolbar.js File 10098 bytes May 25 2020 10:48:08.
tree.js File 41575 bytes December 28 2021 14:26:10.
uploadButton.js File 1072 bytes May 25 2020 10:48:08.
viewbutton.js File 770 bytes May 25 2020 10:48:08.
workzone.js File 1455 bytes May 25 2020 10:48:08.

Reading File: /home/codekrsu//escapematrixonline.com/wp-content/plugins/wp-file-manager/lib//js//ui/toast.js

/**
 * @class  elFinder toast
 * 
 * This was created inspired by the toastr. Thanks to developers of toastr.
 * CodeSeven/toastr: http://johnpapa.net <https://github.com/CodeSeven/toastr>
 *
 * @author Naoki Sawada
 **/
jQuery.fn.elfindertoast = function(opts, fm) {
	"use strict";
	var defOpts = Object.assign({
		mode: 'success', // or 'info', 'warning' and 'error'
		msg: '',
		showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery
		showDuration: 300,
		showEasing: 'swing', //swing and linear are built into jQuery
		onShown: undefined,
		hideMethod: 'fadeOut',
		hideDuration: 1500,
		hideEasing: 'swing',
		onHidden: undefined,
		timeOut: 3000,
		extNode: undefined,
		button: undefined,
		width: undefined
	}, jQuery.isPlainObject(fm.options.uiOptions.toast.defaults)? fm.options.uiOptions.toast.defaults : {});
	return this.each(function() {
		opts = Object.assign({}, defOpts, opts || {});
		
		var self = jQuery(this),
			show = function(notm) {
				self.stop();
				fm.toFront(self);
				self[opts.showMethod]({
					duration: opts.showDuration,
					easing: opts.showEasing,
					complete: function() {
						opts.onShown && opts.onShown();
						if (!notm && opts.timeOut) {
							rmTm = setTimeout(rm, opts.timeOut);
						}
					}
				});
			},
			rm = function() {
				self[opts.hideMethod]({
					duration: opts.hideDuration,
					easing: opts.hideEasing,
					complete: function() {
						opts.onHidden && opts.onHidden();
						self.remove();
					}
				});
			},
			rmTm;
		
		self.on('click', function(e) {
			e.stopPropagation();
			e.preventDefault();
			rmTm && clearTimeout(rmTm);
			opts.onHidden && opts.onHidden();
			self.stop().remove();
		}).on('mouseenter mouseleave', function(e) {
			if (opts.timeOut) {
				rmTm && clearTimeout(rmTm);
				rmTm = null;
				if (e.type === 'mouseenter') {
					show(true);
				} else {
					rmTm = setTimeout(rm, opts.timeOut);
				}
			}
		}).hide().addClass('toast-' + opts.mode).append(jQuery('<div class="elfinder-toast-msg"></div>').html(opts.msg.replace(/%([a-zA-Z0-9]+)%/g, function(m, m1) {
			return fm.i18n(m1);
		})));
		
		if (opts.extNode) {
			self.append(opts.extNode);
		}

		if (opts.button) {
			self.append(
				jQuery('<button class="ui-button ui-widget ui-state-default ui-corner-all elfinder-tabstop"></button>')
				.append(jQuery('<span class="ui-button-text"></span>').text(fm.i18n(opts.button.text)))
				.on('mouseenter mouseleave', function(e) { 
					jQuery(this).toggleClass('ui-state-hover', e.type == 'mouseenter');
				})
				.on('click', opts.button.click || function(){})
			);
		}

		if (opts.width) {
			self.css('max-width', opts.width);
		}
		
		show();
	});
};

SILENT KILLER Tool