MediaWiki:Common.js: Difference between revisions
From jugglingpatterns
Tag: Undo |
No edit summary |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
// use by using Template:AnimateSiteswap which provides the matching html |
|||
/* Any JavaScript here will be loaded for all users on every page load. */ |
|||
import("/js/animation.js"); |
|||
import("/js/mydarkreader.js"); |
|||
$(function () { |
|||
var animationPlace = document.getElementById('siteswapanimation'); |
|||
siteswap=animationPlace.innerHTML; |
|||
}()); |
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");