MediaWiki:Common.js
From M.Eng. René Schwarz, Bremen/Merseburg
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* Das folgende JavaScript wird für alle Benutzer geladen. */
//================================================================================
//*** force the loading of another JavaScript file (Kopie von [[Commons:Common.js]])
// Local Maintainer: [[Commons:User:Dschwen]]
function includePage(name) {
document.write('<script type="text/javascript" src="' + wgScript + '?title='
+ name + '&action=raw&ctype=text/javascript&dontcountme=s"><\/script>'); // smaxage=3600
}
//================================================================================
//*** import Onlyifuploading-functions
// SEE ALSO [[MediaWiki:Onlyifuploading.js]]
if (wgCanonicalSpecialPageName == "Upload") {
includePage("MediaWiki:Onlyifuploading.js");
includePage("MediaWiki:Onlyifediting.js");
}
//================================================================================
//*** import Onlyifediting-functions
// SEE ALSO [[MediaWiki:Onlyifediting.js]]
if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0) {
includePage("MediaWiki:Onlyifediting.js");
}
//================================================================================
jQuery(document).ready(function(){
$('.accordion .head').click(function() {
$(this).next().toggle('slow');
return false;
}).next().hide();
});
Science