From afcdc60f7e6a5ee196b6837d61b532785b2606b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B5=B5=E5=90=8C=E5=AD=A6?= <94612053+imzql@users.noreply.github.com> Date: Sun, 28 Jul 2024 21:46:00 +0800 Subject: [PATCH] =?UTF-8?q?2024.7.28=20=E5=AE=8C=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/main.css | 2 +- public/image/bg.svg | 2 ++ public/js/main.js | 28 +++++++++++++++++++----- public/post/1/index.html | 6 ++--- public/post/10/index.html | 6 ++--- public/post/1009/index.html | 6 ++--- public/post/1023/index.html | 6 ++--- public/post/1039/index.html | 6 ++--- public/post/1042/index.html | 6 ++--- public/post/1043/index.html | 6 ++--- public/post/1081/index.html | 6 ++--- public/post/1091/index.html | 6 ++--- public/post/11/index.html | 6 ++--- public/post/1117/index.html | 6 ++--- public/post/1142/index.html | 6 ++--- public/post/1175/index.html | 6 ++--- public/post/12/index.html | 6 ++--- public/post/1200/index.html | 6 ++--- public/post/1219/index.html | 6 ++--- public/post/1223/index.html | 6 ++--- public/post/1243/index.html | 6 ++--- public/post/1248/index.html | 6 ++--- public/post/1269/index.html | 6 ++--- public/post/1279/index.html | 6 ++--- public/post/1284/index.html | 6 ++--- public/post/1287/index.html | 6 ++--- public/post/1289/index.html | 6 ++--- public/post/1299/index.html | 6 ++--- public/post/13/index.html | 6 ++--- public/post/1306/index.html | 6 ++--- public/post/1309/index.html | 6 ++--- public/post/14/index.html | 6 ++--- public/post/15/index.html | 6 ++--- public/post/16/index.html | 6 ++--- public/post/17/index.html | 6 ++--- public/post/18/index.html | 6 ++--- public/post/19/index.html | 6 ++--- public/post/2/index.html | 6 ++--- public/post/20/index.html | 6 ++--- public/post/21/index.html | 6 ++--- public/post/22/index.html | 6 ++--- public/post/23/index.html | 6 ++--- public/post/24/index.html | 6 ++--- public/post/25/index.html | 6 ++--- public/post/26/index.html | 6 ++--- public/post/27/index.html | 6 ++--- public/post/28/index.html | 6 ++--- public/post/29/index.html | 6 ++--- public/post/3/index.html | 6 ++--- public/post/30/index.html | 6 ++--- public/post/31/index.html | 6 ++--- public/post/32/index.html | 6 ++--- public/post/33/index.html | 6 ++--- public/post/34/index.html | 6 ++--- public/post/35/index.html | 6 ++--- public/post/36/index.html | 6 ++--- public/post/37/index.html | 6 ++--- public/post/38/index.html | 6 ++--- public/post/39/index.html | 6 ++--- public/post/4/index.html | 6 ++--- public/post/40/index.html | 6 ++--- public/post/41/index.html | 6 ++--- public/post/42/index.html | 6 ++--- public/post/43/index.html | 6 ++--- public/post/44/index.html | 6 ++--- public/post/45/index.html | 6 ++--- public/post/46/index.html | 6 ++--- public/post/47/index.html | 6 ++--- public/post/48/index.html | 6 ++--- public/post/49/index.html | 6 ++--- public/post/5/index.html | 6 ++--- public/post/50/index.html | 6 ++--- public/post/51/index.html | 6 ++--- public/post/52/index.html | 6 ++--- public/post/53/index.html | 6 ++--- public/post/54/index.html | 6 ++--- public/post/55/index.html | 6 ++--- public/post/56/index.html | 6 ++--- public/post/57/index.html | 6 ++--- public/post/58/index.html | 6 ++--- public/post/59/index.html | 6 ++--- public/post/6/index.html | 6 ++--- public/post/60/index.html | 6 ++--- public/post/61/index.html | 6 ++--- public/post/62/index.html | 6 ++--- public/post/63/index.html | 6 ++--- public/post/64/index.html | 6 ++--- public/post/65/index.html | 6 ++--- public/post/66/index.html | 6 ++--- public/post/67/index.html | 6 ++--- public/post/68/index.html | 6 ++--- public/post/69/index.html | 6 ++--- public/post/7/index.html | 6 ++--- public/post/70/index.html | 6 ++--- public/post/71/index.html | 6 ++--- public/post/72/index.html | 6 ++--- public/post/73/index.html | 6 ++--- public/post/74/index.html | 6 ++--- public/post/75/index.html | 6 ++--- public/post/76/index.html | 6 ++--- public/post/77/index.html | 6 ++--- public/post/78/index.html | 6 ++--- public/post/79/index.html | 6 ++--- public/post/8/index.html | 6 ++--- public/post/80/index.html | 6 ++--- public/post/81/index.html | 6 ++--- public/post/82/index.html | 6 ++--- public/post/83/index.html | 6 ++--- public/post/84/index.html | 6 ++--- public/post/85/index.html | 6 ++--- public/post/86/index.html | 6 ++--- public/post/87/index.html | 6 ++--- public/post/88/index.html | 6 ++--- public/post/89/index.html | 6 ++--- public/post/9/index.html | 6 ++--- public/post/90/index.html | 6 ++--- public/post/91/index.html | 6 ++--- public/post/92/index.html | 6 ++--- public/post/93/index.html | 6 ++--- public/post/94/index.html | 6 ++--- public/post/96/index.html | 6 ++--- public/post/97/index.html | 6 ++--- public/post/986/index.html | 6 ++--- public/post/989/index.html | 6 ++--- public/post/994/index.html | 6 ++--- themes/Ying/layouts/_default/single.html | 2 +- themes/Ying/layouts/partials/waline.html | 4 ++-- themes/Ying/static/css/main.css | 2 +- themes/Ying/static/image/bg.svg | 2 ++ themes/Ying/static/js/main.js | 28 +++++++++++++++++++----- 130 files changed, 419 insertions(+), 383 deletions(-) create mode 100644 public/image/bg.svg create mode 100644 themes/Ying/static/image/bg.svg diff --git a/public/css/main.css b/public/css/main.css index ab873a36..7cd6612b 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -35,7 +35,7 @@ body { line-height: 1.6; font-size: 16px; background: #fafafa; - /*background-image: url('https://usj.cc/bg.svg');*/ + /* background-image: url('../image/bg.svg'); */ /*background-image: url(https://usj.cc/usr/uploads/2023/06/3287615239.jpg);*/ /*background-repeat: space;*/ /*background-size: cover;*/ diff --git a/public/image/bg.svg b/public/image/bg.svg new file mode 100644 index 00000000..6d38d5d0 --- /dev/null +++ b/public/image/bg.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/public/js/main.js b/public/js/main.js index 72e7c81e..036d9ada 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -44,29 +44,28 @@ lazyLoadInit({ showTime: 1100 }); -// 封装的函数:获取评论数据并发布弹幕 + function fetchCommentsAndCreateBarrager(path, options) { $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(path), function(response) { var data = response.data.data; - console.log(data); // 每条弹幕发送间隔 var looper_time = options.looper_time || 3000; // 默认间隔3秒 - var items = data; + var items = flattenComments(data); // 弹幕总数 var total = items.length; // 弹幕索引 var index = 0; // 先执行一次 - if(total != 0){ - createBarrager() + if (total != 0) { + createBarrager(); } function createBarrager() { // 转换数据为弹幕所需的格式 var item = { img: items[index].avatar || options.defaultAvatar || 'static/default-avatar.png', // 头像 - info: items[index].orig || options.defaultInfo || 'No comment', // 评论内容 + info: stripHTML(items[index].orig) || options.defaultInfo || 'No comment', // 过滤后的评论内容 href: items[index].link || options.defaultLink || '#', // 用户链接 close: options.close || true, // 显示关闭按钮 speed: options.speed || 6, // 延迟,单位秒,默认6 @@ -83,5 +82,22 @@ function fetchCommentsAndCreateBarrager(path, options) { setTimeout(createBarrager, looper_time); } } + + // 过滤HTML标签的函数 + function stripHTML(html) { + return html.replace(/<\/?[^>]+(>|$)/g, ""); + } + + // 展平评论和子评论 + function flattenComments(comments) { + var result = []; + comments.forEach(function(comment) { + result.push(comment); + if (comment.children && comment.children.length > 0) { + result = result.concat(flattenComments(comment.children)); + } + }); + return result; + } }); } diff --git a/public/post/1/index.html b/public/post/1/index.html index b46beaf9..bc2532ea 100644 --- a/public/post/1/index.html +++ b/public/post/1/index.html @@ -96,10 +96,10 @@
- + @@ -109,7 +109,7 @@ $(document).ready(function () { var currentPath = "\/post\/1\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/10/index.html b/public/post/10/index.html index d37880b7..15c1dd17 100644 --- a/public/post/10/index.html +++ b/public/post/10/index.html @@ -102,10 +102,10 @@
- + @@ -115,7 +115,7 @@ $(document).ready(function () { var currentPath = "\/post\/10\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1009/index.html b/public/post/1009/index.html index 3ea5b1f9..f914a1eb 100644 --- a/public/post/1009/index.html +++ b/public/post/1009/index.html @@ -105,10 +105,10 @@
- + @@ -118,7 +118,7 @@ $(document).ready(function () { var currentPath = "\/post\/1009\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1023/index.html b/public/post/1023/index.html index 6c25fcc3..91e160ea 100644 --- a/public/post/1023/index.html +++ b/public/post/1023/index.html @@ -196,10 +196,10 @@
- + @@ -209,7 +209,7 @@ $(document).ready(function () { var currentPath = "\/post\/1023\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1039/index.html b/public/post/1039/index.html index 321edb3d..74d296db 100644 --- a/public/post/1039/index.html +++ b/public/post/1039/index.html @@ -139,10 +139,10 @@
- + @@ -152,7 +152,7 @@ $(document).ready(function () { var currentPath = "\/post\/1039\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1042/index.html b/public/post/1042/index.html index 5d2bfde1..431d7297 100644 --- a/public/post/1042/index.html +++ b/public/post/1042/index.html @@ -96,10 +96,10 @@
- + @@ -109,7 +109,7 @@ $(document).ready(function () { var currentPath = "\/post\/1042\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1043/index.html b/public/post/1043/index.html index 902010dc..bae14af3 100644 --- a/public/post/1043/index.html +++ b/public/post/1043/index.html @@ -215,10 +215,10 @@
- + @@ -228,7 +228,7 @@ $(document).ready(function () { var currentPath = "\/post\/1043\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1081/index.html b/public/post/1081/index.html index 969f573f..98aec62d 100644 --- a/public/post/1081/index.html +++ b/public/post/1081/index.html @@ -146,10 +146,10 @@
- + @@ -159,7 +159,7 @@ $(document).ready(function () { var currentPath = "\/post\/1081\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1091/index.html b/public/post/1091/index.html index 987898ea..202beba4 100644 --- a/public/post/1091/index.html +++ b/public/post/1091/index.html @@ -124,10 +124,10 @@
- + @@ -137,7 +137,7 @@ $(document).ready(function () { var currentPath = "\/post\/1091\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/11/index.html b/public/post/11/index.html index 8cd4ba92..b9e63b98 100644 --- a/public/post/11/index.html +++ b/public/post/11/index.html @@ -234,10 +234,10 @@
- + @@ -247,7 +247,7 @@ $(document).ready(function () { var currentPath = "\/post\/11\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1117/index.html b/public/post/1117/index.html index 85efacaa..30c79800 100644 --- a/public/post/1117/index.html +++ b/public/post/1117/index.html @@ -163,10 +163,10 @@
- + @@ -176,7 +176,7 @@ $(document).ready(function () { var currentPath = "\/post\/1117\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1142/index.html b/public/post/1142/index.html index 05cddcae..f4a5a4ac 100644 --- a/public/post/1142/index.html +++ b/public/post/1142/index.html @@ -118,10 +118,10 @@
- + @@ -131,7 +131,7 @@ $(document).ready(function () { var currentPath = "\/post\/1142\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1175/index.html b/public/post/1175/index.html index 9302f61a..65999214 100644 --- a/public/post/1175/index.html +++ b/public/post/1175/index.html @@ -274,10 +274,10 @@
- + @@ -287,7 +287,7 @@ $(document).ready(function () { var currentPath = "\/post\/1175\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/12/index.html b/public/post/12/index.html index 9d1dbd82..cf5a18ab 100644 --- a/public/post/12/index.html +++ b/public/post/12/index.html @@ -199,10 +199,10 @@
- + @@ -212,7 +212,7 @@ $(document).ready(function () { var currentPath = "\/post\/12\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1200/index.html b/public/post/1200/index.html index 9f0a5c47..639a5bd3 100644 --- a/public/post/1200/index.html +++ b/public/post/1200/index.html @@ -209,10 +209,10 @@
- + @@ -222,7 +222,7 @@ $(document).ready(function () { var currentPath = "\/post\/1200\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1219/index.html b/public/post/1219/index.html index 4fad7ca3..8b240690 100644 --- a/public/post/1219/index.html +++ b/public/post/1219/index.html @@ -151,10 +151,10 @@
- + @@ -164,7 +164,7 @@ $(document).ready(function () { var currentPath = "\/post\/1219\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1223/index.html b/public/post/1223/index.html index 6076c3cd..91339c51 100644 --- a/public/post/1223/index.html +++ b/public/post/1223/index.html @@ -113,10 +113,10 @@
- + @@ -126,7 +126,7 @@ $(document).ready(function () { var currentPath = "\/post\/1223\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1243/index.html b/public/post/1243/index.html index 2936f512..b91a6fab 100644 --- a/public/post/1243/index.html +++ b/public/post/1243/index.html @@ -123,10 +123,10 @@
- + @@ -136,7 +136,7 @@ $(document).ready(function () { var currentPath = "\/post\/1243\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1248/index.html b/public/post/1248/index.html index bdb1293a..05b3aab0 100644 --- a/public/post/1248/index.html +++ b/public/post/1248/index.html @@ -175,10 +175,10 @@
- + @@ -188,7 +188,7 @@ $(document).ready(function () { var currentPath = "\/post\/1248\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1269/index.html b/public/post/1269/index.html index 54855226..cb56c6f0 100644 --- a/public/post/1269/index.html +++ b/public/post/1269/index.html @@ -115,10 +115,10 @@
- + @@ -128,7 +128,7 @@ $(document).ready(function () { var currentPath = "\/post\/1269\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1279/index.html b/public/post/1279/index.html index 231e3763..0799ba8b 100644 --- a/public/post/1279/index.html +++ b/public/post/1279/index.html @@ -114,10 +114,10 @@
- + @@ -127,7 +127,7 @@ $(document).ready(function () { var currentPath = "\/post\/1279\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1284/index.html b/public/post/1284/index.html index d260063c..7d653408 100644 --- a/public/post/1284/index.html +++ b/public/post/1284/index.html @@ -101,10 +101,10 @@
- + @@ -114,7 +114,7 @@ $(document).ready(function () { var currentPath = "\/post\/1284\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1287/index.html b/public/post/1287/index.html index a70ede6e..b36a406b 100644 --- a/public/post/1287/index.html +++ b/public/post/1287/index.html @@ -103,10 +103,10 @@
- + @@ -116,7 +116,7 @@ $(document).ready(function () { var currentPath = "\/post\/1287\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1289/index.html b/public/post/1289/index.html index b5c1dc3e..2395d4fd 100644 --- a/public/post/1289/index.html +++ b/public/post/1289/index.html @@ -100,10 +100,10 @@
- + @@ -113,7 +113,7 @@ $(document).ready(function () { var currentPath = "\/post\/1289\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1299/index.html b/public/post/1299/index.html index 77d14ff0..9fc5e69b 100644 --- a/public/post/1299/index.html +++ b/public/post/1299/index.html @@ -121,10 +121,10 @@
- + @@ -134,7 +134,7 @@ $(document).ready(function () { var currentPath = "\/post\/1299\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/13/index.html b/public/post/13/index.html index 5ad436f3..ccbec58d 100644 --- a/public/post/13/index.html +++ b/public/post/13/index.html @@ -132,10 +132,10 @@
- + @@ -145,7 +145,7 @@ $(document).ready(function () { var currentPath = "\/post\/13\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1306/index.html b/public/post/1306/index.html index 8bfe4289..a11d37ee 100644 --- a/public/post/1306/index.html +++ b/public/post/1306/index.html @@ -105,10 +105,10 @@
- + @@ -118,7 +118,7 @@ $(document).ready(function () { var currentPath = "\/post\/1306\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/1309/index.html b/public/post/1309/index.html index 96c8de77..edacf35b 100644 --- a/public/post/1309/index.html +++ b/public/post/1309/index.html @@ -111,10 +111,10 @@
- + @@ -124,7 +124,7 @@ $(document).ready(function () { var currentPath = "\/post\/1309\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/14/index.html b/public/post/14/index.html index 3f2bf663..624e10bb 100644 --- a/public/post/14/index.html +++ b/public/post/14/index.html @@ -186,10 +186,10 @@
- + @@ -199,7 +199,7 @@ $(document).ready(function () { var currentPath = "\/post\/14\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/15/index.html b/public/post/15/index.html index 4747b05d..dd6f1115 100644 --- a/public/post/15/index.html +++ b/public/post/15/index.html @@ -113,10 +113,10 @@
- + @@ -126,7 +126,7 @@ $(document).ready(function () { var currentPath = "\/post\/15\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/16/index.html b/public/post/16/index.html index 91221f6a..5ea6c847 100644 --- a/public/post/16/index.html +++ b/public/post/16/index.html @@ -149,10 +149,10 @@
- + @@ -162,7 +162,7 @@ $(document).ready(function () { var currentPath = "\/post\/16\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/17/index.html b/public/post/17/index.html index ca57d75c..7b4b3663 100644 --- a/public/post/17/index.html +++ b/public/post/17/index.html @@ -128,10 +128,10 @@
- + @@ -141,7 +141,7 @@ $(document).ready(function () { var currentPath = "\/post\/17\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/18/index.html b/public/post/18/index.html index c8c48f1d..2db1a31c 100644 --- a/public/post/18/index.html +++ b/public/post/18/index.html @@ -112,10 +112,10 @@
- + @@ -125,7 +125,7 @@ $(document).ready(function () { var currentPath = "\/post\/18\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/19/index.html b/public/post/19/index.html index 1d006f4d..ccaac2e1 100644 --- a/public/post/19/index.html +++ b/public/post/19/index.html @@ -164,10 +164,10 @@
- + @@ -177,7 +177,7 @@ $(document).ready(function () { var currentPath = "\/post\/19\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/2/index.html b/public/post/2/index.html index adb20151..70bff67c 100644 --- a/public/post/2/index.html +++ b/public/post/2/index.html @@ -139,10 +139,10 @@
- + @@ -152,7 +152,7 @@ $(document).ready(function () { var currentPath = "\/post\/2\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/20/index.html b/public/post/20/index.html index ed074a21..8c9522b8 100644 --- a/public/post/20/index.html +++ b/public/post/20/index.html @@ -159,10 +159,10 @@
- + @@ -172,7 +172,7 @@ $(document).ready(function () { var currentPath = "\/post\/20\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/21/index.html b/public/post/21/index.html index 7a11379c..a2fdd74e 100644 --- a/public/post/21/index.html +++ b/public/post/21/index.html @@ -230,10 +230,10 @@
- + @@ -243,7 +243,7 @@ $(document).ready(function () { var currentPath = "\/post\/21\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/22/index.html b/public/post/22/index.html index c6d87e90..350259c0 100644 --- a/public/post/22/index.html +++ b/public/post/22/index.html @@ -112,10 +112,10 @@
- + @@ -125,7 +125,7 @@ $(document).ready(function () { var currentPath = "\/post\/22\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/23/index.html b/public/post/23/index.html index d49918bb..33be7a82 100644 --- a/public/post/23/index.html +++ b/public/post/23/index.html @@ -120,10 +120,10 @@
- + @@ -133,7 +133,7 @@ $(document).ready(function () { var currentPath = "\/post\/23\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/24/index.html b/public/post/24/index.html index 2d17ee60..8b73c6f2 100644 --- a/public/post/24/index.html +++ b/public/post/24/index.html @@ -110,10 +110,10 @@
- + @@ -123,7 +123,7 @@ $(document).ready(function () { var currentPath = "\/post\/24\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/25/index.html b/public/post/25/index.html index d94e4550..b9f97850 100644 --- a/public/post/25/index.html +++ b/public/post/25/index.html @@ -141,10 +141,10 @@
- + @@ -154,7 +154,7 @@ $(document).ready(function () { var currentPath = "\/post\/25\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/26/index.html b/public/post/26/index.html index dbc89058..ac8c6a2d 100644 --- a/public/post/26/index.html +++ b/public/post/26/index.html @@ -104,10 +104,10 @@
- + @@ -117,7 +117,7 @@ $(document).ready(function () { var currentPath = "\/post\/26\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/27/index.html b/public/post/27/index.html index 309c04bd..05d62bcf 100644 --- a/public/post/27/index.html +++ b/public/post/27/index.html @@ -94,10 +94,10 @@
- + @@ -107,7 +107,7 @@ $(document).ready(function () { var currentPath = "\/post\/27\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/28/index.html b/public/post/28/index.html index 1544525b..91c25c87 100644 --- a/public/post/28/index.html +++ b/public/post/28/index.html @@ -199,10 +199,10 @@
- + @@ -212,7 +212,7 @@ $(document).ready(function () { var currentPath = "\/post\/28\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/29/index.html b/public/post/29/index.html index 99696c7c..54d1fdf7 100644 --- a/public/post/29/index.html +++ b/public/post/29/index.html @@ -156,10 +156,10 @@
- + @@ -169,7 +169,7 @@ $(document).ready(function () { var currentPath = "\/post\/29\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/3/index.html b/public/post/3/index.html index 74951efa..49bb323c 100644 --- a/public/post/3/index.html +++ b/public/post/3/index.html @@ -135,10 +135,10 @@
- + @@ -148,7 +148,7 @@ $(document).ready(function () { var currentPath = "\/post\/3\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/30/index.html b/public/post/30/index.html index 4dae1e3f..605dce10 100644 --- a/public/post/30/index.html +++ b/public/post/30/index.html @@ -120,10 +120,10 @@
- + @@ -133,7 +133,7 @@ $(document).ready(function () { var currentPath = "\/post\/30\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/31/index.html b/public/post/31/index.html index f30aa1f1..d64f03fe 100644 --- a/public/post/31/index.html +++ b/public/post/31/index.html @@ -110,10 +110,10 @@
- + @@ -123,7 +123,7 @@ $(document).ready(function () { var currentPath = "\/post\/31\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/32/index.html b/public/post/32/index.html index 68fb0e08..20ed8a3d 100644 --- a/public/post/32/index.html +++ b/public/post/32/index.html @@ -197,10 +197,10 @@
- + @@ -210,7 +210,7 @@ $(document).ready(function () { var currentPath = "\/post\/32\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/33/index.html b/public/post/33/index.html index e6b34603..c0e74781 100644 --- a/public/post/33/index.html +++ b/public/post/33/index.html @@ -179,10 +179,10 @@
- + @@ -192,7 +192,7 @@ $(document).ready(function () { var currentPath = "\/post\/33\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/34/index.html b/public/post/34/index.html index ce5ef6c8..d4e8493f 100644 --- a/public/post/34/index.html +++ b/public/post/34/index.html @@ -104,10 +104,10 @@
- + @@ -117,7 +117,7 @@ $(document).ready(function () { var currentPath = "\/post\/34\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/35/index.html b/public/post/35/index.html index 1912d9b5..1a0cc4cd 100644 --- a/public/post/35/index.html +++ b/public/post/35/index.html @@ -134,10 +134,10 @@
- + @@ -147,7 +147,7 @@ $(document).ready(function () { var currentPath = "\/post\/35\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/36/index.html b/public/post/36/index.html index 6316d0cf..957144e4 100644 --- a/public/post/36/index.html +++ b/public/post/36/index.html @@ -110,10 +110,10 @@
- + @@ -123,7 +123,7 @@ $(document).ready(function () { var currentPath = "\/post\/36\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/37/index.html b/public/post/37/index.html index 437efe64..acd4fcf2 100644 --- a/public/post/37/index.html +++ b/public/post/37/index.html @@ -144,10 +144,10 @@
- + @@ -157,7 +157,7 @@ $(document).ready(function () { var currentPath = "\/post\/37\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/38/index.html b/public/post/38/index.html index cd493900..87a05bba 100644 --- a/public/post/38/index.html +++ b/public/post/38/index.html @@ -101,10 +101,10 @@
- + @@ -114,7 +114,7 @@ $(document).ready(function () { var currentPath = "\/post\/38\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/39/index.html b/public/post/39/index.html index 6604dd95..93476fc7 100644 --- a/public/post/39/index.html +++ b/public/post/39/index.html @@ -137,10 +137,10 @@
- + @@ -150,7 +150,7 @@ $(document).ready(function () { var currentPath = "\/post\/39\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/4/index.html b/public/post/4/index.html index 34478d38..1b1e39b5 100644 --- a/public/post/4/index.html +++ b/public/post/4/index.html @@ -237,10 +237,10 @@
- + @@ -250,7 +250,7 @@ $(document).ready(function () { var currentPath = "\/post\/4\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/40/index.html b/public/post/40/index.html index bc4c4544..52166111 100644 --- a/public/post/40/index.html +++ b/public/post/40/index.html @@ -104,10 +104,10 @@
- + @@ -117,7 +117,7 @@ $(document).ready(function () { var currentPath = "\/post\/40\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/41/index.html b/public/post/41/index.html index 7e6ffc43..6be6401a 100644 --- a/public/post/41/index.html +++ b/public/post/41/index.html @@ -141,10 +141,10 @@
- + @@ -154,7 +154,7 @@ $(document).ready(function () { var currentPath = "\/post\/41\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/42/index.html b/public/post/42/index.html index ff7da045..f739f0c9 100644 --- a/public/post/42/index.html +++ b/public/post/42/index.html @@ -106,10 +106,10 @@
- + @@ -119,7 +119,7 @@ $(document).ready(function () { var currentPath = "\/post\/42\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/43/index.html b/public/post/43/index.html index 7fb86c6b..df553fb3 100644 --- a/public/post/43/index.html +++ b/public/post/43/index.html @@ -133,10 +133,10 @@
- + @@ -146,7 +146,7 @@ $(document).ready(function () { var currentPath = "\/post\/43\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/44/index.html b/public/post/44/index.html index c5c101ae..43bbf637 100644 --- a/public/post/44/index.html +++ b/public/post/44/index.html @@ -127,10 +127,10 @@
- + @@ -140,7 +140,7 @@ $(document).ready(function () { var currentPath = "\/post\/44\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/45/index.html b/public/post/45/index.html index e0248312..3ad88d91 100644 --- a/public/post/45/index.html +++ b/public/post/45/index.html @@ -160,10 +160,10 @@
- + @@ -173,7 +173,7 @@ $(document).ready(function () { var currentPath = "\/post\/45\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/46/index.html b/public/post/46/index.html index d2d61726..80d60b86 100644 --- a/public/post/46/index.html +++ b/public/post/46/index.html @@ -116,10 +116,10 @@
- + @@ -129,7 +129,7 @@ $(document).ready(function () { var currentPath = "\/post\/46\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/47/index.html b/public/post/47/index.html index 3bf2b2af..d1abcd85 100644 --- a/public/post/47/index.html +++ b/public/post/47/index.html @@ -95,10 +95,10 @@
- + @@ -108,7 +108,7 @@ $(document).ready(function () { var currentPath = "\/post\/47\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/48/index.html b/public/post/48/index.html index 486b9dc0..e966a4b4 100644 --- a/public/post/48/index.html +++ b/public/post/48/index.html @@ -97,10 +97,10 @@
- + @@ -110,7 +110,7 @@ $(document).ready(function () { var currentPath = "\/post\/48\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/49/index.html b/public/post/49/index.html index fd86b05a..53f6d106 100644 --- a/public/post/49/index.html +++ b/public/post/49/index.html @@ -98,10 +98,10 @@
- + @@ -111,7 +111,7 @@ $(document).ready(function () { var currentPath = "\/post\/49\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/5/index.html b/public/post/5/index.html index 873d0c92..dde9899a 100644 --- a/public/post/5/index.html +++ b/public/post/5/index.html @@ -154,10 +154,10 @@
- + @@ -167,7 +167,7 @@ $(document).ready(function () { var currentPath = "\/post\/5\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/50/index.html b/public/post/50/index.html index 41cfdf8f..3c9c5c55 100644 --- a/public/post/50/index.html +++ b/public/post/50/index.html @@ -98,10 +98,10 @@
- + @@ -111,7 +111,7 @@ $(document).ready(function () { var currentPath = "\/post\/50\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/51/index.html b/public/post/51/index.html index 56be5579..13edc8d5 100644 --- a/public/post/51/index.html +++ b/public/post/51/index.html @@ -98,10 +98,10 @@
- + @@ -111,7 +111,7 @@ $(document).ready(function () { var currentPath = "\/post\/51\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/52/index.html b/public/post/52/index.html index c0752a06..2b7f9bbf 100644 --- a/public/post/52/index.html +++ b/public/post/52/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/52\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/53/index.html b/public/post/53/index.html index 4e1bdf9b..3ed6c24d 100644 --- a/public/post/53/index.html +++ b/public/post/53/index.html @@ -100,10 +100,10 @@
- + @@ -113,7 +113,7 @@ $(document).ready(function () { var currentPath = "\/post\/53\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/54/index.html b/public/post/54/index.html index d3cb39ce..11aff1ad 100644 --- a/public/post/54/index.html +++ b/public/post/54/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/54\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/55/index.html b/public/post/55/index.html index 061cdf6e..c30a72f9 100644 --- a/public/post/55/index.html +++ b/public/post/55/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/55\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/56/index.html b/public/post/56/index.html index 7a227c92..03019887 100644 --- a/public/post/56/index.html +++ b/public/post/56/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/56\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/57/index.html b/public/post/57/index.html index 27285c81..f43d1e0a 100644 --- a/public/post/57/index.html +++ b/public/post/57/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/57\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/58/index.html b/public/post/58/index.html index 21bca862..5b6cbd8b 100644 --- a/public/post/58/index.html +++ b/public/post/58/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/58\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/59/index.html b/public/post/59/index.html index 059e2f57..26dbe75b 100644 --- a/public/post/59/index.html +++ b/public/post/59/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/59\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/6/index.html b/public/post/6/index.html index 3dad5239..0ff1014a 100644 --- a/public/post/6/index.html +++ b/public/post/6/index.html @@ -145,10 +145,10 @@
- + @@ -158,7 +158,7 @@ $(document).ready(function () { var currentPath = "\/post\/6\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/60/index.html b/public/post/60/index.html index 6c9fc2da..7010d221 100644 --- a/public/post/60/index.html +++ b/public/post/60/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/60\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/61/index.html b/public/post/61/index.html index abe34c24..a41384b9 100644 --- a/public/post/61/index.html +++ b/public/post/61/index.html @@ -100,10 +100,10 @@
- + @@ -113,7 +113,7 @@ $(document).ready(function () { var currentPath = "\/post\/61\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/62/index.html b/public/post/62/index.html index 56a9618f..eff7b023 100644 --- a/public/post/62/index.html +++ b/public/post/62/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/62\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/63/index.html b/public/post/63/index.html index b978151b..3d965933 100644 --- a/public/post/63/index.html +++ b/public/post/63/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/63\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/64/index.html b/public/post/64/index.html index 594ca072..5b5cad7d 100644 --- a/public/post/64/index.html +++ b/public/post/64/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/64\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/65/index.html b/public/post/65/index.html index 6d0fda5a..de6efd23 100644 --- a/public/post/65/index.html +++ b/public/post/65/index.html @@ -99,10 +99,10 @@
- + @@ -112,7 +112,7 @@ $(document).ready(function () { var currentPath = "\/post\/65\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/66/index.html b/public/post/66/index.html index dc8db65c..c200516c 100644 --- a/public/post/66/index.html +++ b/public/post/66/index.html @@ -94,10 +94,10 @@
- + @@ -107,7 +107,7 @@ $(document).ready(function () { var currentPath = "\/post\/66\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/67/index.html b/public/post/67/index.html index 5c159676..366e5393 100644 --- a/public/post/67/index.html +++ b/public/post/67/index.html @@ -95,10 +95,10 @@
- + @@ -108,7 +108,7 @@ $(document).ready(function () { var currentPath = "\/post\/67\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/68/index.html b/public/post/68/index.html index 94512791..3ec57bc5 100644 --- a/public/post/68/index.html +++ b/public/post/68/index.html @@ -97,10 +97,10 @@
- + @@ -110,7 +110,7 @@ $(document).ready(function () { var currentPath = "\/post\/68\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/69/index.html b/public/post/69/index.html index eee09994..d98d8691 100644 --- a/public/post/69/index.html +++ b/public/post/69/index.html @@ -97,10 +97,10 @@
- + @@ -110,7 +110,7 @@ $(document).ready(function () { var currentPath = "\/post\/69\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/7/index.html b/public/post/7/index.html index 4c1db260..9b55add9 100644 --- a/public/post/7/index.html +++ b/public/post/7/index.html @@ -248,10 +248,10 @@
- + @@ -261,7 +261,7 @@ $(document).ready(function () { var currentPath = "\/post\/7\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/70/index.html b/public/post/70/index.html index 501cadcb..44b2c370 100644 --- a/public/post/70/index.html +++ b/public/post/70/index.html @@ -95,10 +95,10 @@
- + @@ -108,7 +108,7 @@ $(document).ready(function () { var currentPath = "\/post\/70\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/71/index.html b/public/post/71/index.html index 215d1a3f..e4c9f56a 100644 --- a/public/post/71/index.html +++ b/public/post/71/index.html @@ -437,10 +437,10 @@
- + @@ -450,7 +450,7 @@ $(document).ready(function () { var currentPath = "\/post\/71\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/72/index.html b/public/post/72/index.html index 7e21b928..38ce0496 100644 --- a/public/post/72/index.html +++ b/public/post/72/index.html @@ -186,10 +186,10 @@
- + @@ -199,7 +199,7 @@ $(document).ready(function () { var currentPath = "\/post\/72\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/73/index.html b/public/post/73/index.html index 58dfe6a8..f893157d 100644 --- a/public/post/73/index.html +++ b/public/post/73/index.html @@ -146,10 +146,10 @@
- + @@ -159,7 +159,7 @@ $(document).ready(function () { var currentPath = "\/post\/73\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/74/index.html b/public/post/74/index.html index 0529e559..efe99f0d 100644 --- a/public/post/74/index.html +++ b/public/post/74/index.html @@ -201,10 +201,10 @@
- + @@ -214,7 +214,7 @@ $(document).ready(function () { var currentPath = "\/post\/74\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/75/index.html b/public/post/75/index.html index c9360770..0ab1350b 100644 --- a/public/post/75/index.html +++ b/public/post/75/index.html @@ -170,10 +170,10 @@
- + @@ -183,7 +183,7 @@ $(document).ready(function () { var currentPath = "\/post\/75\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/76/index.html b/public/post/76/index.html index 9b7681b3..cba9f14e 100644 --- a/public/post/76/index.html +++ b/public/post/76/index.html @@ -210,10 +210,10 @@
- + @@ -223,7 +223,7 @@ $(document).ready(function () { var currentPath = "\/post\/76\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/77/index.html b/public/post/77/index.html index 6305f902..6480bc7e 100644 --- a/public/post/77/index.html +++ b/public/post/77/index.html @@ -109,10 +109,10 @@
- + @@ -122,7 +122,7 @@ $(document).ready(function () { var currentPath = "\/post\/77\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/78/index.html b/public/post/78/index.html index 8b7ec882..e1531364 100644 --- a/public/post/78/index.html +++ b/public/post/78/index.html @@ -146,10 +146,10 @@
- + @@ -159,7 +159,7 @@ $(document).ready(function () { var currentPath = "\/post\/78\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/79/index.html b/public/post/79/index.html index 2ab088c8..8fb6abac 100644 --- a/public/post/79/index.html +++ b/public/post/79/index.html @@ -113,10 +113,10 @@
- + @@ -126,7 +126,7 @@ $(document).ready(function () { var currentPath = "\/post\/79\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/8/index.html b/public/post/8/index.html index 5ff9f5f9..22d5aa47 100644 --- a/public/post/8/index.html +++ b/public/post/8/index.html @@ -96,10 +96,10 @@
- + @@ -109,7 +109,7 @@ $(document).ready(function () { var currentPath = "\/post\/8\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/80/index.html b/public/post/80/index.html index e0afa83a..ab18ec2e 100644 --- a/public/post/80/index.html +++ b/public/post/80/index.html @@ -141,10 +141,10 @@
- + @@ -154,7 +154,7 @@ $(document).ready(function () { var currentPath = "\/post\/80\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/81/index.html b/public/post/81/index.html index 6b8bccd7..3b6e0aeb 100644 --- a/public/post/81/index.html +++ b/public/post/81/index.html @@ -148,10 +148,10 @@
- + @@ -161,7 +161,7 @@ $(document).ready(function () { var currentPath = "\/post\/81\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/82/index.html b/public/post/82/index.html index 160b8263..81317f4e 100644 --- a/public/post/82/index.html +++ b/public/post/82/index.html @@ -140,10 +140,10 @@
- + @@ -153,7 +153,7 @@ $(document).ready(function () { var currentPath = "\/post\/82\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/83/index.html b/public/post/83/index.html index 98de5d43..ca0f24a2 100644 --- a/public/post/83/index.html +++ b/public/post/83/index.html @@ -143,10 +143,10 @@
- + @@ -156,7 +156,7 @@ $(document).ready(function () { var currentPath = "\/post\/83\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/84/index.html b/public/post/84/index.html index c58a2b19..727737df 100644 --- a/public/post/84/index.html +++ b/public/post/84/index.html @@ -135,10 +135,10 @@
- + @@ -148,7 +148,7 @@ $(document).ready(function () { var currentPath = "\/post\/84\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/85/index.html b/public/post/85/index.html index 0ac097d9..cda4456d 100644 --- a/public/post/85/index.html +++ b/public/post/85/index.html @@ -204,10 +204,10 @@
- + @@ -217,7 +217,7 @@ $(document).ready(function () { var currentPath = "\/post\/85\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/86/index.html b/public/post/86/index.html index 9f72e442..c8ab59b5 100644 --- a/public/post/86/index.html +++ b/public/post/86/index.html @@ -206,10 +206,10 @@
- + @@ -219,7 +219,7 @@ $(document).ready(function () { var currentPath = "\/post\/86\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/87/index.html b/public/post/87/index.html index b1678cce..b38717f4 100644 --- a/public/post/87/index.html +++ b/public/post/87/index.html @@ -230,10 +230,10 @@
- + @@ -243,7 +243,7 @@ $(document).ready(function () { var currentPath = "\/post\/87\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/88/index.html b/public/post/88/index.html index 8d5a7985..ed64e2c9 100644 --- a/public/post/88/index.html +++ b/public/post/88/index.html @@ -114,10 +114,10 @@
- + @@ -127,7 +127,7 @@ $(document).ready(function () { var currentPath = "\/post\/88\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/89/index.html b/public/post/89/index.html index 21ee8ab7..d632330d 100644 --- a/public/post/89/index.html +++ b/public/post/89/index.html @@ -104,10 +104,10 @@
- + @@ -117,7 +117,7 @@ $(document).ready(function () { var currentPath = "\/post\/89\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/9/index.html b/public/post/9/index.html index f6ef8f51..ccfb2739 100644 --- a/public/post/9/index.html +++ b/public/post/9/index.html @@ -96,10 +96,10 @@
- + @@ -109,7 +109,7 @@ $(document).ready(function () { var currentPath = "\/post\/9\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/90/index.html b/public/post/90/index.html index ea8eab69..cb473bc5 100644 --- a/public/post/90/index.html +++ b/public/post/90/index.html @@ -145,10 +145,10 @@
- + @@ -158,7 +158,7 @@ $(document).ready(function () { var currentPath = "\/post\/90\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/91/index.html b/public/post/91/index.html index b055d290..0180f69e 100644 --- a/public/post/91/index.html +++ b/public/post/91/index.html @@ -101,10 +101,10 @@
- + @@ -114,7 +114,7 @@ $(document).ready(function () { var currentPath = "\/post\/91\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/92/index.html b/public/post/92/index.html index 942006fe..d19c19c0 100644 --- a/public/post/92/index.html +++ b/public/post/92/index.html @@ -177,10 +177,10 @@
- + @@ -190,7 +190,7 @@ $(document).ready(function () { var currentPath = "\/post\/92\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/93/index.html b/public/post/93/index.html index 921c9b1c..d453d93e 100644 --- a/public/post/93/index.html +++ b/public/post/93/index.html @@ -102,10 +102,10 @@
- + @@ -115,7 +115,7 @@ $(document).ready(function () { var currentPath = "\/post\/93\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/94/index.html b/public/post/94/index.html index e8da5318..92cd92c1 100644 --- a/public/post/94/index.html +++ b/public/post/94/index.html @@ -139,10 +139,10 @@
- + @@ -152,7 +152,7 @@ $(document).ready(function () { var currentPath = "\/post\/94\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/96/index.html b/public/post/96/index.html index a36e8f70..196196cb 100644 --- a/public/post/96/index.html +++ b/public/post/96/index.html @@ -104,10 +104,10 @@
- + @@ -117,7 +117,7 @@ $(document).ready(function () { var currentPath = "\/post\/96\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/97/index.html b/public/post/97/index.html index 8955a65d..f5a8d727 100644 --- a/public/post/97/index.html +++ b/public/post/97/index.html @@ -246,10 +246,10 @@
- + @@ -259,7 +259,7 @@ $(document).ready(function () { var currentPath = "\/post\/97\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/986/index.html b/public/post/986/index.html index b9efe66e..406c5ee8 100644 --- a/public/post/986/index.html +++ b/public/post/986/index.html @@ -126,10 +126,10 @@
- + @@ -139,7 +139,7 @@ $(document).ready(function () { var currentPath = "\/post\/986\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/989/index.html b/public/post/989/index.html index 0a23c931..e9b147da 100644 --- a/public/post/989/index.html +++ b/public/post/989/index.html @@ -94,10 +94,10 @@
- + @@ -107,7 +107,7 @@ $(document).ready(function () { var currentPath = "\/post\/989\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/public/post/994/index.html b/public/post/994/index.html index efa8b997..9b41f3fc 100644 --- a/public/post/994/index.html +++ b/public/post/994/index.html @@ -221,10 +221,10 @@
- + @@ -234,7 +234,7 @@ $(document).ready(function () { var currentPath = "\/post\/994\/"; - console.log(currentPath); + fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, diff --git a/themes/Ying/layouts/_default/single.html b/themes/Ying/layouts/_default/single.html index 336b1d38..bdfe244c 100644 --- a/themes/Ying/layouts/_default/single.html +++ b/themes/Ying/layouts/_default/single.html @@ -32,7 +32,7 @@ $(document).ready(function () { // 获取当前页面的路径 var currentPath = "{{ .RelPermalink }}"; - console.log(currentPath); + // console.log(currentPath); // 调用封装的函数 fetchCommentsAndCreateBarrager(currentPath, { looper_time: 3000, // 每条弹幕的发送间隔,单位毫秒 diff --git a/themes/Ying/layouts/partials/waline.html b/themes/Ying/layouts/partials/waline.html index fc61b198..da25682b 100644 --- a/themes/Ying/layouts/partials/waline.html +++ b/themes/Ying/layouts/partials/waline.html @@ -1,6 +1,6 @@
- + diff --git a/themes/Ying/static/css/main.css b/themes/Ying/static/css/main.css index ab873a36..7cd6612b 100644 --- a/themes/Ying/static/css/main.css +++ b/themes/Ying/static/css/main.css @@ -35,7 +35,7 @@ body { line-height: 1.6; font-size: 16px; background: #fafafa; - /*background-image: url('https://usj.cc/bg.svg');*/ + /* background-image: url('../image/bg.svg'); */ /*background-image: url(https://usj.cc/usr/uploads/2023/06/3287615239.jpg);*/ /*background-repeat: space;*/ /*background-size: cover;*/ diff --git a/themes/Ying/static/image/bg.svg b/themes/Ying/static/image/bg.svg new file mode 100644 index 00000000..6d38d5d0 --- /dev/null +++ b/themes/Ying/static/image/bg.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/themes/Ying/static/js/main.js b/themes/Ying/static/js/main.js index 72e7c81e..036d9ada 100644 --- a/themes/Ying/static/js/main.js +++ b/themes/Ying/static/js/main.js @@ -44,29 +44,28 @@ lazyLoadInit({ showTime: 1100 }); -// 封装的函数:获取评论数据并发布弹幕 + function fetchCommentsAndCreateBarrager(path, options) { $.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(path), function(response) { var data = response.data.data; - console.log(data); // 每条弹幕发送间隔 var looper_time = options.looper_time || 3000; // 默认间隔3秒 - var items = data; + var items = flattenComments(data); // 弹幕总数 var total = items.length; // 弹幕索引 var index = 0; // 先执行一次 - if(total != 0){ - createBarrager() + if (total != 0) { + createBarrager(); } function createBarrager() { // 转换数据为弹幕所需的格式 var item = { img: items[index].avatar || options.defaultAvatar || 'static/default-avatar.png', // 头像 - info: items[index].orig || options.defaultInfo || 'No comment', // 评论内容 + info: stripHTML(items[index].orig) || options.defaultInfo || 'No comment', // 过滤后的评论内容 href: items[index].link || options.defaultLink || '#', // 用户链接 close: options.close || true, // 显示关闭按钮 speed: options.speed || 6, // 延迟,单位秒,默认6 @@ -83,5 +82,22 @@ function fetchCommentsAndCreateBarrager(path, options) { setTimeout(createBarrager, looper_time); } } + + // 过滤HTML标签的函数 + function stripHTML(html) { + return html.replace(/<\/?[^>]+(>|$)/g, ""); + } + + // 展平评论和子评论 + function flattenComments(comments) { + var result = []; + comments.forEach(function(comment) { + result.push(comment); + if (comment.children && comment.children.length > 0) { + result = result.concat(flattenComments(comment.children)); + } + }); + return result; + } }); }