17.10
This commit is contained in:
1 parent
d1584c1332
commit
dfaa1c3581
20 files changed
+217
-274
No files matched your search
@@ -86,61 +86,25 @@
|
||||
|
||||
<div id="waline"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
|
||||
var currentPath = "\/post\/demo01\/";
|
||||
|
||||
|
||||
|
||||
$.ajaxSettings.async = true;
|
||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||
var data = response.data.data;
|
||||
console.log(data);
|
||||
|
||||
var looper_time = 3 * 1000;
|
||||
var items = data;
|
||||
|
||||
var total = items.length;
|
||||
|
||||
var run_once = true;
|
||||
|
||||
var index = 0;
|
||||
|
||||
barrager();
|
||||
|
||||
function barrager() {
|
||||
if (run_once) {
|
||||
|
||||
looper = setInterval(barrager, looper_time);
|
||||
run_once = false;
|
||||
}
|
||||
|
||||
|
||||
var item = {
|
||||
img: items[index].avatar || 'static/default-avatar.png',
|
||||
info: items[index].orig || 'No comment',
|
||||
href: items[index].link || '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
};
|
||||
|
||||
|
||||
$('body').barrager(item);
|
||||
|
||||
index++;
|
||||
|
||||
if (index == total) {
|
||||
clearInterval(looper);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
fetchCommentsAndCreateBarrager(currentPath, {
|
||||
looper_time: 3000,
|
||||
defaultAvatar: 'static/default-avatar.png',
|
||||
defaultInfo: 'No comment',
|
||||
defaultLink: '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -163,13 +127,14 @@
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
<script>var currentPath = "\/post\/demo01\/";</script>
|
||||
|
||||
<script type="module">
|
||||
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
|
||||
|
||||
|
||||
window.walineInit = walineInit;
|
||||
|
||||
|
||||
|
||||
window.initWaline = function() {
|
||||
walineInit({
|
||||
|
||||
@@ -88,61 +88,25 @@
|
||||
|
||||
<div id="waline"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
|
||||
var currentPath = "\/post\/demo03\/";
|
||||
|
||||
|
||||
|
||||
$.ajaxSettings.async = true;
|
||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||
var data = response.data.data;
|
||||
console.log(data);
|
||||
|
||||
var looper_time = 3 * 1000;
|
||||
var items = data;
|
||||
|
||||
var total = items.length;
|
||||
|
||||
var run_once = true;
|
||||
|
||||
var index = 0;
|
||||
|
||||
barrager();
|
||||
|
||||
function barrager() {
|
||||
if (run_once) {
|
||||
|
||||
looper = setInterval(barrager, looper_time);
|
||||
run_once = false;
|
||||
}
|
||||
|
||||
|
||||
var item = {
|
||||
img: items[index].avatar || 'static/default-avatar.png',
|
||||
info: items[index].orig || 'No comment',
|
||||
href: items[index].link || '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
};
|
||||
|
||||
|
||||
$('body').barrager(item);
|
||||
|
||||
index++;
|
||||
|
||||
if (index == total) {
|
||||
clearInterval(looper);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
fetchCommentsAndCreateBarrager(currentPath, {
|
||||
looper_time: 3000,
|
||||
defaultAvatar: 'static/default-avatar.png',
|
||||
defaultInfo: 'No comment',
|
||||
defaultLink: '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -165,13 +129,14 @@
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
<script>var currentPath = "\/post\/demo03\/";</script>
|
||||
|
||||
<script type="module">
|
||||
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
|
||||
|
||||
|
||||
window.walineInit = walineInit;
|
||||
|
||||
|
||||
|
||||
window.initWaline = function() {
|
||||
walineInit({
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
<link rel="stylesheet" href="/css/uikit.min.css">
|
||||
<link rel="stylesheet" href="/css/nprogress.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/@waline/client@v3/dist/waline.css" />
|
||||
<link rel="stylesheet" href="https://usj.cc/usr/themes/Ying/css/barrager.css">
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="https://usj.cc/usr/themes/Ying/js/jquery.barrager.js"></script>
|
||||
<script src="/js/jquery.scrollUp.min.js"></script>
|
||||
<script src="/js/pjax.js"></script>
|
||||
<script>console.log("\n %c Amigo Theme %c https://usj.cc \n", "color: #fadfa3; background: #030307; padding:3px; font-size:12px;", "color: #ffffff;background: #16171a; padding: 3px; font-size: 12px;");</script>
|
||||
@@ -61,7 +63,7 @@
|
||||
|
||||
|
||||
<div id="pjax-container">
|
||||
<article>
|
||||
<article style="margin-bottom: 3.5em;">
|
||||
<h1 class="post-title" itemprop="name headline">Helloworld</h1>
|
||||
<div class="meta">
|
||||
作者: 小赵同学 浏览: 字数: 3 分类:
|
||||
@@ -78,10 +80,30 @@
|
||||
</nav>
|
||||
</div>
|
||||
</article>
|
||||
<hr class="uk-divider-icon">
|
||||
<div id="comments" class="comments-area">
|
||||
|
||||
<div id="waline"></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
var currentPath = "\/post\/helloworld\/";
|
||||
|
||||
|
||||
fetchCommentsAndCreateBarrager(currentPath, {
|
||||
looper_time: 3000,
|
||||
defaultAvatar: 'static/default-avatar.png',
|
||||
defaultInfo: 'No comment',
|
||||
defaultLink: '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -91,12 +113,7 @@
|
||||
© 2019 - 2024
|
||||
<br>
|
||||
<a href="https://beian.miit.gov.cn/" target="_blank"><span style="color:#999999;">鄂ICP备2022015735号-1</span></a>
|
||||
<br>
|
||||
本站由<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="blank" title="又拍云"
|
||||
style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
|
||||
<span style="color: var(--contentColor);font-weight: 700;">又拍云CDN</span>
|
||||
</a>提供CDN加速服务
|
||||
<br>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,6 +126,7 @@
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
<script>var currentPath = "\/post\/helloworld\/";</script>
|
||||
|
||||
<script type="module">
|
||||
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
<link rel="stylesheet" href="/css/uikit.min.css">
|
||||
<link rel="stylesheet" href="/css/nprogress.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/@waline/client@v3/dist/waline.css" />
|
||||
<link rel="stylesheet" href="https://usj.cc/usr/themes/Ying/css/barrager.css">
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="https://usj.cc/usr/themes/Ying/js/jquery.barrager.js"></script>
|
||||
<script src="/js/jquery.scrollUp.min.js"></script>
|
||||
<script src="/js/pjax.js"></script>
|
||||
<script>console.log("\n %c Amigo Theme %c https://usj.cc \n", "color: #fadfa3; background: #030307; padding:3px; font-size:12px;", "color: #ffffff;background: #16171a; padding: 3px; font-size: 12px;");</script>
|
||||
@@ -107,12 +109,7 @@
|
||||
© 2019 - 2024
|
||||
<br>
|
||||
<a href="https://beian.miit.gov.cn/" target="_blank"><span style="color:#999999;">鄂ICP备2022015735号-1</span></a>
|
||||
<br>
|
||||
本站由<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="blank" title="又拍云"
|
||||
style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
|
||||
<span style="color: var(--contentColor);font-weight: 700;">又拍云CDN</span>
|
||||
</a>提供CDN加速服务
|
||||
<br>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@@ -125,6 +122,7 @@
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
<script>var currentPath = "\/post\/";</script>
|
||||
|
||||
<script type="module">
|
||||
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
|
||||
|
||||
@@ -85,61 +85,25 @@
|
||||
|
||||
<div id="waline"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
|
||||
var currentPath = "\/post\/my-first-post\/";
|
||||
|
||||
|
||||
|
||||
$.ajaxSettings.async = true;
|
||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||
var data = response.data.data;
|
||||
console.log(data);
|
||||
|
||||
var looper_time = 3 * 1000;
|
||||
var items = data;
|
||||
|
||||
var total = items.length;
|
||||
|
||||
var run_once = true;
|
||||
|
||||
var index = 0;
|
||||
|
||||
barrager();
|
||||
|
||||
function barrager() {
|
||||
if (run_once) {
|
||||
|
||||
looper = setInterval(barrager, looper_time);
|
||||
run_once = false;
|
||||
}
|
||||
|
||||
|
||||
var item = {
|
||||
img: items[index].avatar || 'static/default-avatar.png',
|
||||
info: items[index].orig || 'No comment',
|
||||
href: items[index].link || '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
};
|
||||
|
||||
|
||||
$('body').barrager(item);
|
||||
|
||||
index++;
|
||||
|
||||
if (index == total) {
|
||||
clearInterval(looper);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
fetchCommentsAndCreateBarrager(currentPath, {
|
||||
looper_time: 3000,
|
||||
defaultAvatar: 'static/default-avatar.png',
|
||||
defaultInfo: 'No comment',
|
||||
defaultLink: '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -162,13 +126,14 @@
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
<script>var currentPath = "\/post\/my-first-post\/";</script>
|
||||
|
||||
<script type="module">
|
||||
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
|
||||
|
||||
|
||||
window.walineInit = walineInit;
|
||||
|
||||
|
||||
|
||||
window.initWaline = function() {
|
||||
walineInit({
|
||||
|
||||
@@ -85,61 +85,25 @@
|
||||
|
||||
<div id="waline"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(document).ready(function () {
|
||||
|
||||
var currentPath = "\/post\/my-second-post\/";
|
||||
|
||||
|
||||
|
||||
$.ajaxSettings.async = true;
|
||||
$.getJSON('https://waline.usj.cc/api/comment?path=' + encodeURIComponent(currentPath), function(response) {
|
||||
var data = response.data.data;
|
||||
console.log(data);
|
||||
|
||||
var looper_time = 3 * 1000;
|
||||
var items = data;
|
||||
|
||||
var total = items.length;
|
||||
|
||||
var run_once = true;
|
||||
|
||||
var index = 0;
|
||||
|
||||
barrager();
|
||||
|
||||
function barrager() {
|
||||
if (run_once) {
|
||||
|
||||
looper = setInterval(barrager, looper_time);
|
||||
run_once = false;
|
||||
}
|
||||
|
||||
|
||||
var item = {
|
||||
img: items[index].avatar || 'static/default-avatar.png',
|
||||
info: items[index].orig || 'No comment',
|
||||
href: items[index].link || '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
};
|
||||
|
||||
|
||||
$('body').barrager(item);
|
||||
|
||||
index++;
|
||||
|
||||
if (index == total) {
|
||||
clearInterval(looper);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
fetchCommentsAndCreateBarrager(currentPath, {
|
||||
looper_time: 3000,
|
||||
defaultAvatar: 'static/default-avatar.png',
|
||||
defaultInfo: 'No comment',
|
||||
defaultLink: '#',
|
||||
close: true,
|
||||
speed: 6,
|
||||
color: '#fff',
|
||||
old_ie_color: '#000000'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -162,13 +126,14 @@
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/mypjax.js"></script>
|
||||
<script src="/js/nprogress.js"></script>
|
||||
<script>var currentPath = "\/post\/my-second-post\/";</script>
|
||||
|
||||
<script type="module">
|
||||
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
|
||||
|
||||
|
||||
window.walineInit = walineInit;
|
||||
|
||||
|
||||
|
||||
window.initWaline = function() {
|
||||
walineInit({
|
||||
|
||||
Reference in new issue
Block a user