This commit is contained in:
Van
2019-03-21 21:34:11 +08:00
parent 1558900384
commit ad7e12ef30
11 changed files with 64 additions and 31 deletions

View File

@@ -2109,6 +2109,10 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
// ==============
$(window).on('load', function () {
$('.article__toc').animate({
'left': ($('.site').outerWidth() + $('.site').offset().left) + 'px'
}, 600)
$('[data-spy="affix"]').each(function () {
var $spy = $(this)
var data = $spy.data()