SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > > plugins > wp-optimize > > js >


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content//plugins/wp-optimize//js/

NameTypeSizeLast ModifiedActions
handlebars Directory - -
jszip Directory - -
serialize-json Directory - -
sortable Directory - -
blockUI-4-2-3.min.js File 627 bytes July 17 2025 21:05:49.
blockUI.js File 1251 bytes July 17 2025 21:05:49.
cache-4-2-3.min.js File 8235 bytes July 17 2025 21:05:49.
cache.js File 15614 bytes July 17 2025 21:05:49.
delay-js-4-2-3.min.js File 1188 bytes July 17 2025 21:05:49.
delay-js.js File 5519 bytes July 17 2025 21:05:49.
heartbeat-4-2-3.min.js File 2848 bytes July 17 2025 21:05:49.
heartbeat.js File 7703 bytes July 17 2025 21:05:49.
loadAsync-4-2-3.min.js File 304 bytes July 17 2025 21:05:49.
loadAsync.js File 670 bytes July 17 2025 21:05:49.
loadCSS-4-2-3.min.js File 818 bytes July 17 2025 21:05:49.
loadCSS.js File 3119 bytes July 17 2025 21:05:49.
minify-4-2-3.min.js File 12171 bytes July 17 2025 21:05:49.
minify.js File 21249 bytes July 17 2025 21:05:49.
modal-4-2-3.min.js File 922 bytes July 17 2025 21:05:49.
modal.js File 1837 bytes July 17 2025 21:05:49.
queue-4-2-3.min.js File 617 bytes July 17 2025 21:05:49.
queue.js File 3397 bytes July 17 2025 21:05:49.
send-command-4-2-3.min.js File 2641 bytes July 17 2025 21:05:49.
send-command.js File 6019 bytes July 17 2025 21:05:49.
status-4-2-3.min.js File 3609 bytes July 17 2025 21:05:49.
status.js File 6977 bytes July 17 2025 21:05:49.
wpo-images-view-4-2-3.min.js File 7510 bytes July 17 2025 21:05:49.
wpo-images-view.js File 15954 bytes July 17 2025 21:05:49.
wpoadmin-4-2-3.min.js File 38117 bytes July 17 2025 21:05:49.
wpoadmin.js File 77277 bytes July 17 2025 21:05:49.
wposmush-4-2-3.min.js File 23488 bytes July 17 2025 21:05:49.
wposmush.js File 46594 bytes July 17 2025 21:05:49.

Reading File: /home/transcarter/public_html/wp-content//plugins/wp-optimize//js//queue.js

/**
Adapted and extended from the work of Stephen Morley - http://code.stephenmorley.org/javascript/queues/

Queue.js

A function to represent a queue

Created by Stephen Morley - http://code.stephenmorley.org/ - and released under
the terms of the CC0 1.0 Universal legal code:

http://creativecommons.org/publicdomain/zero/1.0/legalcode
 */

/**
 * Creates a new queue. A queue is a first-in-first-out (FIFO) data structure -
 * items are added to the end of the queue and removed from the front.
 *
 * @return {void}
 */
function Updraft_Queue() {

	// Initialise the queue and offset.
	var queue  = [];
	var offset = 0;
	var locked = false;

	/**
	* Returns the length of the queue.
	*
	* @returns {number} - the length of the queue
	*/
	this.get_length = function () {
		return (queue.length - offset);
	}

	/**
	* Query whether the queue is empty or not
	*
	* @returns {boolean} - returns true if the queue is empty, and false otherwise.
	*/
	this.is_empty = function () {
		return (queue.length == 0);
	}

	/**
	 * Enqueues the specified item. The parameter is:
	 *
	 * @param {*} item The item to enqueue
	 *
	 * @return {void}
	 */
	this.enqueue = function (item) {
		queue.push(item);
	}
	
	/**
	 * Returns the queue lock status
	 *
	 * @returns {boolean} - whether the queue is locked or not
	 */
	this.is_locked = function () {
		return locked;
	}
	
	/**
	 * Attempt to get the queue lock
	 *
	 * @returns {boolean} - whether the attempt succeeded or not
	 */
	this.get_lock = function () {
		if (locked) { return false; }
		this.lock();
		return true;
	}

	/**
	* Dequeues an item and returns it. If the queue is empty, the value
	* 'undefined' is returned.
	*
	* @returns {*} - returns and removes the item at the front of the queue, or undefined if the queue is empty
	*/
	this.dequeue = function () {

		// If the queue is empty, return immediately.
		if (queue.length == 0) return undefined;

		// Store the item at the front of the queue.
		var item = queue[offset];

		// Increment the offset and remove the free space if necessary.
		if ((++offset * 2) >= queue.length) {
			queue  = queue.slice(offset);
			offset = 0;
		}

		// Return the dequeued item.
		return item;
	}

	/**
	 * Lock the queue
	 *
	 * @returns {void}
	 */
	this.lock = function () {
		locked = true;
	}
	
	/**
	 * Unlock the queue
	 *
	 * @returns {void}
	 */
	this.unlock = function () {
		locked = false;
	}
	
	/**
	* Returns the item at the front of the queue (without dequeuing it). If the
	* queue is empty then undefined is returned.
	*
	* @returns {*} - returns the item at the front of the queue, or undefined if the queue is empty
	*/
	this.peek = function () {
		return (queue.length > 0 ? queue[offset] : undefined);
	}
	
	/**
	 * Replaces the item at the front of the queue (if any)
	 *
	 * @param {*} item       The item to put at the front of the queue.
	 *
	 * @return {boolean}      Whether or not the item was successfully replaced.
	 */
	this.replace_front = function (item) {
		if (queue.length < 1) { return false; }
		queue[offset] = item;
		return true;
	}

	/**
	 * Checks if any queue object/element contains the ID
	 *
	 * @param {string} id       The ID to search for.
	 *
	 * @return {boolean}      Whether any queue object/element contains the ID.
	 */
	this.contains_id = function (id) {
		return queue.some(function (ele) {
			return ele.optimization_id === id;
		});
	}

}


SILENT KILLER Tool