修复若干bug
This commit is contained in:
1 parent
94855a49bf
commit
21fa47801b
14 files changed
+69
-130
No files matched your search
@@ -75,7 +75,8 @@ function initArtalkAndGetComments() {
|
||||
el: '#Comments', // 绑定元素的 Selector
|
||||
server: 'https://artalk.usj.cc', // 后端地址
|
||||
site: '优世界', // 你的站点名
|
||||
flatMode: true
|
||||
flatMode: true,
|
||||
emoticons: '/emotion/OwO.json'
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3,20 +3,8 @@ var pjax = new Pjax({
|
||||
// 这里填写页面中改变的部分(和 CSS 选择器用法一样)
|
||||
selectors: ["title", "#pjax-container"],
|
||||
cacheBust: false,
|
||||
elements: "a",
|
||||
switches: {
|
||||
"#pjax-container": Pjax.switches.sideBySide
|
||||
},
|
||||
switchesOptions: {
|
||||
"#pjax-container": {
|
||||
classNames: {
|
||||
add: "pjax-enter",
|
||||
remove: "pjax-leave",
|
||||
backward: "pjax-backward",
|
||||
forward: "pjax-forward"
|
||||
}
|
||||
}
|
||||
}
|
||||
elements: "a"
|
||||
// 移除 sideBySide,改用默认替换以配合骨架屏逻辑
|
||||
});
|
||||
// 设置图片灯箱回调函数
|
||||
function lazyimg_pjax() {
|
||||
@@ -146,7 +134,7 @@ function lazyimg_pjax() {
|
||||
// 设置pjax预先加载代码
|
||||
function pjax_reload() {
|
||||
// 给pjax容器加入css过渡动画
|
||||
$("#pjax-container").addClass("uk-animation-slide-bottom-small");
|
||||
// $("#pjax-container").addClass("uk-animation-slide-bottom-small");
|
||||
// 评论区过渡动画
|
||||
$(".comment-meta").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
|
||||
$(".comment-author vcard").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
|
||||
@@ -198,7 +186,8 @@ document.addEventListener("pjax:complete", function () {
|
||||
el: '#Comments', // 绑定元素的 Selector
|
||||
server: 'https://artalk.usj.cc', // 后端地址
|
||||
site: '优世界', // 你的站点名
|
||||
flatMode: true
|
||||
flatMode: true,
|
||||
emoticons: '/emotion/OwO.json'
|
||||
})
|
||||
}
|
||||
// 重载评论弹幕
|
||||
|
||||
Reference in new issue
Block a user