v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Lethosor/main.js"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (update from local version)
m (fix })
Line 25: Line 25:
 
 
 
return _le;
 
return _le;
)();
+
})();
 
});
 
});

Revision as of 02:44, 28 February 2013

;jQuery(function($){
LE=(function(){
	_le = {};
	function A(a,b){
		if(!b){
			if (typeof a != 'object') return;
			for(i in a){
				if(i in {}) continue;
				_le[i] = a[i]
			}
		}
		else _le[a]=b;
		return A;
	}
	function init(){
		if(window.console&&window.console.log) console.log("Loaded LethosorMenu");
		link = $("<a>").attr({href:'#'}).text("LethosorMenu");
		menuitem = $("<li>").append(link);
		$("div#p-personal ul").append(menuitem);
		link.bind('click', function(e){
			e.preventDefault();
		});
	}
	init();
	
	return _le;
})();
});