From jugglingpatterns
Content deleted Content added
No edit summary |
No edit summary |
||
| (43 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| ⚫ | |||
/* Any JavaScript here will be loaded for all users on every page load. */ |
|||
const s = document.createElement('script'); |
|||
s.type = 'module'; |
|||
s.src = src; |
|||
document.head.appendChild(s); |
|||
} |
|||
// deine beiden Dateien laden |
|||
| ⚫ | |||
loadModule('/js/animation.js'); |
|||
var myPlace = document.getElementById('siteswapanimation'); |
|||
myPlace.innerHTML = 'any HTML'; |
|||
// use by using Template:AnimateSiteswap which provides the matching html |
|||
}()); |
|||
console.log("importing animations"); |
|||
Latest revision as of 19:20, 8 September 2025
function loadModule(src) {
const s = document.createElement('script');
s.type = 'module';
s.src = src;
document.head.appendChild(s);
}
// deine beiden Dateien laden
loadModule('/js/animation.js');
// use by using Template:AnimateSiteswap which provides the matching html
console.log("importing animations");