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

“MediaWiki:Gadget-inspect.js”的版本间差异

跳转到导航 跳转到搜索
添加61字节 、​ 2021年2月10日 (三) 12:56
无编辑摘要
// 处理页面上方的差异
$('.diff').click(e => {
const row = $( e.target ).closest('tr'),;
if isLineno = (row.childrenhasClass( '.diff-linenotitle' ).length ?) 1{ :return; 0,}
const isLineno = row.children( '.diff-lineno' ).length ? 1 : 0,
rowLineno = isLineno ? row : row.prevAll( ':has(.diff-lineno)' ).first(),
n = parseInt( rowLineno.children().last().text().match(/\d+/) ) + row.index() - rowLineno.index()
16,874

个编辑

导航菜单