q78kgblog 0.0.0-1720429643771 → 0.0.0-1720859005089

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.github/workflows/HexoSeoAutoPush.yml +12 -8
  2. package/404.html +4 -4
  3. package/about/index.html +6 -6
  4. package/archives/2023/02/index.html +5 -5
  5. package/archives/2023/04/index.html +5 -5
  6. package/archives/2023/05/index.html +5 -5
  7. package/archives/2023/08/index.html +5 -5
  8. package/archives/2023/09/index.html +5 -5
  9. package/archives/2023/index.html +5 -5
  10. package/archives/2024/01/index.html +5 -5
  11. package/archives/2024/02/index.html +5 -5
  12. package/archives/2024/index.html +5 -5
  13. package/archives/index.html +5 -5
  14. package/atom.xml +9 -9
  15. package/baidusitemap.xml +8 -8
  16. package/bangumis/index.html +7 -6
  17. package/bigpie/index.html +4 -4
  18. package/categories/Hexo/index.html +5 -5
  19. package/categories/index.html +4 -4
  20. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +5 -5
  21. package/categories//347/264/240/346/235/220/index.html +5 -5
  22. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +5 -5
  23. package/content.json +1 -1
  24. package/css/404page.css +1 -65
  25. package/css/ariasakablog.css +1 -0
  26. package/css/commentBarrage.css +1 -118
  27. package/css/danmaku.css +1 -104
  28. package/css/essay.css +1 -306
  29. package/css/iconfont.css +1 -55
  30. package/css/index.css +1 -7006
  31. package/css/people.css +1 -18
  32. package/css/stylessimple.css +1 -40
  33. package/css/swiperstyle.css +1 -567
  34. package/fcircle/index.html +4 -4
  35. package/fontawesome/index.html +4 -4
  36. package/index.html +12 -12
  37. package/js/aplayersave.js +1 -268
  38. package/js/baiduhistory.js +1 -76
  39. package/js/browser.js +1 -35
  40. package/js/calendar.js +1 -380
  41. package/js/cate.js +1 -22
  42. package/js/commentBarrage.js +17 -232
  43. package/js/commentsCount.js +1 -43
  44. package/js/copy.js +1 -23
  45. package/js/countup.js +1 -209
  46. package/js/cursor.js +1 -82
  47. package/js/danmaku.js +0 -106
  48. package/js/day.js +13 -195
  49. package/js/dianzan.js +1 -249
  50. package/js/dis.js +4 -253
  51. package/js/dist/baiduhistory.dev.js +1 -102
  52. package/js/dist/bbtalk.dev.js +159 -12872
  53. package/js/dist/bbtalklunbo.dev.js +1 -45
  54. package/js/dist/calendar.dev.js +1 -395
  55. package/js/dist/fixbugpjax.dev.js +1 -8
  56. package/js/dist/gongnong.dev.js +1 -565
  57. package/js/dist/heimu.dev.js +1 -19
  58. package/js/dist/links.dev.js +1 -13
  59. package/js/dist/main.dev.js +5 -843
  60. package/js/dist/resizeTop.dev.js +1 -50
  61. package/js/dist/seo.dev.js +1 -33
  62. package/js/dist/twikoo.all.min.dev.js +946 -1
  63. package/js/fixbugpjax.js +1 -7
  64. package/js/fixed_card_widget.js +1 -46
  65. package/js/fps.js +1 -59
  66. package/js/gitalker.js +1 -11
  67. package/js/heimu.js +1 -17
  68. package/js/hide.show.js +1 -17
  69. package/js/languages.js +1 -511
  70. package/js/latest.js +1 -49
  71. package/js/local-search.js +2 -476
  72. package/js/lunar.js +1 -1071
  73. package/js/lyxTalk.js +1 -12
  74. package/js/main.js +5 -781
  75. package/js/nav.js +1 -30
  76. package/js/noie.js +1 -3
  77. package/js/owo.js +1 -52
  78. package/js/people.js +2 -175
  79. package/js/randomFriend.js +1 -95
  80. package/js/resizeTop.js +1 -43
  81. package/js/rightmenu.js +3 -333
  82. package/js/sakura.js +1 -164
  83. package/js/search/algolia.js +4 -154
  84. package/js/search/local-search.js +1 -188
  85. package/js/settings.js +3 -344
  86. package/js/sitetime.js +1 -25
  87. package/js/smooth-scrolling.js +1 -546
  88. package/js/sw-toolbox.js +1 -16
  89. package/js/swiperinit.js +1 -23
  90. package/js/tw_cn.js +1 -100
  91. package/js/utils.js +1 -278
  92. package/js/welcome.js +1 -107
  93. package/js/welcomeconsole.js +1 -24
  94. package/links/index.html +4 -4
  95. package/othersite/index.html +4 -4
  96. package/package.json +1 -1
  97. package/posts/164ef646/index.html +7 -7
  98. package/posts/228c2ef8/index.html +7 -7
  99. package/posts/a9a6c1fb/index.html +7 -7
  100. package/posts/c262e439/index.html +7 -7
  101. package/posts/c81531cf/index.html +7 -7
  102. package/posts/ccdf7cfc/index.html +7 -7
  103. package/posts/de1f83f4/index.html +7 -7
  104. package/posts/e54f7476/index.html +7 -7
  105. package/random.html +2 -2
  106. package/sitemap.txt +2 -2
  107. package/sitemap.xml +55 -55
  108. package/sw.js +2 -193
  109. package/swReg.js +1 -29
  110. package/tags/AI/index.html +6 -6
  111. package/tags/Butterfly/index.html +6 -6
  112. package/tags/Cloudflare/index.html +6 -6
  113. package/tags/DiffSinger/index.html +6 -6
  114. package/tags/Hexo/index.html +6 -6
  115. package/tags/Next/index.html +6 -6
  116. package/tags/RAID/index.html +6 -6
  117. package/tags/Vercel/index.html +6 -6
  118. package/tags/Workers/index.html +6 -6
  119. package/tags/index.html +4 -4
  120. package/tags//344/270/273/351/242/230/index.html +6 -6
  121. package/tags//345/206/231/344/275/234/index.html +6 -6
  122. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +6 -6
  123. package/tags//345/255/246/344/271/240/index.html +6 -6
  124. package/tags//345/256/266/351/207/214/344/272/221/index.html +6 -6
  125. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +6 -6
  126. package/tags//346/212/230/350/205/276/index.html +6 -6
  127. package/tags//346/227/245/345/270/270/index.html +6 -6
  128. package/tags//346/234/215/345/212/241/345/231/250/index.html +6 -6
  129. package/tags//346/265/252/346/275/256/index.html +6 -6
  130. package/tags//347/256/200/347/210/261/index.html +6 -6
  131. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +6 -6
  132. package/tags//350/256/272/346/226/207/index.html +6 -6
  133. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +6 -6
  134. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +6 -6
  135. package/tags//351/207/221/345/217/245/index.html +6 -6
  136. package/tags//351/255/224/346/224/271/index.html +6 -6
package/js/fixbugpjax.js CHANGED
@@ -1,7 +1 @@
1
-
2
- var evt = document.createEvent("HTMLEvents");
3
- evt.initEvent("pjax:complete", false, false);
4
- window.dispatchEvent(evt);
5
- document.addEventListener('pjax:complete', (e) => {
6
- $("#setting-buttons").show();
7
- })
1
+ var evt=document.createEvent("HTMLEvents");evt.initEvent("pjax:complete",!1,!1),window.dispatchEvent(evt),document.addEventListener("pjax:complete",e=>{$("#setting-buttons").show()});
@@ -1,46 +1 @@
1
- // 固定卡片点击动作
2
- function FixedCardWidget(type,name,index){
3
- // 根据id或class选择元素
4
- if (type === "id"){
5
- var tempcard = document.getElementById(name);
6
- }
7
- else{
8
- var tempcard = document.getElementsByClassName(name)[index];
9
- }
10
- // 若元素存在
11
- if (tempcard) {
12
- // 首先判断是否存在fixed-card-widget类
13
- if (tempcard.className.indexOf('fixed-card-widget') > -1){
14
- // 存在则移除
15
- RemoveFixedCardWidget();
16
- }
17
- else{
18
- // 不存在则先初始化防止卡片叠加
19
- RemoveFixedCardWidget();
20
- //新建退出蒙版
21
- CreateQuitBox();
22
- // 再添加固定卡片样式
23
- tempcard.classList.add('fixed-card-widget');
24
- }
25
- }
26
- }
27
- //创建一个蒙版,作为退出键使用
28
- function CreateQuitBox(){
29
- var quitBox = `<div id="quit-box" onclick="RemoveFixedCardWidget()"></div>`
30
- var asideContent = document.getElementById('aside-content');
31
- asideContent.insertAdjacentHTML("beforebegin",quitBox)
32
- }
33
- // 移除卡片方法
34
- function RemoveFixedCardWidget(){
35
- var activedItems = document.querySelectorAll('.fixed-card-widget');
36
- if (activedItems) {
37
- for (i = 0; i < activedItems.length; i++) {
38
- activedItems[i].classList.remove('fixed-card-widget');
39
- }
40
- }
41
- //移除退出蒙版
42
- var quitBox = document.getElementById('quit-box');
43
- if (quitBox) quitBox.remove();
44
- }
45
- // 常规先初始化,确保切换页面后不会有固定卡片留存
46
- RemoveFixedCardWidget()
1
+ function FixedCardWidget(e,t,n){if(e==="id")var d=document.getElementById(t);else var d=document.getElementsByClassName(t)[n];d&&(d.className.indexOf("fixed-card-widget")>-1?RemoveFixedCardWidget():(RemoveFixedCardWidget(),CreateQuitBox(),d.classList.add("fixed-card-widget")))}function CreateQuitBox(){var e='<div id="quit-box" onclick="RemoveFixedCardWidget()"></div>',t=document.getElementById("aside-content");t.insertAdjacentHTML("beforebegin",e)}function RemoveFixedCardWidget(){var e=document.querySelectorAll(".fixed-card-widget");if(e)for(i=0;i<e.length;i++)e[i].classList.remove("fixed-card-widget");var t=document.getElementById("quit-box");t&&t.remove()}RemoveFixedCardWidget();
package/js/fps.js CHANGED
@@ -1,59 +1 @@
1
- document.addEventListener('pjax:complete', fps);
2
- document.addEventListener('DOMContentLoaded', fps);
3
- function fps() {
4
- if (window.localStorage.getItem("fpson") == "1") {
5
- var rAF = function () {
6
- return (
7
- window.requestAnimationFrame ||
8
- window.webkitRequestAnimationFrame ||
9
- function (callback) {
10
- window.setTimeout(callback, 1000 / 60);
11
- }
12
- );
13
- }();
14
- var frame = 0;
15
- var allFrameCount = 0;
16
- var lastTime = Date.now();
17
- var lastFameTime = Date.now();
18
- var loop = function () {
19
- var now = Date.now();
20
- var fs = (now - lastFameTime);
21
- var fps = Math.round(1000 / fs);
22
-
23
- lastFameTime = now;
24
- // 不置 0,在动画的开头及结尾记录此值的差值算出 FPS
25
- allFrameCount++;
26
- frame++;
27
-
28
- if (now > 1000 + lastTime) {
29
- var fps = Math.round((frame * 1000) / (now - lastTime));
30
- if (fps <= 6) {
31
- var kd = `<span style="color:#bd0000">卡成ppt</span>`
32
- }
33
- else if (fps <= 10) {
34
- var kd = `<span style="color:red">电竞级帧率</span>`
35
- }
36
- else if (fps <= 14) {
37
- var kd = `<span style="color:yellow">难受</span>`
38
- }
39
- else if (fps < 24) {
40
- var kd = `<span style="color:orange">卡</span>`
41
- }
42
- else if (fps <= 40) {
43
- var kd = `<span style="color:green">...</span>`
44
- }
45
- else {
46
- var kd = `<span style="color:#425aef">正常</span>`
47
- }
48
- document.getElementById("fps").innerHTML = `FPS:${fps} ${kd}`;
49
- frame = 0;
50
- lastTime = now;
51
- };
52
-
53
- rAF(loop);
54
- }
55
-
56
- loop();
57
- }
58
- else { $("#fps").hide() }
59
- }
1
+ document.addEventListener("pjax:complete",fps),document.addEventListener("DOMContentLoaded",fps);function fps(){if(window.localStorage.getItem("fpson")=="1"){var d=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,16.666666666666668)}}(),o=0,i=0,t=Date.now(),r=Date.now(),s=function(){var e=Date.now(),p=e-r,n=Math.round(1e3/p);if(r=e,i++,o++,e>1e3+t){var n=Math.round(o*1e3/(e-t));if(n<=6)var a='<span style="color:#bd0000">\u5361\u6210ppt</span>';else if(n<=10)var a='<span style="color:red">\u7535\u7ADE\u7EA7\u5E27\u7387</span>';else if(n<=14)var a='<span style="color:yellow">\u96BE\u53D7</span>';else if(n<24)var a='<span style="color:orange">\u5361</span>';else if(n<=40)var a='<span style="color:green">...</span>';else var a='<span style="color:#425aef">\u6B63\u5E38</span>';document.getElementById("fps").innerHTML=`FPS:${n} ${a}`,o=0,t=e}d(s)};s()}else $("#fps").hide()}
package/js/gitalker.js CHANGED
@@ -1,11 +1 @@
1
- var gitalk = new Gitalk({
2
- clientID: 'e9c8a4c42b9bd57da9d9',
3
- clientSecret: '51b45e474eaf45a0b89f25e081da82a69fd47a09',
4
- repo: 'lyxofficial.github.io',
5
- owner: 'lyxofficial',
6
- admin: ['lyxofficial'],
7
- id: location.pathname, // Ensure uniqueness and length less than 50
8
- distractionFreeMode: false // Facebook-like distraction free mode
9
- })
10
-
11
- gitalk.render('gitalk-container')
1
+ var gitalk=new Gitalk({clientID:"e9c8a4c42b9bd57da9d9",clientSecret:"51b45e474eaf45a0b89f25e081da82a69fd47a09",repo:"lyxofficial.github.io",owner:"lyxofficial",admin:["lyxofficial"],id:location.pathname,distractionFreeMode:!1});gitalk.render("gitalk-container");
package/js/heimu.js CHANGED
@@ -1,17 +1 @@
1
- if (window.location.href.indexOf("posts") !== -1) {
2
- $(document).ready(function () {
3
- var l = document.querySelectorAll("s>em,del");
4
- for (i = 0; i < l.length; i++) {
5
- try {
6
- if (l[i].className !== "noheimu") {
7
- l[i].title = "你知道的太多了";
8
- l[i].setAttribute("data-toggle", "tooltip");
9
- }
10
- }
11
- catch (e) {
12
-
13
- }
14
-
15
- }
16
- })
17
- }
1
+ window.location.href.indexOf("posts")!==-1&&$(document).ready(function(){var t=document.querySelectorAll("s>em,del");for(i=0;i<t.length;i++)try{t[i].className!=="noheimu"&&(t[i].title="\u4F60\u77E5\u9053\u7684\u592A\u591A\u4E86",t[i].setAttribute("data-toggle","tooltip"))}catch{}});
package/js/hide.show.js CHANGED
@@ -1,17 +1 @@
1
- function isInViewPortOfOne(el) {
2
- const viewPortHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
3
- const offsetTop = el.offsetTop
4
- const scrollTop = document.documentElement.scrollTop
5
- const top = offsetTop - scrollTop
6
- return top <= viewPortHeight
7
- }
8
- $(window).scroll(function () {
9
- if (isInViewPortOfOne(document.getElementsByTagName("footer")[0])) {
10
- $(".aplayer .aplayer-body").hide();
11
- $("#fps").hide();
12
- }
13
- else {
14
- $(".aplayer .aplayer-body").show();
15
- $("#fps").show();
16
- }
17
- })
1
+ function isInViewPortOfOne(e){const o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t=e.offsetTop,n=document.documentElement.scrollTop;return t-n<=o}$(window).scroll(function(){isInViewPortOfOne(document.getElementsByTagName("footer")[0])?($(".aplayer .aplayer-body").hide(),$("#fps").hide()):($(".aplayer .aplayer-body").show(),$("#fps").show())});