This commit is contained in:
小赵同学 committed 2024-08-08 15:16:42 +08:00
1 parent 91399bb457
commit d9f1fbdb28
124 files changed
+259 -304

No files matched your search

+1 -3
View File
@@ -10,11 +10,9 @@
</div>
</div>
<hr class="uk-divider-icon">
<div id="comments" class="comments-area">
<div class="comments-area">
<!-- 评论区内容 -->
{{ if or (eq .Type "ly") (eq .Type "post") }}
{{ partial "artalk.html" . }}
{{ end }}
<!-- 评论区内容结束 -->
</div>
+2 -2
View File
@@ -7,8 +7,8 @@
<script>
Artalk.init({
el: '#Comments', // 绑定元素的 Selector
server: 'https://pl.t-t.live/', // 后端地址
server: 'https://artalk.5b2.cn/', // 后端地址
site: '优世界', // 你的站点名
flatMode: false
flatMode: true
})
</script>
+2 -30
View File
@@ -172,8 +172,6 @@ document.addEventListener("pjax:complete", function () {
NProgress.done();
// 重载一些js样式调整
pjax_reload()
// 重载友圈函数
// fcircle_pjax()
// 激活返回顶部插件
$(function () {
$.scrollUp({
@@ -183,43 +181,17 @@ document.addEventListener("pjax:complete", function () {
});
// 重载评论
if(document.querySelector("#Comments")){
// Waline.init({
// el: '#waline',
// serverURL: 'https://waline.usj.cc',
// lang: "zh-cn",
// imageUploader: false,
// search: false,
// copyright: false,
// requiredMeta:['nick', 'mail'],
// login:'enable',
// pageSize:10,
// highlighter:true,
// reaction: [
// '/image/EhqxZ6DFIJojGNa.gif',
// '/image/qmf5As3evWNXwGQ.gif',
// '/image/ueWLPkmYw75x4cs.gif',
// '/image/nsC1OGoBKfa8Hel.gif',
// '/image/VKuBXqR91TPHnyc.gif',
// '/image/2OmAWPeulq4ta8T.gif'
// ],
// });
Artalk.init({
el: '#Comments', // 绑定元素的 Selector
server: 'https://pl.t-t.live/', // 后端地址
server: 'https://artalk.5b2.cn/', // 后端地址
site: '优世界', // 你的站点名
flatMode:false
flatMode: true
})
}
// 重载文章弹幕
if(!isMobile()){
loadBarrager();
}
//当前页面是否为移动端
if (isMobile()) {
console.log('"当前为移动端"');
} else {
console.log('"当前为电脑端"');
}
});