MediaWiki:Common.js: Difference between revisions

From jugglingpatterns
No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
// use by using Template:AnimateSiteswap which provides the matching html
/* Any JavaScript here will be loaded for all users on every page load. */
import("/js/animation.js");

import("/js/mydarkreader.js");
$(function () {
var myPlace = document.getElementById('siteswapanimation');
myPlace.innerHTML = '<pre>' + myPlace.innerHTML + ' hello</pre>';
}());

Latest revision as of 14:03, 16 November 2023

// use by using Template:AnimateSiteswap which provides the matching html
import("/js/animation.js");
import("/js/mydarkreader.js");