MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
PetraMagna (talk | contribs) m (suppress spurious error categories) |
PetraMagna (talk | contribs) (add loaders for audio player and story (experimental)) |
||
Line 61: | Line 61: | ||
if (mw.config.get('wgNamespaceNumber') === 0 && title_split.length === 2 && title_split[1] === 'momotalk') { |
if (mw.config.get('wgNamespaceNumber') === 0 && title_split.length === 2 && title_split[1] === 'momotalk') { |
||
mw.loader.load( '/wiki/MediaWiki:MomotalkChoice.js?action=raw&ctype=text/javascript' ); |
mw.loader.load( '/wiki/MediaWiki:MomotalkChoice.js?action=raw&ctype=text/javascript' ); |
||
} |
} |
||
if (document.getElementsByClassName("audio-player").length > 0) { |
|||
mw.loader.load( '/wiki/MediaWiki:AudioPlayer.js?action=raw&ctype=text/javascript' ); |
|||
} |
|||
if (document.getElementsByClassName("story-container").length > 0) { |
|||
mw.loader.load( '/wiki/MediaWiki:Story.js?action=raw&ctype=text/javascript' ); |
|||
} |
|||
} |
} |
||
}); |
}); |