fix: 修復本地搜索文章鏈接無法跳轉bugs

feat: 當點擊評論框時,valine背景圖片隱藏
feat: 網頁進入動畫效果可關閉
style: 部分css和js 調整
This commit is contained in:
Jerry
2020-09-19 23:46:53 +08:00
Unverified
parent c7318a3793
commit a2551d2d29
17 changed files with 272 additions and 258 deletions

View File

@@ -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 () {

View File

@@ -62,7 +62,7 @@ $(function () {
return {
title: $('title', this).text(),
content: $('content', this).text(),
url: $('url', this).text()
url: GLOBAL_CONFIG.root + $('url', this).text()
}
}).get()