MediaWiki:Common.js

From Animation Luzern Wiki
Revision as of 01:34, 17 January 2018 by Jean.first@animation-luzern.ch (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Change the upload Link */
$( function () {
  $( '#t-upload a' ).attr("href", "/index.php?title=Special:BatchUpload");

    /* Open menus on mouse over, don't do anything on touch-devices. */

    window.IsTouchDevice = false;
    window.addEventListener('touchstart', function onFirstTouch() {
        window.IsTouchDevice = true;
        window.removeEventListener('touchstart', onFirstTouch, false);
    }, false);
$('ul.navbar-nav li.dropdown').hover(function() {
  if (!window.IsTouchDevice)
    $(this).find('.dropdown-menu').stop(true, true).delay(50).fadeIn(200);
}, function() {
  if (!window.IsTouchDevice)
    $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(200);
});
});