MediaWiki:Common.js

From Hidden Empire Wiki
Revision as of 12:21, 1 March 2019 by FO-nTTaX (talk | contribs) (Die Seite wurde neu angelegt: „→‎Footer Links anpassen: $('#footer-places-disclaimer a').attr('href', 'https://www.hiddenempire.de/impressum.html').attr('target', '_blank'); /* Navbox Ob…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* Footer Links anpassen */
$('#footer-places-disclaimer a').attr('href', 'https://www.hiddenempire.de/impressum.html').attr('target', '_blank');

/* Navbox Objekte */
$('#navbox-objekte-toggle-button').click(function() {
   $('tr.navbox-toggle').toggle('slow');
   if($('#navbox-objekte-toggle-button').text() == 'ausklappen') {
      $('#navbox-objekte-toggle-button').text('einklappen');
   } else if($('#navbox-objekte-toggle-button').text() == 'einklappen') {
      $('#navbox-objekte-toggle-button').text('ausklappen');
   }
});

/* Navbox Flottenbefehle */
$('#navbox-flottenbefehle-toggle-button').click(function() {
   $('tr.navbox-flottenbefehle-toggle').toggle('slow');
   if($('#navbox-flottenbefehle-toggle-button').text() == 'ausklappen') {
      $('#navbox-flottenbefehle-toggle-button').text('einklappen');
   } else if($('#navbox-flottenbefehle-toggle-button').text() == 'einklappen') {
      $('#navbox-flottenbefehle-toggle-button').text('ausklappen');
   }
});