Jump to content

User:MindstormsKid/vector.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Ioeth/friendlytag.js'); // friendly tagging

$(function(){
	var $ = jQuery.noConflict();

	/*** clock! ***/
	(function(){
		$("#p-personal ul").prepend('<li id="pt-time">');

		setInterval(function(){
			var date = new Date();
			$("#pt-time").html(addzero(date.getUTCHours()) + ":" + addzero(date.getUTCMinutes()) + ":" + addzero(date.getUTCSeconds()));
		}, 1000);

		function addzero(n) { return (n < 10 ? "0" : "") + n; }
	})();
});