MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/vendor/jquery.js&action=raw&ctype=text/javascript' ); */ | /* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/vendor/jquery.js&action=raw&ctype=text/javascript' ); */ | ||
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/foundation/foundation.js&action=raw&ctype=text/javascript' ); */ | /* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/foundation/foundation.js&action=raw&ctype=text/javascript' ); */ | ||
jQuery(document).ready(function() { | |||
jQuery(document).foundation(function(response) { | |||
if (window.console) | |||
console.log(response.errors); | |||
}); | |||
jQuery("#pt-notifications").prependTo("#echo-notifications-alerts"); | |||
jQuery("#pt-notifications-message").prependTo("#echo-notifications-messages"); | |||
jQuery("#pt-notifications-alert").prependTo("#echo-notifications-alerts"); | |||
jQuery("#pt-notifications-notice").prependTo("#echo-notifications-notice"); | |||
}); | |||
Revision as of 20:32, 16 March 2019
/* Any JavaScript here will be loaded for all users on every page load. */
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/vendor/jquery.js&action=raw&ctype=text/javascript' ); */
/* mw.loader.load('https://www.zd10.net/new_wiki/skins/pivot/assets/scripts/foundation/foundation.js&action=raw&ctype=text/javascript' ); */
jQuery(document).ready(function() {
jQuery(document).foundation(function(response) {
if (window.console)
console.log(response.errors);
});
jQuery("#pt-notifications").prependTo("#echo-notifications-alerts");
jQuery("#pt-notifications-message").prependTo("#echo-notifications-messages");
jQuery("#pt-notifications-alert").prependTo("#echo-notifications-alerts");
jQuery("#pt-notifications-notice").prependTo("#echo-notifications-notice");
});