From jugglingpatterns
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
// deine beiden Dateien laden |
// deine beiden Dateien laden |
||
loadModule('/js/animation.js'); |
loadModule('/js/animation.js'); |
||
loadModule('/js/mydarkreader.js'); |
|||
// use by using Template:AnimateSiteswap which provides the matching html |
// use by using Template:AnimateSiteswap which provides the matching html |
||
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");
//mw.loader.load('//he.wikipedia.org/w/index.php?title=Mediawiki:Gadget-ime.js&action=raw&ctype=text/javascript');