|
Thanks for using our site! |
MediaWiki:Common.js: Difference between revisions
From ranchstory
Jump to navigationJump to search
imported>Stephen64 No edit summary |
imported>Stephen64 No edit summary |
(No difference)
| |
Revision as of 23:54, 6 January 2021
/* Any JavaScript here will be loaded for all users on every page load. */
/* Loads the JS Required fro the Discord Widget */
mw.loader.load( '/w/index.php?title=MediaWiki:DiscordWidget.js&action=raw&ctype=text/javascript' );
/* Loads the JS Required for a Twitter Widget */
window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));
/* Loads the JS Required fro the Twitter Widget */
mw.loader.load( '/w/index.php?title=MediaWiki:TwitterWidget.js&action=raw&ctype=text/javascript' );