diff --git a/_data/proxylist.yml b/_data/proxylist.yml
index c9a5457..944b2e7 100644
--- a/_data/proxylist.yml
+++ b/_data/proxylist.yml
@@ -24,6 +24,7 @@ mirrors:
- https://mabbs.kinsta.page/
- https://mayx.codeberg.page/
- https://mayx.tildepages.org/
+- https://mayx.pandastack.app/
- https://mayx.pages.lain.la/
- https://mayx.4everland.app/
- https://mayx.readthedocs.io/
diff --git a/_layouts/default.html b/_layouts/default.html
index 39d534c..3b43854 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -17,7 +17,7 @@ layout: xslt_container
-
+
diff --git a/assets/js/main.js b/assets/js/main.js
index 685a898..e926618 100644
--- a/assets/js/main.js
+++ b/assets/js/main.js
@@ -1,6 +1,22 @@
var message_Path = '/Live2dHistoire/live2d/';
var talkAPI = BlogAPI + "/ai_chat";
+function initVisitors() {
+ if ($('.visitors').length === 1) {
+ var $visitor = $('.visitors:first');
+ $.get(BlogAPI + '/count_click_add?id=' + $visitor.attr('id'), function (data) {
+ $visitor.text(Number(data));
+ });
+ } else if ($('.visitors-index').length > 0) {
+ $('.visitors-index').each(function () {
+ var $elem = $(this);
+ $.get(BlogAPI + '/count_click?id=' + $elem.attr('id'), function (data) {
+ $elem.text(Number(data));
+ });
+ });
+ }
+}
+
$(function () {
(function () {
var $backToTopTxt = "返回顶部", $backToTopEle = $('
').appendTo($("body"))
@@ -14,25 +30,7 @@ $(function () {
$(function () { $backToTopFun(); });
})();
- function showHitCount() {
- $(".visitors-index").each(function () {
- var $elem = $(this);
- $.get(BlogAPI + "/count_click?id=" + $elem.attr('id'), function (data) {
- $elem.text(Number(data));
- });
- });
- }
- function addCount() {
- var $visitor = $(".visitors:first");
- $.get(BlogAPI + "/count_click_add?id=" + $visitor.attr('id'), function (data) {
- $visitor.text(Number(data));
- });
- }
- if ($('.visitors').length == 1) {
- addCount();
- } else if ($('.visitors-index').length > 0) {
- showHitCount();
- }
+ initVisitors();
if (Math.floor((new Date().getTime() - lastUpdated.getTime()) / (24 * 60 * 60 * 1000)) > 90) {
$("html").css({
diff --git a/assets/js/main_new.js b/assets/js/main_new.js
index deb0927..22f2552 100644
--- a/assets/js/main_new.js
+++ b/assets/js/main_new.js
@@ -43,35 +43,21 @@ $(function () {
});
});
-$(function() {
- var $codeBlocks = $('div.highlight');
-
- $codeBlocks.each(function() {
- var $copyButton = $('