Jump to content

User:MindstormsKid/vector.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by MindstormsKid (talk | contribs) at 07:34, 16 January 2010 (update jquery to 1.4). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.
importScriptURI("http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"); // jquery

importScript('User:Ioeth/friendlytag.js'); // friendly tagging

addOnloadHook(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; }
	})();
});