MediaWiki:Common.js:修订间差异
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
| 第241行: | 第241行: | ||
$(".mw-spcontent > p:nth-child(1), .mw-spcontent > p:nth-child(2), .mw-spcontent > p:nth-child(7)").hide(); | $(".mw-spcontent > p:nth-child(1), .mw-spcontent > p:nth-child(2), .mw-spcontent > p:nth-child(7)").hide(); | ||
} | } | ||
// 自定义浮动目录样式添加 | |||
$(function(){ | |||
var toc = $('#toc'); | |||
if (!toc.hasClass('toc-custom-disable')) { | |||
var tocAfter = toc.clone().addClass('toc-custom'); | |||
toc.after( tocAfter ); | |||
tocAfter.css('marginRight', -Math.min(tocAfter.outerWidth(), 347)); | |||
} | |||
}); | |||
//编辑请求 | //编辑请求 | ||
function editRequest() { | function editRequest() { | ||