MediaWiki:Common.js: Difference between revisions

From jugglingpatterns
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
// use by using Template:AnimateSiteswap which provides the matching html
mw.loader.load('/load.php?modules=&only=scripts&target=js/siteswap.mjs')
import("/js/animation.js");
.then(function () {
import("/js/mydarkreader.js");
var sw = new Siteswap("531");
console.log(JSON.stringify(sw));
})
.catch(function (error) {
console.error("Error loading script:", error);
});

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");