mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
fix: 修復本地搜索文章鏈接無法跳轉bugs
feat: 當點擊評論框時,valine背景圖片隱藏 feat: 網頁進入動畫效果可關閉 style: 部分css和js 調整
This commit is contained in:
@@ -186,7 +186,7 @@ $(function () {
|
||||
* 首頁top_img底下的箭頭
|
||||
*/
|
||||
const scrollDownInIndex = () => {
|
||||
$('#scroll_down').on('click', function () {
|
||||
$('#scroll-down').on('click', function () {
|
||||
btf.scrollToDest('#content-inner')
|
||||
})
|
||||
}
|
||||
@@ -656,22 +656,6 @@ $(function () {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 百度推送
|
||||
*/
|
||||
const pushToBaidu = () => {
|
||||
const bp = document.createElement('script')
|
||||
const curProtocol = window.location.protocol.split(':')[0]
|
||||
if (curProtocol === 'https') {
|
||||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'
|
||||
} else {
|
||||
bp.src = 'http://push.zhanzhang.baidu.com/push.js'
|
||||
}
|
||||
bp.dataset.pjax = ''
|
||||
const s = document.getElementsByTagName('script')[0]
|
||||
s.parentNode.insertBefore(bp, s)
|
||||
}
|
||||
|
||||
/**
|
||||
* tag-hide
|
||||
*/
|
||||
@@ -789,7 +773,6 @@ $(function () {
|
||||
clickFnOfSubMenu()
|
||||
GLOBAL_CONFIG.islazyload && lazyloadImg()
|
||||
GLOBAL_CONFIG.copyright !== undefined && addCopyright()
|
||||
GLOBAL_CONFIG.baiduPush && pushToBaidu()
|
||||
}
|
||||
|
||||
window.refreshFn = function () {
|
||||
|
||||
Reference in New Issue
Block a user