MediaWiki:Common.js: Difference between revisions
From jugglingpatterns
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
mw.loader.load('/ |
mw.loader.load('/js/siteswap.mjs') |
||
.then(function () { |
.then(function () { |
||
var sw = new Siteswap("531"); |
var sw = new Siteswap("531"); |
Revision as of 09:52, 15 November 2023
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); });