q78kgblog 0.0.0-1720441708496 → 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 (133) hide show
  1. package/404.html +3 -3
  2. package/about/index.html +5 -5
  3. package/archives/2023/02/index.html +4 -4
  4. package/archives/2023/04/index.html +4 -4
  5. package/archives/2023/05/index.html +4 -4
  6. package/archives/2023/08/index.html +4 -4
  7. package/archives/2023/09/index.html +4 -4
  8. package/archives/2023/index.html +4 -4
  9. package/archives/2024/01/index.html +4 -4
  10. package/archives/2024/02/index.html +4 -4
  11. package/archives/2024/index.html +4 -4
  12. package/archives/index.html +4 -4
  13. package/atom.xml +9 -9
  14. package/baidusitemap.xml +8 -8
  15. package/bangumis/index.html +4 -4
  16. package/bigpie/index.html +3 -3
  17. package/categories/Hexo/index.html +4 -4
  18. package/categories/index.html +3 -3
  19. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +4 -4
  20. package/categories//347/264/240/346/235/220/index.html +4 -4
  21. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +4 -4
  22. package/content.json +1 -1
  23. package/css/404page.css +1 -65
  24. package/css/ariasakablog.css +1 -6669
  25. package/css/commentBarrage.css +1 -118
  26. package/css/danmaku.css +1 -106
  27. package/css/essay.css +1 -306
  28. package/css/iconfont.css +1 -55
  29. package/css/index.css +1 -7006
  30. package/css/people.css +1 -18
  31. package/css/stylessimple.css +1 -40
  32. package/css/swiperstyle.css +1 -567
  33. package/fcircle/index.html +3 -3
  34. package/fontawesome/index.html +3 -3
  35. package/index.html +11 -11
  36. package/js/aplayersave.js +1 -268
  37. package/js/baiduhistory.js +1 -76
  38. package/js/browser.js +1 -35
  39. package/js/calendar.js +1 -380
  40. package/js/cate.js +1 -22
  41. package/js/commentBarrage.js +17 -232
  42. package/js/commentsCount.js +1 -43
  43. package/js/copy.js +1 -23
  44. package/js/countup.js +1 -209
  45. package/js/cursor.js +1 -82
  46. package/js/danmaku.js +0 -106
  47. package/js/day.js +13 -195
  48. package/js/dianzan.js +1 -249
  49. package/js/dis.js +4 -252
  50. package/js/dist/baiduhistory.dev.js +1 -102
  51. package/js/dist/bbtalk.dev.js +159 -12872
  52. package/js/dist/bbtalklunbo.dev.js +1 -45
  53. package/js/dist/calendar.dev.js +1 -395
  54. package/js/dist/fixbugpjax.dev.js +1 -8
  55. package/js/dist/gongnong.dev.js +1 -565
  56. package/js/dist/heimu.dev.js +1 -19
  57. package/js/dist/links.dev.js +1 -13
  58. package/js/dist/main.dev.js +5 -843
  59. package/js/dist/resizeTop.dev.js +1 -50
  60. package/js/dist/seo.dev.js +1 -33
  61. package/js/dist/twikoo.all.min.dev.js +946 -1
  62. package/js/fixbugpjax.js +1 -7
  63. package/js/fixed_card_widget.js +1 -46
  64. package/js/fps.js +1 -58
  65. package/js/gitalker.js +1 -11
  66. package/js/heimu.js +1 -16
  67. package/js/hide.show.js +1 -17
  68. package/js/languages.js +1 -511
  69. package/js/latest.js +1 -49
  70. package/js/local-search.js +2 -476
  71. package/js/lunar.js +1 -1071
  72. package/js/lyxTalk.js +1 -12
  73. package/js/main.js +5 -781
  74. package/js/nav.js +1 -30
  75. package/js/noie.js +1 -3
  76. package/js/owo.js +1 -52
  77. package/js/people.js +2 -175
  78. package/js/randomFriend.js +1 -95
  79. package/js/resizeTop.js +1 -43
  80. package/js/rightmenu.js +3 -333
  81. package/js/sakura.js +1 -164
  82. package/js/search/algolia.js +4 -154
  83. package/js/search/local-search.js +1 -188
  84. package/js/settings.js +3 -343
  85. package/js/sitetime.js +1 -25
  86. package/js/smooth-scrolling.js +1 -546
  87. package/js/sw-toolbox.js +1 -16
  88. package/js/swiperinit.js +1 -23
  89. package/js/tw_cn.js +1 -100
  90. package/js/utils.js +1 -278
  91. package/js/welcome.js +1 -107
  92. package/js/welcomeconsole.js +1 -23
  93. package/links/index.html +3 -3
  94. package/othersite/index.html +3 -3
  95. package/package.json +1 -1
  96. package/posts/164ef646/index.html +6 -6
  97. package/posts/228c2ef8/index.html +6 -6
  98. package/posts/a9a6c1fb/index.html +6 -6
  99. package/posts/c262e439/index.html +6 -6
  100. package/posts/c81531cf/index.html +6 -6
  101. package/posts/ccdf7cfc/index.html +6 -6
  102. package/posts/de1f83f4/index.html +6 -6
  103. package/posts/e54f7476/index.html +6 -6
  104. package/sitemap.xml +49 -49
  105. package/sw.js +2 -193
  106. package/swReg.js +1 -29
  107. package/tags/AI/index.html +5 -5
  108. package/tags/Butterfly/index.html +5 -5
  109. package/tags/Cloudflare/index.html +5 -5
  110. package/tags/DiffSinger/index.html +5 -5
  111. package/tags/Hexo/index.html +5 -5
  112. package/tags/Next/index.html +5 -5
  113. package/tags/RAID/index.html +5 -5
  114. package/tags/Vercel/index.html +5 -5
  115. package/tags/Workers/index.html +5 -5
  116. package/tags/index.html +3 -3
  117. package/tags//344/270/273/351/242/230/index.html +5 -5
  118. package/tags//345/206/231/344/275/234/index.html +5 -5
  119. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +5 -5
  120. package/tags//345/255/246/344/271/240/index.html +5 -5
  121. package/tags//345/256/266/351/207/214/344/272/221/index.html +5 -5
  122. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +5 -5
  123. package/tags//346/212/230/350/205/276/index.html +5 -5
  124. package/tags//346/227/245/345/270/270/index.html +5 -5
  125. package/tags//346/234/215/345/212/241/345/231/250/index.html +5 -5
  126. package/tags//346/265/252/346/275/256/index.html +5 -5
  127. package/tags//347/256/200/347/210/261/index.html +5 -5
  128. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +5 -5
  129. package/tags//350/256/272/346/226/207/index.html +5 -5
  130. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +5 -5
  131. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +5 -5
  132. package/tags//351/207/221/345/217/245/index.html +5 -5
  133. package/tags//351/255/224/346/224/271/index.html +5 -5
package/js/day.js CHANGED
@@ -1,199 +1,17 @@
1
- var d = new Date();
2
- m=d.getMonth()+1;
3
- dd=d.getDate();
4
- y=d.getFullYear();
5
- //cookie函数
1
+ var d=new Date;m=d.getMonth()+1,dd=d.getDate(),y=d.getFullYear();function randomNum(o,e){switch(arguments.length){case 1:return parseInt(Math.random()*o+1,10);case 2:return parseInt(Math.random()*(e-o+1)+o,10);default:return 0}}m==9&&dd==18&&(console.log(`\u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01
6
2
 
3
+ \u4ECA\u5929\u662F1931\u5E749\u670818\u65E5\u4E5D\u4E00\u516B\u4E8B\u53D8`+(y-1931).toString()+`\u5468\u5E74\u7EAA\u5FF5\u65E5\uFF01
4
+ =================================================================`),document.getElementById("grays").innerText=":root{filter: grayscale(100%);}",sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4ECA\u5929\u662F1931\u5E749\u670818\u65E5\u4E5D\u4E00\u516B\u4E8B\u53D8"+(y-1931).toString()+`\u5468\u5E74\u7EAA\u5FF5\u65E5\u3002
5
+ \u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01`),sessionStorage.setItem("isPopupWindow","1"))),m==7&&dd==7&&(console.log(`\u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01
7
6
 
8
- function randomNum(minNum,maxNum){
9
- switch(arguments.length){
10
- case 1:
11
- return parseInt(Math.random()*minNum+1,10);
12
- break;
13
- case 2:
14
- return parseInt(Math.random()*(maxNum-minNum+1)+minNum,10);
15
- break;
16
- default:
17
- return 0;
18
- break;
19
- }
20
- }
21
- //纪念日
7
+ \u4ECA\u5929\u662F1937\u5E747\u67087\u65E5\u5362\u6C9F\u6865\u4E8B\u53D8`+(y-1937).toString()+`\u5468\u5E74\u7EAA\u5FF5\u65E5\uFF01
8
+ =================================================================`),document.getElementById("grays").innerText=":root{filter: grayscale(100%);}",sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4ECA\u5929\u662F1937\u5E747\u67087\u65E5\u5362\u6C9F\u6865\u4E8B\u53D8"+(y-1937).toString()+`\u5468\u5E74\u7EAA\u5FF5\u65E5\u3002
9
+ \u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01`),sessionStorage.setItem("isPopupWindow","1"))),m==12&&dd==13&&(console.log(`\u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01
22
10
 
23
- if(m==9&&dd==18){
24
- console.log("勿忘国耻,振兴中华!\n\n今天是1931年9月18日九一八事变"+(y-1931).toString()+"周年纪念日!\n=================================================================")
25
- document.getElementById("grays").innerText=":root{filter: grayscale(100%);}";
26
- if(sessionStorage.getItem("isPopupWindow")!="1"){
27
- Swal.fire("今天是1931年9月18日九一八事变"+(y-1931).toString()+"周年纪念日。\n勿忘国耻,振兴中华!");
28
- sessionStorage.setItem("isPopupWindow","1");
29
- }
30
- }
31
- if(m==7&&dd==7){
32
- console.log("勿忘国耻,振兴中华!\n\n今天是1937年7月7日卢沟桥事变"+(y-1937).toString()+"周年纪念日!\n=================================================================")
33
- document.getElementById("grays").innerText=":root{filter: grayscale(100%);}";
34
- if(sessionStorage.getItem("isPopupWindow")!="1"){
35
- Swal.fire("今天是1937年7月7日卢沟桥事变"+(y-1937).toString()+"周年纪念日。\n勿忘国耻,振兴中华!");
36
- sessionStorage.setItem("isPopupWindow","1");
37
- }
38
- }
39
- if(m==12&&dd==13){
40
- console.log("勿忘国耻,振兴中华!\n\n今天是1937年12月13日南京大屠杀"+(y-1931).toString()+"周年纪念日!为遇难的无辜同胞们缅怀!\n=================================================================")
41
- document.getElementById("grays").innerText=":root{filter: grayscale(100%);}";
42
- if(sessionStorage.getItem("isPopupWindow")!="1"){
43
- Swal.fire("今天是1937年12月13日南京大屠杀"+(y-1937).toString()+"周年纪念日,希望你能停下来缅怀遇难的无辜同胞们。\n勿忘国耻,振兴中华!");
44
- sessionStorage.setItem("isPopupWindow","1");
45
- }
46
- }
47
- if(m==8&&dd==14){
48
- console.log("勿忘国耻,振兴中华!\n\n今天是8月14日世界慰安妇纪念日!\n=================================================================")
49
- document.getElementById("grays").innerText=":root{filter: grayscale(100%);}";
50
- if(sessionStorage.getItem("isPopupWindow")!="1"){
51
- Swal.fire("今天是8月14日世界慰安妇纪念日,希望你能停下来了解一下来为历史作证,为曾经的无辜妇女发声。\n勿忘国耻,振兴中华!");
52
- sessionStorage.setItem("isPopupWindow","1");
53
- }
54
- }
11
+ \u4ECA\u5929\u662F1937\u5E7412\u670813\u65E5\u5357\u4EAC\u5927\u5C60\u6740`+(y-1931).toString()+`\u5468\u5E74\u7EAA\u5FF5\u65E5\uFF01\u4E3A\u9047\u96BE\u7684\u65E0\u8F9C\u540C\u80DE\u4EEC\u7F05\u6000\uFF01
12
+ =================================================================`),document.getElementById("grays").innerText=":root{filter: grayscale(100%);}",sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4ECA\u5929\u662F1937\u5E7412\u670813\u65E5\u5357\u4EAC\u5927\u5C60\u6740"+(y-1937).toString()+`\u5468\u5E74\u7EAA\u5FF5\u65E5\uFF0C\u5E0C\u671B\u4F60\u80FD\u505C\u4E0B\u6765\u7F05\u6000\u9047\u96BE\u7684\u65E0\u8F9C\u540C\u80DE\u4EEC\u3002
13
+ \u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01`),sessionStorage.setItem("isPopupWindow","1"))),m==8&&dd==14&&(console.log(`\u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01
55
14
 
56
- //节假日
57
-
58
- if(m==10&&dd<=5){//国庆节
59
- console.log("祖国"+(y-1949).toString()+"岁生日快乐!");
60
- if(sessionStorage.getItem("isPopupWindow")!="1"){
61
- Swal.fire("祖国"+(y-1949).toString()+"岁生日快乐!");
62
- sessionStorage.setItem("isPopupWindow","1");
63
- }
64
- }
65
- if(m==8&&dd==15){//搞来玩的,鬼子投降
66
- console.log("鬼子投降"+(y-1945).toString()+"年了!");
67
- if(sessionStorage.getItem("isPopupWindow")!="1"){
68
- Swal.fire("鬼子投降"+(y-1945).toString()+"年了!");
69
- sessionStorage.setItem("isPopupWindow","1");
70
- }
71
- }
72
- if(m==1&&dd==1){//元旦节
73
- console.log(y.toString()+"年元旦快乐!");
74
- if(sessionStorage.getItem("isPopupWindow")!="1"){
75
- Swal.fire(y.toString()+"年元旦快乐!");
76
- sessionStorage.setItem("isPopupWindow","1");
77
- }
78
- }
79
- if(m==3&&dd==8){//妇女节
80
- console.log("各位女神们,妇女节快乐!");
81
- if(sessionStorage.getItem("isPopupWindow")!="1"){
82
- Swal.fire("各位女神们,妇女节快乐!");
83
- sessionStorage.setItem("isPopupWindow","1");
84
- }
85
- }
86
- l=["震惊!微软让Minecraft Java免费了!","Minecraft竟然违背Mojang的原则发布2.0!","非常抱歉,因为不可控原因,博客将于明天停止运营,再见","好消息,日本没了!","美国垮了,背后原因竟是时刻心心念念想着祖国的川普!","微软垮了!","?!"]
87
- console.log(m,dd);
88
- if(m==4&&dd==1){//愚人节,随机谎话
89
- console.log(l[randomNum(0,l.length-1)]);
90
- if(sessionStorage.getItem("isPopupWindow")!="1"){
91
- Swal.fire(l[randomNum(0,l.length-1)]);
92
- sessionStorage.setItem("isPopupWindow","1");
93
- }
94
- }
95
- if(m==5&&dd==1){//劳动节
96
- console.log("劳动节快乐!为助力各行各业发展辛勤工作的人们致敬!");
97
- if(sessionStorage.getItem("isPopupWindow")!="1"){
98
- Swal.fire("劳动节快乐!为助力各行各业发展辛勤工作的人们致敬!");
99
- sessionStorage.setItem("isPopupWindow","1");
100
- }
101
- }
102
- if(m==5&&dd==4){//青年节
103
- console.log("为有思想政治觉悟,拥护中国共产党,追求无产阶级、共产主义、马克思主义的青年们致敬!");
104
- if(sessionStorage.getItem("isPopupWindow")!="1"){
105
- Swal.fire("为有思想政治觉悟,拥护中国共产党,追求无产阶级、共产主义、马克思主义的青年们致敬");
106
- sessionStorage.setItem("isPopupWindow","1");
107
- }
108
- }
109
- if(m==6&&dd==1){//儿童节
110
- console.log("各位小朋友们,儿童节快乐!");
111
- if(sessionStorage.getItem("isPopupWindow")!="1"){
112
- Swal.fire("各位小朋友们,儿童节快乐!");
113
- sessionStorage.setItem("isPopupWindow","1");
114
- }
115
- }
116
- if(m==7&&dd==1){//建党节
117
- console.log("中国共产党"+(y-1921).toString()+"岁生日快乐");
118
- if(sessionStorage.getItem("isPopupWindow")!="1"){
119
- Swal.fire("中国共产党"+(y-1921).toString()+"岁生日快乐");
120
- sessionStorage.setItem("isPopupWindow","1");
121
- }
122
- }
123
-
124
- //传统节日部分
125
-
126
- if(m==4&&dd==4||(m==4&&dd==5)){//清明节
127
- console.log("清明安康");
128
- if(sessionStorage.getItem("isPopupWindow")!="1"){
129
- Swal.fire("清明安康");
130
- sessionStorage.setItem("isPopupWindow","1");
131
- }
132
- }
133
-
134
- var lunar=calendarFormatter.solar2lunar();
135
-
136
- //农历采用汉字计算,防止出现闰月导致问题
137
-
138
- if((lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="初六")||(lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="初五")||(lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="初四")||(lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="初三")||(lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="初二")||(lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="初一")||(lunar["IMonthCn"]=="腊月"&&lunar["IDayCn"]=="三十")||(lunar["IMonthCn"]=="腊月"&&lunar["IDayCn"]=="廿九")){
139
- //春节,本来只有大年三十到初六,但是有时候除夕是大年二十九,所以也加上了
140
- console.log(y.toString()+"年新年快乐!");
141
- if(sessionStorage.getItem("isPopupWindow")!="1"){
142
- Swal.fire(y.toString()+"年新年快乐!");
143
- sessionStorage.setItem("isPopupWindow","1");
144
- }
145
- }
146
- if((lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="十五")){
147
- //元宵节
148
- console.log("元宵节快乐!");
149
- if(sessionStorage.getItem("isPopupWindow")!="1"){
150
- Swal.fire("元宵节快乐!");
151
- sessionStorage.setItem("isPopupWindow","1");
152
- }
153
- }
154
- if((lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="十五")){
155
- //元宵节
156
- console.log("元宵节快乐!");
157
- if(sessionStorage.getItem("isPopupWindow")!="1"){
158
- Swal.fire("元宵节快乐!");
159
- sessionStorage.setItem("isPopupWindow","1");
160
- }
161
- }
162
- if((lunar["IMonthCn"]=="五月"&&lunar["IDayCn"]=="初五")){
163
- //端午节
164
- console.log("端午节快乐!");
165
- if(sessionStorage.getItem("isPopupWindow")!="1"){
166
- Swal.fire("端午节快乐!");
167
- sessionStorage.setItem("isPopupWindow","1");
168
- }
169
- }
170
- if((lunar["IMonthCn"]=="七月"&&lunar["IDayCn"]=="初七")){
171
- //七夕节
172
- console.log("七夕节快乐!");
173
- if(sessionStorage.getItem("isPopupWindow")!="1"){
174
- Swal.fire("七夕节快乐!");
175
- sessionStorage.setItem("isPopupWindow","1");
176
- }
177
- }
178
- if((lunar["IMonthCn"]=="八月"&&lunar["IDayCn"]=="十五")){
179
- //中秋节
180
- console.log("中秋节快乐!");
181
- if(sessionStorage.getItem("isPopupWindow")!="1"){
182
- Swal.fire("中秋节快乐!");
183
- sessionStorage.setItem("isPopupWindow","1");
184
- }
185
- }
186
- if((lunar["IMonthCn"]=="九月"&&lunar["IDayCn"]=="初九")){
187
- //重阳节
188
- console.log("重阳节快乐!");
189
- if(sessionStorage.getItem("isPopupWindow")!="1"){
190
- Swal.fire("重阳节快乐!");
191
- sessionStorage.setItem("isPopupWindow","1");
192
- }
193
- }
194
- // console.log("江爷爷一路走好!🕯️🕯️🕯️\n=================================================================")
195
- // document.getElementById("grays").innerText=":root{filter: grayscale(100%);}";
196
- // if(sessionStorage.getItem("isPopupWindow")!="1"){
197
- // Swal.fire("江爷爷一路走好!🕯️🕯️🕯️");
198
- // sessionStorage.setItem("isPopupWindow","1");
199
- // }
15
+ \u4ECA\u5929\u662F8\u670814\u65E5\u4E16\u754C\u6170\u5B89\u5987\u7EAA\u5FF5\u65E5\uFF01
16
+ =================================================================`),document.getElementById("grays").innerText=":root{filter: grayscale(100%);}",sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire(`\u4ECA\u5929\u662F8\u670814\u65E5\u4E16\u754C\u6170\u5B89\u5987\u7EAA\u5FF5\u65E5\uFF0C\u5E0C\u671B\u4F60\u80FD\u505C\u4E0B\u6765\u4E86\u89E3\u4E00\u4E0B\u6765\u4E3A\u5386\u53F2\u4F5C\u8BC1\uFF0C\u4E3A\u66FE\u7ECF\u7684\u65E0\u8F9C\u5987\u5973\u53D1\u58F0\u3002
17
+ \u52FF\u5FD8\u56FD\u803B\uFF0C\u632F\u5174\u4E2D\u534E\uFF01`),sessionStorage.setItem("isPopupWindow","1"))),m==10&&dd<=5&&(console.log("\u7956\u56FD"+(y-1949).toString()+"\u5C81\u751F\u65E5\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u7956\u56FD"+(y-1949).toString()+"\u5C81\u751F\u65E5\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),m==8&&dd==15&&(console.log("\u9B3C\u5B50\u6295\u964D"+(y-1945).toString()+"\u5E74\u4E86\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u9B3C\u5B50\u6295\u964D"+(y-1945).toString()+"\u5E74\u4E86\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),m==1&&dd==1&&(console.log(y.toString()+"\u5E74\u5143\u65E6\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire(y.toString()+"\u5E74\u5143\u65E6\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),m==3&&dd==8&&(console.log("\u5404\u4F4D\u5973\u795E\u4EEC\uFF0C\u5987\u5973\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u5404\u4F4D\u5973\u795E\u4EEC\uFF0C\u5987\u5973\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),l=["\u9707\u60CA\uFF01\u5FAE\u8F6F\u8BA9Minecraft Java\u514D\u8D39\u4E86\uFF01","Minecraft\u7ADF\u7136\u8FDD\u80CCMojang\u7684\u539F\u5219\u53D1\u5E032.0\uFF01","\u975E\u5E38\u62B1\u6B49\uFF0C\u56E0\u4E3A\u4E0D\u53EF\u63A7\u539F\u56E0\uFF0C\u535A\u5BA2\u5C06\u4E8E\u660E\u5929\u505C\u6B62\u8FD0\u8425\uFF0C\u518D\u89C1","\u597D\u6D88\u606F\uFF0C\u65E5\u672C\u6CA1\u4E86\uFF01","\u7F8E\u56FD\u57AE\u4E86\uFF0C\u80CC\u540E\u539F\u56E0\u7ADF\u662F\u65F6\u523B\u5FC3\u5FC3\u5FF5\u5FF5\u60F3\u7740\u7956\u56FD\u7684\u5DDD\u666E\uFF01","\u5FAE\u8F6F\u57AE\u4E86\uFF01","\uFF1F\uFF01"],console.log(m,dd),m==4&&dd==1&&(console.log(l[randomNum(0,l.length-1)]),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire(l[randomNum(0,l.length-1)]),sessionStorage.setItem("isPopupWindow","1"))),m==5&&dd==1&&(console.log("\u52B3\u52A8\u8282\u5FEB\u4E50\uFF01\u4E3A\u52A9\u529B\u5404\u884C\u5404\u4E1A\u53D1\u5C55\u8F9B\u52E4\u5DE5\u4F5C\u7684\u4EBA\u4EEC\u81F4\u656C\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u52B3\u52A8\u8282\u5FEB\u4E50\uFF01\u4E3A\u52A9\u529B\u5404\u884C\u5404\u4E1A\u53D1\u5C55\u8F9B\u52E4\u5DE5\u4F5C\u7684\u4EBA\u4EEC\u81F4\u656C\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),m==5&&dd==4&&(console.log("\u4E3A\u6709\u601D\u60F3\u653F\u6CBB\u89C9\u609F\uFF0C\u62E5\u62A4\u4E2D\u56FD\u5171\u4EA7\u515A\uFF0C\u8FFD\u6C42\u65E0\u4EA7\u9636\u7EA7\u3001\u5171\u4EA7\u4E3B\u4E49\u3001\u9A6C\u514B\u601D\u4E3B\u4E49\u7684\u9752\u5E74\u4EEC\u81F4\u656C\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4E3A\u6709\u601D\u60F3\u653F\u6CBB\u89C9\u609F\uFF0C\u62E5\u62A4\u4E2D\u56FD\u5171\u4EA7\u515A\uFF0C\u8FFD\u6C42\u65E0\u4EA7\u9636\u7EA7\u3001\u5171\u4EA7\u4E3B\u4E49\u3001\u9A6C\u514B\u601D\u4E3B\u4E49\u7684\u9752\u5E74\u4EEC\u81F4\u656C"),sessionStorage.setItem("isPopupWindow","1"))),m==6&&dd==1&&(console.log("\u5404\u4F4D\u5C0F\u670B\u53CB\u4EEC\uFF0C\u513F\u7AE5\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u5404\u4F4D\u5C0F\u670B\u53CB\u4EEC\uFF0C\u513F\u7AE5\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),m==7&&dd==1&&(console.log("\u4E2D\u56FD\u5171\u4EA7\u515A"+(y-1921).toString()+"\u5C81\u751F\u65E5\u5FEB\u4E50"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4E2D\u56FD\u5171\u4EA7\u515A"+(y-1921).toString()+"\u5C81\u751F\u65E5\u5FEB\u4E50"),sessionStorage.setItem("isPopupWindow","1"))),(m==4&&dd==4||m==4&&dd==5)&&(console.log("\u6E05\u660E\u5B89\u5EB7"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u6E05\u660E\u5B89\u5EB7"),sessionStorage.setItem("isPopupWindow","1")));var lunar=calendarFormatter.solar2lunar();(lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u521D\u516D"||lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u521D\u4E94"||lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u521D\u56DB"||lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u521D\u4E09"||lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u521D\u4E8C"||lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u521D\u4E00"||lunar.IMonthCn=="\u814A\u6708"&&lunar.IDayCn=="\u4E09\u5341"||lunar.IMonthCn=="\u814A\u6708"&&lunar.IDayCn=="\u5EFF\u4E5D")&&(console.log(y.toString()+"\u5E74\u65B0\u5E74\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire(y.toString()+"\u5E74\u65B0\u5E74\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u5341\u4E94"&&(console.log("\u5143\u5BB5\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u5143\u5BB5\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),lunar.IMonthCn=="\u6B63\u6708"&&lunar.IDayCn=="\u5341\u4E94"&&(console.log("\u5143\u5BB5\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u5143\u5BB5\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),lunar.IMonthCn=="\u4E94\u6708"&&lunar.IDayCn=="\u521D\u4E94"&&(console.log("\u7AEF\u5348\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u7AEF\u5348\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),lunar.IMonthCn=="\u4E03\u6708"&&lunar.IDayCn=="\u521D\u4E03"&&(console.log("\u4E03\u5915\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4E03\u5915\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),lunar.IMonthCn=="\u516B\u6708"&&lunar.IDayCn=="\u5341\u4E94"&&(console.log("\u4E2D\u79CB\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u4E2D\u79CB\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1"))),lunar.IMonthCn=="\u4E5D\u6708"&&lunar.IDayCn=="\u521D\u4E5D"&&(console.log("\u91CD\u9633\u8282\u5FEB\u4E50\uFF01"),sessionStorage.getItem("isPopupWindow")!="1"&&(Swal.fire("\u91CD\u9633\u8282\u5FEB\u4E50\uFF01"),sessionStorage.setItem("isPopupWindow","1")));
package/js/dianzan.js CHANGED
@@ -1,249 +1 @@
1
- // function setCookie(cname, cvalue) {
2
- // // var d = new Date();
3
- // // d.setTime(d.getTime()+(exdays*24*60*60*1000));
4
- // // var expires = "expires="+d.toGMTString();
5
- // // document.cookie = cname + "=" + cvalue + "; " + expires;
6
- // document.cookie = cname + "=" + cvalue + ";";
7
- // }
8
- // function getCookie(cname) {
9
- // var name = cname + "=";
10
- // var ca = document.cookie.split(';');
11
- // for (var i = 0; i < ca.length; i++) {
12
- // var c = ca[i].trim();
13
- // if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
14
- // }
15
- // return "";
16
- // }
17
- // function GetUrlRelativePath() {
18
- // var url = document.location.toString();
19
- // var arrUrl = url.split("//");
20
-
21
- // var start = arrUrl[1].indexOf("/");
22
- // var relUrl = arrUrl[1].substring(start);
23
-
24
- // if (relUrl.indexOf("?") != -1) {
25
- // relUrl = relUrl.split("?")[0];
26
- // }
27
- // return relUrl;
28
- // }
29
- // $(document).ready(function () {
30
- // const {
31
- // Query,
32
- // User
33
- // } = AV;
34
- // AV.init({
35
- // appId: "IvW3T1NjMoh7OmKEdAz1tM0o-gzGzoHsz",
36
- // appKey: "vG8s9ukVO5bgozEHzR923dew",
37
- // serverURL: "https://ivw3t1nj.lc-cn-n1-shared.com"
38
- // });
39
- // var dianzans = [];
40
- // var hrefs = [];
41
- // var ids = [];
42
- // const query2 = new AV.Query('dianzan');
43
- // query2.find().then((dzs) => {
44
- // for (i = dzs.length - 1; i >= 0; i--) {
45
- // dianzans.push(dzs[i]["attributes"]["count"]);
46
- // hrefs.push(dzs[i]["attributes"]["href"]);
47
- // ids.push(dzs[i]["id"])
48
- // }
49
- // index = hrefs.indexOf(GetUrlRelativePath());
50
- // console.log(dianzans[index])
51
- // if (dianzans[index] === undefined) {
52
- // document.getElementsByClassName("dianzan-count")[0].innerText = "0";
53
- // } else {
54
- // document.getElementsByClassName("dianzan-count")[0].innerText = dianzans[index];
55
- // }
56
- // if (hrefs.indexOf(GetUrlRelativePath()) == -1) {
57
- // const TestObject = AV.Object.extend('dianzan');
58
- // const testObject = new TestObject();
59
- // testObject.set('href', GetUrlRelativePath());
60
- // testObject.set('count', 0);
61
- // testObject.save();
62
- // }
63
- // });
64
- // })
65
-
66
- // function setCount() {
67
- // var dianzans = [];
68
- // var hrefs = [];
69
- // var ids = [];
70
- // const query2 = new AV.Query('dianzan');
71
- // query2.find().then((dzs) => {
72
- // for (i = dzs.length - 1; i >= 0; i--) {
73
- // dianzans.push(dzs[i]["attributes"]["count"]);
74
- // hrefs.push(dzs[i]["attributes"]["href"]);
75
- // ids.push(dzs[i]["id"])
76
- // }
77
- // index = hrefs.indexOf(GetUrlRelativePath());
78
- // console.log(dianzans[index])
79
- // if (dianzans[index] === undefined) {
80
- // document.getElementsByClassName("dianzan-count")[0].innerText = "0";
81
- // } else {
82
- // document.getElementsByClassName("dianzan-count")[0].innerText = dianzans[index];
83
- // }
84
- // });
85
- // if (getCookie(GetUrlRelativePath() + "isZaned") == "1") {
86
- // document.getElementsByClassName("fa-thumbs-up")[0].setAttribute("style", "color:var(--lyx-blue)!important")
87
- // }
88
- // else {
89
- // document.getElementsByClassName("fa-thumbs-up")[0].setAttribute("style", "")
90
- // }
91
- // }
92
-
93
- // function dianzan() {
94
- // if (getCookie(GetUrlRelativePath() + "isZaned") != "1") {
95
- // // try {
96
- // var dianzans = [];
97
- // var hrefs = [];
98
- // var ids = [];
99
- // const query = new AV.Query('dianzan');
100
- // query.find().then((dzs) => {
101
- // for (i = dzs.length - 1; i >= 0; i--) {
102
- // dianzans.push(dzs[i]["attributes"]["count"]);
103
- // hrefs.push(dzs[i]["attributes"]["href"]);
104
- // ids.push(dzs[i]["id"])
105
- // }
106
- // index = hrefs.indexOf(GetUrlRelativePath());
107
- // console.log(ids[index])
108
- // query.get(ids[index]).then((todo) => {
109
- // todo.set('count', dianzans[index] + 1);
110
- // todo.save();
111
- // setCookie(GetUrlRelativePath() + "isZaned", "1")
112
- // setCount();
113
- // });
114
-
115
- // });
116
- // // } catch (err) {
117
-
118
- // // }
119
- // }
120
- // else {
121
- // try {
122
- // var dianzans = [];
123
- // var hrefs = [];
124
- // var ids = [];
125
- // const query = new AV.Query('dianzan');
126
- // query.find().then((dzs) => {
127
- // for (i = dzs.length - 1; i >= 0; i--) {
128
- // dianzans.push(dzs[i]["attributes"]["count"]);
129
- // hrefs.push(dzs[i]["attributes"]["href"]);
130
- // ids.push(dzs[i]["id"])
131
- // }
132
- // index = hrefs.indexOf(GetUrlRelativePath());
133
- // console.log(ids[index])
134
- // query.get(ids[index]).then((todo) => {
135
- // todo.set('count', dianzans[index] - 1);
136
- // todo.save();
137
- // setCookie(GetUrlRelativePath() + "isZaned", "0");
138
- // setCount();
139
- // });
140
-
141
- // });
142
- // } catch (err) { }
143
- // }
144
- // }
145
-
146
- function GetUrlRelativePath() {
147
- var url = document.location.toString();
148
- var arrUrl = url.split("//");
149
-
150
- var start = arrUrl[1].indexOf("/");
151
- var relUrl = arrUrl[1].substring(start);
152
-
153
- if (relUrl.indexOf("?") != -1) {
154
- relUrl = relUrl.split("?")[0];
155
- }
156
- return relUrl;
157
- }
158
- loadDianzan=(function () {
159
- const {
160
- Query,
161
- User
162
- } = AV;
163
- AV.init({
164
- appId: "IvW3T1NjMoh7OmKEdAz1tM0o-gzGzoHsz",
165
- appKey: "vG8s9ukVO5bgozEHzR923dew",
166
- serverURL: "https://ivw3t1nj.lc-cn-n1-shared.com"
167
- });
168
- var dianzans = [];
169
- var hrefs = [];
170
- var ids = [];
171
- const query2 = new AV.Query('dianzan');
172
- query2.find().then((dzs) => {
173
- for (i = dzs.length - 1; i >= 0; i--) {
174
- dianzans.push(dzs[i]["attributes"]["count"]);
175
- hrefs.push(dzs[i]["attributes"]["href"]);
176
- ids.push(dzs[i]["id"])
177
- }
178
- index = hrefs.indexOf(GetUrlRelativePath());
179
- console.log(dianzans[index])
180
- if (dianzans[index] === undefined) {
181
- document.getElementsByClassName("dianzan-count")[0].innerText = "0";
182
- } else {
183
- document.getElementsByClassName("dianzan-count")[0].innerText = dianzans[index];
184
- }
185
- });
186
- })
187
-
188
- document.addEventListener("DOMContentLoaded",loadDianzan);
189
- document.addEventListener("pjax:complete",loadDianzan);
190
-
191
- function setCount() {
192
- var dianzans = [];
193
- var hrefs = [];
194
- var ids = [];
195
- const query2 = new AV.Query('dianzan');
196
- query2.find().then((dzs) => {
197
- for (i = dzs.length - 1; i >= 0; i--) {
198
- dianzans.push(dzs[i]["attributes"]["count"]);
199
- hrefs.push(dzs[i]["attributes"]["href"]);
200
- ids.push(dzs[i]["id"])
201
- }
202
- index = hrefs.indexOf(GetUrlRelativePath());
203
- console.log(dianzans[index])
204
- if (dianzans[index] === undefined) {
205
- document.getElementsByClassName("dianzan-count")[0].innerText = "1";
206
- } else {
207
- document.getElementsByClassName("dianzan-count")[0].innerText = dianzans[index] + 1;
208
- }
209
- });
210
- }
211
-
212
- function dianzan() {
213
- try {
214
- var dianzans = [];
215
- var hrefs = [];
216
- var ids = [];
217
- const query = new AV.Query('dianzan');
218
- query.find().then((dzs) => {
219
- for (i = dzs.length - 1; i >= 0; i--) {
220
- dianzans.push(dzs[i]["attributes"]["count"]);
221
- hrefs.push(dzs[i]["attributes"]["href"]);
222
- ids.push(dzs[i]["id"])
223
- }
224
- if (hrefs.indexOf(GetUrlRelativePath()) == -1) {
225
- console.log(1)
226
- const TestObject = AV.Object.extend('dianzan');
227
- const testObject = new TestObject();
228
- testObject.set('href', GetUrlRelativePath());
229
- testObject.set('count', 1);
230
- testObject.save();
231
- } else {
232
- index = hrefs.indexOf(GetUrlRelativePath());
233
- console.log(ids[index])
234
- query.get(ids[index]).then((todo) => {
235
- todo.set('count', dianzans[index] + 1);
236
- todo.save();
237
- });
238
- }
239
- setCount();
240
- });
241
- } catch (err) {
242
- const TestObject = AV.Object.extend('dianzan');
243
- const testObject = new TestObject();
244
- testObject.set('href', GetUrlRelativePath());
245
- testObject.set('count', 1);
246
- testObject.save();
247
- }
248
-
249
- }
1
+ function GetUrlRelativePath(){var a=document.location.toString(),r=a.split("//"),n=r[1].indexOf("/"),t=r[1].substring(n);return t.indexOf("?")!=-1&&(t=t.split("?")[0]),t}loadDianzan=function(){const{Query:a,User:r}=AV;AV.init({appId:"IvW3T1NjMoh7OmKEdAz1tM0o-gzGzoHsz",appKey:"vG8s9ukVO5bgozEHzR923dew",serverURL:"https://ivw3t1nj.lc-cn-n1-shared.com"});var n=[],t=[],e=[];new AV.Query("dianzan").find().then(o=>{for(i=o.length-1;i>=0;i--)n.push(o[i].attributes.count),t.push(o[i].attributes.href),e.push(o[i].id);index=t.indexOf(GetUrlRelativePath()),console.log(n[index]),n[index]===void 0?document.getElementsByClassName("dianzan-count")[0].innerText="0":document.getElementsByClassName("dianzan-count")[0].innerText=n[index]})},document.addEventListener("DOMContentLoaded",loadDianzan),document.addEventListener("pjax:complete",loadDianzan);function setCount(){var a=[],r=[],n=[];new AV.Query("dianzan").find().then(e=>{for(i=e.length-1;i>=0;i--)a.push(e[i].attributes.count),r.push(e[i].attributes.href),n.push(e[i].id);index=r.indexOf(GetUrlRelativePath()),console.log(a[index]),a[index]===void 0?document.getElementsByClassName("dianzan-count")[0].innerText="1":document.getElementsByClassName("dianzan-count")[0].innerText=a[index]+1})}function dianzan(){try{var a=[],r=[],n=[];const t=new AV.Query("dianzan");t.find().then(e=>{for(i=e.length-1;i>=0;i--)a.push(e[i].attributes.count),r.push(e[i].attributes.href),n.push(e[i].id);if(r.indexOf(GetUrlRelativePath())==-1){console.log(1);const s=AV.Object.extend("dianzan"),o=new s;o.set("href",GetUrlRelativePath()),o.set("count",1),o.save()}else index=r.indexOf(GetUrlRelativePath()),console.log(n[index]),t.get(n[index]).then(s=>{s.set("count",a[index]+1),s.save()});setCount()})}catch{const e=AV.Object.extend("dianzan"),s=new e;s.set("href",GetUrlRelativePath()),s.set("count",1),s.save()}}