This commit is contained in:
haoouba
2021-02-18 13:13:49 +08:00
parent 8ea1bd4df2
commit 4fba3b24a2
2 changed files with 1 additions and 4 deletions

View File

@@ -159,9 +159,6 @@ document.addEventListener('DOMContentLoaded', () => {
$(this).addClass('active').siblings().removeClass('active')
const url = $(this).attr('data-src')
$('.joe_detail__article-video .play iframe').attr({ src: player + url })
$('.joe_detail__article-video .play .title').html('正在播放:' + $(this).html())
const offset = $('.joe_detail__article-video .play').offset().top - $('.joe_header').height() - 15
window.scrollTo({ top: offset, behavior: 'smooth' })
})
$('.joe_detail__article-video .episodes .item').first().click()
}