mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix home page
This commit is contained in:
parent
8be1ffdfe0
commit
00df19d3e3
@ -58,6 +58,7 @@ InstantClickChangeFns.push(function() {
|
||||
$('.markdown #api').nextAll().andSelf().appendTo('.api-container');
|
||||
|
||||
// 滚动时固定锚点、高亮当前项
|
||||
if ($('.toc')[0]) {
|
||||
var titles = $('.markdown :header:not(h1)');
|
||||
var doc = $(document);
|
||||
var tocTop = $('.toc').offset().top;
|
||||
@ -84,12 +85,11 @@ InstantClickChangeFns.push(function() {
|
||||
$('.toc').removeClass('sticky');
|
||||
}
|
||||
}
|
||||
|
||||
onScroll();
|
||||
|
||||
// 滚动高亮
|
||||
$(window).off('scroll');
|
||||
$(window).on('scroll', onScroll);
|
||||
}
|
||||
|
||||
// 添加上一页下一页
|
||||
if ($('.aside-container li > a').length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user