MediaWiki:Common.js

From Leo's Notes
Revision as of 22:45, 29 March 2015 by Leo (talk | contribs)
This page was last edited on 29 March 2015, at 22:45.

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */


var SteamrWikiApp = function() {
	var self = {
		init : function() {
			self.articleSelfSignedSSL();
		},
		
		// For the self signed SSL page
		articleSelfSignedSSL : function () {
			if ( ! $("#selfsigned-domain").length) {
				return;
			}
			
			$("#selfsigned-domain").change(function() {
				alert("HEllo");
			});
		},
		foo : function() {}
	};
	
	self.init.apply(self);
	return self;
};

$(function() {
	var app = new SteamrWikiApp();
});