2024.7.30

This commit is contained in:
小赵同学 committed 2024-07-30 09:35:12 +08:00
1 parent afcdc60f7e
commit 62a9ef2b21
212 files changed
+1929 -1438

No files matched your search

+3 -6
View File
@@ -29,20 +29,17 @@
</div>
{{/* 文章页面评论弹幕 */}}
<script type="text/javascript">
$(document).ready(function () {
document.addEventListener('DOMContentLoaded', function () {
// 获取当前页面的路径
var currentPath = "{{ .RelPermalink }}";
// console.log(currentPath);
// 调用封装的函数
fetchCommentsAndCreateBarrager(currentPath, {
looper_time: 3000, // 每条弹幕的发送间隔,单位毫秒
defaultAvatar: 'static/default-avatar.png', // 默认头像
defaultInfo: 'No comment', // 默认评论内容
defaultLink: '#', // 默认用户链接
close: true, // 显示关闭按钮
speed: 6, // 弹幕速度,单位秒
color: '#fff', // 弹幕颜色
old_ie_color: '#000000' // IE低版兼容色
speed: 10, // 弹幕速度,单位秒
});
});
</script>