16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 (更新了mw.menu()方法) |
||
}) );
let items = [], $table;
const
{text: '
{text:
$menu = menu.$element,
colors = { muse: '#e4007f', aqours: '#32aaff', 'saint snow': '#cb3935', nijigaku: '#f39800', liella: '#a5469c',
▲ ], {}, 1),
sif: '#77d2af', as: '#ff91af'
},
dict = {ll: 'muse', llss: 'aqours', llspst: 'liella'},
writeText = () => {
const wikitext = items.map(ele =>
} else { $table = $('.mw-parser-output table'); }
mw.loader.addStyleTag( '.mainpage-flex td:last-child { width: calc(' + width + 'px - 1.2em); }' );
$menu.prev( '.mainpage-tag' ).css('background-color',
items[ $menu.closest( 'tr' ).index() ][0] =
});
$table.on('dblclick', 'td:first-child', function() {
$menu.appendTo( this );
menu.selectItemByData( dict[name] || name );
menu.toggle( true );
}).on('dblclick', 'td:last-child', function() {
const $this = $(this),
|