LLWiki正在建设中,欢迎加入我们

“User:Bhsd/widget/songposition.js”的版本间差异

跳转到导航 跳转到搜索
无编辑摘要
(支持多种目标)
target = targets.join(),
map = new Map(),
$labelbody = $( '<div>#bodyContent', {html: '<div>'}),;
$body = $( '#bodyContent' ).on('mouseenter', target, function() {
$label.children( 'div' ).html( map.get(this) );
});
mw.hook( 'wikipage.content' ).add($content => { // 更新图片对应关系
if ($content.find( '.member-symbol-image' ).length === 0) { return; }
mw.loader.using(['oojs-ui-core', 'ext.gadget.site-lib']).then(() => {
for (const t of targets) {
const $label = $('<div>', {html: '<div>'});
$body = $( '#bodyContent' ).on('mouseenter', targett, function() {
$label.children( 'div' ).html( map.get(this) );
});
mw.tipsy($body, t, {id: `${t}-popup`}, $label);
}
16,874

个编辑

导航菜单