User:Corey/vector.js

From Yugipedia
Jump to: navigation, search

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down Ctrl and click the Refresh or Reload button. Firefox: hold down ⇧ Shift while clicking Reload (or press Ctrl+⇧ Shift+R). Google Chrome and Safari users can just click the Reload button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

/**
 * Main JS function.
 */
(function(window, $, mw, console, delay) {
	"use strict";

	/**
	 * Global objects.
	 */

	const LAST_LOG = '14:22, 8 March 2018 (UTC)';
	
	/**
	 * Return.
	 */

	console.log(
		'%cUser Vector.js loaded! Last version from ' + LAST_LOG + '.',
		'color: blue;'
	);

	return true;

	/** End. */

})(window, window.jQuery, window.mediaWiki, window.console, (function(window, $) {
	"use strict";
	return function(t, fn) {
		if(!fn && $.isFunction(t)) {
			fn = t;
			t = undefined;
		}
		return window.setTimeout(fn, t);
	};
})(window, window.jQuery));
/** End. */