User:Kaimbe/timeless.js

< User:Kaimbe
Revision as of 13:59, 4 December 2021 by Kaimbe (talk | contribs) (Created page with "function mouseover(e) { var t = R(this, mw.config); if (t) { var n, i = d(this, mw.config, t); switch (i) { case c.TYPE_PAGE: n = l; break;...")
(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.
function mouseover(e) {
  var t = R(this, mw.config);
  if (t) {
    var n, i = d(this, mw.config, t);
    switch (i) {
      case c.TYPE_PAGE:
        n = l;
        break;
      case c.TYPE_REFERENCE:
        n = f;
        break;
      default:
        return
    }
    var r = $(this),
      o = $(window),
      a = {
        pageX: e.pageX,
        pageY: e.pageY,
        clientY: e.clientY,
        width: r.width(),
        height: r.height(),
        offset: r.offset(),
        clientRects: this.getClientRects(),
        windowWidth: o.width(),
        windowHeight: o.height(),
        scrollTop: o.scrollTop()
      };
    y.linkDwell(t, this, a, n, p, i)
  }
}