MediaWiki:Common.js: Difference between revisions

From jugglingpatterns
No edit summary
No edit summary
Line 3: Line 3:
$(function () {
$(function () {
var myPlace = document.getElementById('siteswapanimation');
var myPlace = document.getElementById('siteswapanimation');
myPlace.innerHTML = '<pre>' + myPlace.innerHTML + ' hello</pre>';
alert(myPlace.innerHTML);
}());
}());

Revision as of 15:05, 14 November 2023

/* Any JavaScript here will be loaded for all users on every page load. */

$(function () {
	var myPlace = document.getElementById('siteswapanimation');
	alert(myPlace.innerHTML);
}());