q78kgblog 0.0.0-1720168649694 → 0.0.0-1720429643771
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.
- package/.github/workflows/HexoSeoAutoPush.yml +8 -12
- package/404.html +4 -4
- package/about/index.html +6 -6
- package/archives/2023/02/index.html +5 -5
- package/archives/2023/04/index.html +5 -5
- package/archives/2023/05/index.html +5 -5
- package/archives/2023/08/index.html +5 -5
- package/archives/2023/09/index.html +5 -5
- package/archives/2023/index.html +5 -5
- package/archives/2024/01/index.html +5 -5
- package/archives/2024/02/index.html +5 -5
- package/archives/2024/index.html +5 -5
- package/archives/index.html +5 -5
- package/atom.xml +9 -9
- package/baidusitemap.xml +8 -8
- package/bangumis/index.html +6 -7
- package/bigpie/index.html +4 -4
- package/categories/Hexo/index.html +5 -5
- package/categories/index.html +4 -4
- package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +5 -5
- package/categories//347/264/240/346/235/220/index.html +5 -5
- package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +5 -5
- package/content.json +1 -1
- package/css/ariasakablog.css +0 -6669
- package/css/danmaku.css +0 -2
- package/fcircle/index.html +4 -4
- package/fontawesome/index.html +4 -4
- package/index.html +12 -12
- package/js/commentBarrage.js +201 -201
- package/js/day.js +110 -110
- package/js/dianzan.js +5 -5
- package/js/dis.js +242 -241
- package/js/fps.js +55 -54
- package/js/gitalker.js +1 -1
- package/js/heimu.js +16 -15
- package/js/hide.show.js +5 -5
- package/js/languages.js +510 -510
- package/js/lunar.js +517 -517
- package/js/main.js +8 -8
- package/js/resizeTop.js +31 -31
- package/js/settings.js +303 -302
- package/js/sitetime.js +11 -11
- package/js/welcomeconsole.js +9 -8
- package/links/index.html +4 -4
- package/othersite/index.html +4 -4
- package/package.json +1 -1
- package/posts/164ef646/index.html +7 -7
- package/posts/228c2ef8/index.html +7 -7
- package/posts/a9a6c1fb/index.html +7 -7
- package/posts/c262e439/index.html +7 -7
- package/posts/c81531cf/index.html +7 -7
- package/posts/ccdf7cfc/index.html +7 -7
- package/posts/de1f83f4/index.html +7 -7
- package/posts/e54f7476/index.html +7 -7
- package/random.html +2 -2
- package/sitemap.txt +2 -2
- package/sitemap.xml +55 -55
- package/tags/AI/index.html +6 -6
- package/tags/Butterfly/index.html +6 -6
- package/tags/Cloudflare/index.html +6 -6
- package/tags/DiffSinger/index.html +6 -6
- package/tags/Hexo/index.html +6 -6
- package/tags/Next/index.html +6 -6
- package/tags/RAID/index.html +6 -6
- package/tags/Vercel/index.html +6 -6
- package/tags/Workers/index.html +6 -6
- package/tags/index.html +4 -4
- package/tags//344/270/273/351/242/230/index.html +6 -6
- package/tags//345/206/231/344/275/234/index.html +6 -6
- package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +6 -6
- package/tags//345/255/246/344/271/240/index.html +6 -6
- package/tags//345/256/266/351/207/214/344/272/221/index.html +6 -6
- package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +6 -6
- package/tags//346/212/230/350/205/276/index.html +6 -6
- package/tags//346/227/245/345/270/270/index.html +6 -6
- package/tags//346/234/215/345/212/241/345/231/250/index.html +6 -6
- package/tags//346/265/252/346/275/256/index.html +6 -6
- package/tags//347/256/200/347/210/261/index.html +6 -6
- package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +6 -6
- package/tags//350/256/272/346/226/207/index.html +6 -6
- package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +6 -6
- package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +6 -6
- package/tags//351/207/221/345/217/245/index.html +6 -6
- package/tags//351/255/224/346/224/271/index.html +6 -6
package/js/day.js
CHANGED
@@ -1,194 +1,194 @@
|
|
1
1
|
var d = new Date();
|
2
|
-
m=d.getMonth()+1;
|
3
|
-
dd=d.getDate();
|
4
|
-
y=d.getFullYear();
|
2
|
+
m = d.getMonth() + 1;
|
3
|
+
dd = d.getDate();
|
4
|
+
y = d.getFullYear();
|
5
5
|
//cookie函数
|
6
6
|
|
7
7
|
|
8
|
-
function randomNum(minNum,maxNum){
|
9
|
-
switch(arguments.length){
|
10
|
-
case 1:
|
11
|
-
return parseInt(Math.random()*minNum+1,10);
|
12
|
-
|
13
|
-
case 2:
|
14
|
-
return parseInt(Math.random()*(maxNum-minNum+1)+minNum,10);
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
break;
|
19
|
-
}
|
20
|
-
}
|
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
21
|
//纪念日
|
22
22
|
|
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){
|
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
48
|
console.log("勿忘国耻,振兴中华!\n\n今天是8月14日世界慰安妇纪念日!\n=================================================================")
|
49
|
-
document.getElementById("grays").innerText=":root{filter: grayscale(100%);}";
|
50
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
49
|
+
document.getElementById("grays").innerText = ":root{filter: grayscale(100%);}";
|
50
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
51
51
|
Swal.fire("今天是8月14日世界慰安妇纪念日,希望你能停下来了解一下来为历史作证,为曾经的无辜妇女发声。\n勿忘国耻,振兴中华!");
|
52
|
-
sessionStorage.setItem("isPopupWindow","1");
|
52
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
53
53
|
}
|
54
54
|
}
|
55
55
|
|
56
56
|
//节假日
|
57
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");
|
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
63
|
}
|
64
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");
|
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
70
|
}
|
71
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");
|
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
77
|
}
|
78
78
|
}
|
79
|
-
if(m==3&&dd==8){//妇女节
|
79
|
+
if (m == 3 && dd == 8) {//妇女节
|
80
80
|
console.log("各位女神们,妇女节快乐!");
|
81
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
81
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
82
82
|
Swal.fire("各位女神们,妇女节快乐!");
|
83
|
-
sessionStorage.setItem("isPopupWindow","1");
|
83
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
84
84
|
}
|
85
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");
|
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
93
|
}
|
94
94
|
}
|
95
|
-
if(m==5&&dd==1){//劳动节
|
95
|
+
if (m == 5 && dd == 1) {//劳动节
|
96
96
|
console.log("劳动节快乐!为助力各行各业发展辛勤工作的人们致敬!");
|
97
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
97
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
98
98
|
Swal.fire("劳动节快乐!为助力各行各业发展辛勤工作的人们致敬!");
|
99
|
-
sessionStorage.setItem("isPopupWindow","1");
|
99
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
100
100
|
}
|
101
101
|
}
|
102
|
-
if(m==5&&dd==4){//青年节
|
102
|
+
if (m == 5 && dd == 4) {//青年节
|
103
103
|
console.log("为有思想政治觉悟,拥护中国共产党,追求无产阶级、共产主义、马克思主义的青年们致敬!");
|
104
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
104
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
105
105
|
Swal.fire("为有思想政治觉悟,拥护中国共产党,追求无产阶级、共产主义、马克思主义的青年们致敬");
|
106
|
-
sessionStorage.setItem("isPopupWindow","1");
|
106
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
107
107
|
}
|
108
108
|
}
|
109
|
-
if(m==6&&dd==1){//儿童节
|
109
|
+
if (m == 6 && dd == 1) {//儿童节
|
110
110
|
console.log("各位小朋友们,儿童节快乐!");
|
111
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
111
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
112
112
|
Swal.fire("各位小朋友们,儿童节快乐!");
|
113
|
-
sessionStorage.setItem("isPopupWindow","1");
|
113
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
114
114
|
}
|
115
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");
|
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
121
|
}
|
122
122
|
}
|
123
123
|
|
124
124
|
//传统节日部分
|
125
125
|
|
126
|
-
if(m==4&&dd==4||(m==4&&dd==5)){//清明节
|
126
|
+
if (m == 4 && dd == 4 || (m == 4 && dd == 5)) {//清明节
|
127
127
|
console.log("清明安康");
|
128
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
128
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
129
129
|
Swal.fire("清明安康");
|
130
|
-
sessionStorage.setItem("isPopupWindow","1");
|
130
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
131
131
|
}
|
132
132
|
}
|
133
133
|
|
134
|
-
var lunar=calendarFormatter.solar2lunar();
|
134
|
+
var lunar = calendarFormatter.solar2lunar();
|
135
135
|
|
136
136
|
//农历采用汉字计算,防止出现闰月导致问题
|
137
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"]=="廿九")){
|
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
139
|
//春节,本来只有大年三十到初六,但是有时候除夕是大年二十九,所以也加上了
|
140
|
-
console.log(y.toString()+"年新年快乐!");
|
141
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
142
|
-
Swal.fire(y.toString()+"年新年快乐!");
|
143
|
-
sessionStorage.setItem("isPopupWindow","1");
|
140
|
+
console.log(y.toString() + "年新年快乐!");
|
141
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
142
|
+
Swal.fire(y.toString() + "年新年快乐!");
|
143
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
144
144
|
}
|
145
145
|
}
|
146
|
-
if((lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="十五")){
|
146
|
+
if ((lunar["IMonthCn"] == "正月" && lunar["IDayCn"] == "十五")) {
|
147
147
|
//元宵节
|
148
148
|
console.log("元宵节快乐!");
|
149
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
149
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
150
150
|
Swal.fire("元宵节快乐!");
|
151
|
-
sessionStorage.setItem("isPopupWindow","1");
|
151
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
152
152
|
}
|
153
153
|
}
|
154
|
-
if((lunar["IMonthCn"]=="正月"&&lunar["IDayCn"]=="十五")){
|
154
|
+
if ((lunar["IMonthCn"] == "正月" && lunar["IDayCn"] == "十五")) {
|
155
155
|
//元宵节
|
156
156
|
console.log("元宵节快乐!");
|
157
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
157
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
158
158
|
Swal.fire("元宵节快乐!");
|
159
|
-
sessionStorage.setItem("isPopupWindow","1");
|
159
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
160
160
|
}
|
161
161
|
}
|
162
|
-
if((lunar["IMonthCn"]=="五月"&&lunar["IDayCn"]=="初五")){
|
162
|
+
if ((lunar["IMonthCn"] == "五月" && lunar["IDayCn"] == "初五")) {
|
163
163
|
//端午节
|
164
164
|
console.log("端午节快乐!");
|
165
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
165
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
166
166
|
Swal.fire("端午节快乐!");
|
167
|
-
sessionStorage.setItem("isPopupWindow","1");
|
167
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
168
168
|
}
|
169
169
|
}
|
170
|
-
if((lunar["IMonthCn"]=="七月"&&lunar["IDayCn"]=="初七")){
|
170
|
+
if ((lunar["IMonthCn"] == "七月" && lunar["IDayCn"] == "初七")) {
|
171
171
|
//七夕节
|
172
172
|
console.log("七夕节快乐!");
|
173
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
173
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
174
174
|
Swal.fire("七夕节快乐!");
|
175
|
-
sessionStorage.setItem("isPopupWindow","1");
|
175
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
176
176
|
}
|
177
177
|
}
|
178
|
-
if((lunar["IMonthCn"]=="八月"&&lunar["IDayCn"]=="十五")){
|
178
|
+
if ((lunar["IMonthCn"] == "八月" && lunar["IDayCn"] == "十五")) {
|
179
179
|
//中秋节
|
180
180
|
console.log("中秋节快乐!");
|
181
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
181
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
182
182
|
Swal.fire("中秋节快乐!");
|
183
|
-
sessionStorage.setItem("isPopupWindow","1");
|
183
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
184
184
|
}
|
185
185
|
}
|
186
|
-
if((lunar["IMonthCn"]=="九月"&&lunar["IDayCn"]=="初九")){
|
186
|
+
if ((lunar["IMonthCn"] == "九月" && lunar["IDayCn"] == "初九")) {
|
187
187
|
//重阳节
|
188
188
|
console.log("重阳节快乐!");
|
189
|
-
if(sessionStorage.getItem("isPopupWindow")!="1"){
|
189
|
+
if (sessionStorage.getItem("isPopupWindow") != "1") {
|
190
190
|
Swal.fire("重阳节快乐!");
|
191
|
-
sessionStorage.setItem("isPopupWindow","1");
|
191
|
+
sessionStorage.setItem("isPopupWindow", "1");
|
192
192
|
}
|
193
193
|
}
|
194
194
|
// console.log("江爷爷一路走好!🕯️🕯️🕯️\n=================================================================")
|
package/js/dianzan.js
CHANGED
@@ -111,7 +111,7 @@
|
|
111
111
|
// setCookie(GetUrlRelativePath() + "isZaned", "1")
|
112
112
|
// setCount();
|
113
113
|
// });
|
114
|
-
|
114
|
+
|
115
115
|
// });
|
116
116
|
// // } catch (err) {
|
117
117
|
|
@@ -137,7 +137,7 @@
|
|
137
137
|
// setCookie(GetUrlRelativePath() + "isZaned", "0");
|
138
138
|
// setCount();
|
139
139
|
// });
|
140
|
-
|
140
|
+
|
141
141
|
// });
|
142
142
|
// } catch (err) { }
|
143
143
|
// }
|
@@ -155,7 +155,7 @@ function GetUrlRelativePath() {
|
|
155
155
|
}
|
156
156
|
return relUrl;
|
157
157
|
}
|
158
|
-
loadDianzan=(function () {
|
158
|
+
loadDianzan = (function () {
|
159
159
|
const {
|
160
160
|
Query,
|
161
161
|
User
|
@@ -185,8 +185,8 @@ loadDianzan=(function () {
|
|
185
185
|
});
|
186
186
|
})
|
187
187
|
|
188
|
-
document.addEventListener("DOMContentLoaded",loadDianzan);
|
189
|
-
document.addEventListener("pjax:complete",loadDianzan);
|
188
|
+
document.addEventListener("DOMContentLoaded", loadDianzan);
|
189
|
+
document.addEventListener("pjax:complete", loadDianzan);
|
190
190
|
|
191
191
|
function setCount() {
|
192
192
|
var dianzans = [];
|