MediaWiki:Common.js: Difference between revisions

From UCGO-WIKI
Jump to navigation Jump to search
(Testing this functionality)
 
No edit summary
Line 2: Line 2:
$(function () {
$(function () {
var myElement = document.getElementById('mw-mywiki-example');
var myElement = document.getElementById('mw-mywiki-example');
console.log('test wiki js')
myElement.innerHTML = 'any HTML';
myElement.innerHTML = 'any HTML';
}());
}());

Revision as of 03:24, 15 April 2020

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
	var myElement = document.getElementById('mw-mywiki-example');
	console.log('test wiki js')
	myElement.innerHTML = 'any HTML';
}());