MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Altes Köln
Simon (Diskussion | Beiträge) (JS für Tooltips) |
Simon (Diskussion | Beiträge) (Tooltip-Styling, -Verhalten, -Positionierung) |
||
Zeile 9: | Zeile 9: | ||
content: { | content: { | ||
text: $(this).next('.ak-tooltip-text') | text: $(this).next('.ak-tooltip-text') | ||
+ | }, | ||
+ | style: { | ||
+ | widget: true, | ||
+ | def: false | ||
+ | }, | ||
+ | position: { | ||
+ | my: 'bottom center', | ||
+ | at: 'top center' | ||
+ | }, | ||
+ | show: { | ||
+ | event: 'click focus mouseenter', | ||
+ | solo: true | ||
} | } | ||
}); | }); | ||
}); | }); | ||
}); | }); |
Version vom 18. August 2019, 21:20 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ /* Tooltips */ $(function() { $('.ak-text-with-tooltip').each(function() { $(this).qtip({ content: { text: $(this).next('.ak-tooltip-text') }, style: { widget: true, def: false }, position: { my: 'bottom center', at: 'top center' }, show: { event: 'click focus mouseenter', solo: true } }); }); });