MediaWiki:Common.js: Difference between revisions
From jugglingpatterns
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
mw.loader.load('/js/siteswap.mjs') |
mw.loader.load('/js/siteswap.mjs') |
||
.then(function () { |
|||
var sw = new Siteswap("531"); |
|||
console.log(JSON.stringify(sw)); |
|||
}) |
|||
.catch(function (error) { |
|||
console.error("Error loading script:", error); |
|||
}); |
Revision as of 09:58, 15 November 2023
mw.loader.load('/js/siteswap.mjs')