mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-17 04:40:53 +08:00
feat: 新增 Microsoft Clarity
feat: 新增 Cloudflare Analytics feat: aside 個人資料widget可關閉button fix: 修復medium zoom 報錯的 bugs
This commit is contained in:
@@ -280,7 +280,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
const addMediumZoom = () => {
|
||||
const zoom = mediumZoom(document.querySelectorAll('#article-container :not(a)>img'))
|
||||
zoom.on('open', e => {
|
||||
const photoBg = $(document.documentElement).attr('data-theme') === 'dark' ? '#121212' : '#fff'
|
||||
const photoBg = document.documentElement.getAttribute('data-theme') === 'dark' ? '#121212' : '#fff'
|
||||
zoom.update({
|
||||
background: photoBg
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user