sinzmise-cetastories 2.0.0-1731064238567 → 2.0.0-1731114112124
Sign up to get free protection for your applications and to get access to all the features.
- package/404/index.html +4033 -1
- package/about/index.html +4041 -1
- package/album/index.html +4050 -1
- package/archives/2021/12/index.html +3917 -1
- package/archives/2021/index.html +3917 -1
- package/archives/2022/12/index.html +3917 -1
- package/archives/2022/index.html +3917 -1
- package/archives/2023/01/index.html +4072 -1
- package/archives/2023/02/index.html +3917 -1
- package/archives/2023/03/index.html +4063 -1
- package/archives/2023/04/index.html +3992 -1
- package/archives/2023/07/index.html +4217 -1
- package/archives/2023/08/index.html +4067 -1
- package/archives/2023/09/index.html +3917 -1
- package/archives/2023/10/index.html +3917 -1
- package/archives/2023/11/index.html +3917 -1
- package/archives/2023/12/index.html +3918 -1
- package/archives/2023/index.html +4591 -1
- package/archives/2023/page/2/index.html +4572 -1
- package/archives/2023/page/3/index.html +3930 -1
- package/archives/2024/01/index.html +4142 -1
- package/archives/2024/02/index.html +3922 -1
- package/archives/2024/03/index.html +3916 -1
- package/archives/2024/04/index.html +3997 -1
- package/archives/2024/05/index.html +4065 -1
- package/archives/2024/06/index.html +3917 -1
- package/archives/2024/07/index.html +3917 -1
- package/archives/2024/08/index.html +3992 -1
- package/archives/2024/09/index.html +3917 -1
- package/archives/2024/10/index.html +3984 -1
- package/archives/2024/index.html +4576 -1
- package/archives/2024/page/2/index.html +4433 -1
- package/archives/index.html +4560 -1
- package/archives/page/2/index.html +4560 -1
- package/archives/page/3/index.html +4560 -1
- package/archives/page/4/index.html +4560 -1
- package/archives/page/5/index.html +4560 -1
- package/assets/algolia/algoliasearch.js +7182 -3
- package/assets/algolia/algoliasearchLite.js +4445 -3
- package/atom.xml +31 -31
- package/bbs/bbs.html +4012 -1
- package/bbs/bbs.js +12 -2
- package/bbs/index.html +4031 -1
- package/categories/index.html +4050 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/index.html +4570 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +4485 -1
- package/categories//346/255/214/346/233/262/346/224/266/351/233/206/index.html +3920 -1
- package/categories//346/270/270/346/210/217/347/233/270/345/205/263/index.html +4148 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/index.html +4610 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +4148 -1
- package/categories//351/241/271/347/233/256/346/212/230/350/205/276/index.html +4072 -1
- package/charts/index.html +4039 -1
- package/comments/index.html +4052 -1
- package/content.json +1 -0
- package/css/custom2.css +3 -2
- package/css/first.css +1868 -2
- package/css/pace/big-counter.css +39 -2
- package/css/pace/corner-indicator.css +72 -2
- package/css/pace/flash.css +76 -2
- package/css/pace/mac-osx.css +86 -2
- package/css/pace/pace.css +50 -2
- package/css/plane.css +59 -2
- package/css/style.css +8585 -2
- package/css/tags.css +3516 -2
- package/essay/index.html +4050 -1
- package/fcircle/index.html +4075 -1
- package/games +61 -19
- package/index.html +4717 -1
- package/js/app.js +1341 -2
- package/js/autoload.js +62 -2
- package/js/ceta/fancybox.css +2 -2
- package/js/ceta/fancybox.umd.js +2 -2
- package/js/ceta/iconfontInkss.js +1 -2
- package/js/ceta/message.css +6 -2
- package/js/ceta/message.js +6 -2
- package/js/clock.js +1 -2
- package/js/kslink.js +38 -2
- package/js/newyear.js +76 -2
- package/js/plane.js +2200 -2
- package/js/plugins/aplayer.js +186 -2
- package/js/plugins/parallax.js +191 -2
- package/js/plugins/rightMenus.js +623 -2
- package/js/plugins/tags/contributors.js +92 -2
- package/js/plugins/tags/friends.js +93 -2
- package/js/plugins/tags/sites.js +96 -2
- package/js/search/algolia.js +239 -2
- package/js/search/hexo.js +195 -2
- package/js/search/meilisearch.js +220 -2
- package/js/txmap.js +248 -2
- package/link/index.html +6180 -1
- package/load.html +294 -1
- package/music/index.html +4033 -1
- package/package.json +1 -1
- package/page/2/index.html +4578 -1
- package/page/3/index.html +4575 -1
- package/page/4/index.html +4572 -1
- package/page/5/index.html +3924 -1
- package/posts/10021/index.html +4130 -5
- package/posts/10045/index.html +4224 -1
- package/posts/10733/index.html +4125 -1
- package/posts/10996/index.html +4127 -5
- package/posts/12779/index.html +4134 -1
- package/posts/13624/index.html +4179 -1
- package/posts/15688/index.html +4133 -1
- package/posts/15748/index.html +4121 -5
- package/posts/15799/index.html +4130 -1
- package/posts/15842/index.html +4121 -5
- package/posts/16107/index.html +4111 -1
- package/posts/18063/index.html +4124 -1
- package/posts/20412/index.html +4134 -1
- package/posts/21375/index.html +4124 -1
- package/posts/22945/index.html +4169 -4
- package/posts/23021/index.html +4104 -1
- package/posts/27531/index.html +4121 -5
- package/posts/28536/index.html +4116 -1
- package/posts/28733/index.html +4168 -1
- package/posts/29196/index.html +4106 -1
- package/posts/38917/index.html +4144 -1
- package/posts/38964/index.html +4208 -1
- package/posts/42487/index.html +4135 -1
- package/posts/42580/index.html +4128 -1
- package/posts/45875/index.html +4118 -1
- package/posts/46640/index.html +4147 -1
- package/posts/48762/index.html +4109 -1
- package/posts/50710/index.html +4114 -1
- package/posts/52677/index.html +4125 -1
- package/posts/53662/index.html +4123 -1
- package/posts/54386/index.html +4116 -1
- package/posts/54481/index.html +4133 -1
- package/posts/54787/index.html +4124 -5
- package/posts/56467/index.html +4121 -1
- package/posts/57692/index.html +4143 -1
- package/posts/58203/index.html +4116 -1
- package/posts/61417/index.html +4117 -1
- package/posts/61712/index.html +4113 -1
- package/posts/646/index.html +4106 -1
- package/posts/64856/index.html +4120 -1
- package/posts/64935/index.html +4120 -1
- package/search.xml +84 -84
- package/seas/index.html +4050 -1
- package/sw.js +798 -2
- package/tags/Flash/347/233/270/345/205/263/index.html +3924 -1
- package/tags/Steam/346/270/270/346/210/217/index.html +3924 -1
- package/tags/Windows/350/275/257/344/273/266/index.html +3997 -1
- package/tags/index.html +4033 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/index.html +4570 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +4485 -1
- package/tags//345/205/266/345/256/203/346/270/270/346/210/217/index.html +4073 -1
- package/tags//345/212/240/350/275/275/345/212/250/347/224/273/index.html +3924 -1
- package/tags//346/202/254/346/265/256/345/256/240/347/211/251-/347/234/213/346/235/277/345/250/230/index.html +3925 -1
- package/tags//346/255/214/346/233/262/346/224/266/351/233/206/index.html +3920 -1
- package/tags//346/270/270/346/210/217/347/233/270/345/205/263/index.html +4148 -1
- package/tags//347/253/231/347/202/271/345/272/225/351/203/250/351/255/224/346/224/271/index.html +3924 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/index.html +4610 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +4148 -1
- package/tags//350/207/252/345/273/272/351/203/250/347/275/262/index.html +4224 -1
- package/tags//351/241/265/351/235/242/351/255/224/346/224/271/index.html +4075 -1
- package/tags//351/241/271/347/233/256/346/212/230/350/205/276/index.html +4072 -1
- package/update/index.html +4112 -1
- package/weichuncai/css/style.css +25 -2
- package/weichuncai/js/common.js +449 -2
- package/weichuncai/js/jquery.js +139 -2
- package/weichuncai/wcc-config.js +17 -2
- package/maps/assets/algolia/algoliasearch.js.map +0 -1
- package/maps/assets/algolia/algoliasearchLite.js.map +0 -1
- package/maps/bbs/bbs.js.map +0 -1
- package/maps/css/custom2.css.map +0 -1
- package/maps/css/first.css.map +0 -1
- package/maps/css/pace/big-counter.css.map +0 -1
- package/maps/css/pace/corner-indicator.css.map +0 -1
- package/maps/css/pace/flash.css.map +0 -1
- package/maps/css/pace/mac-osx.css.map +0 -1
- package/maps/css/pace/pace.css.map +0 -1
- package/maps/css/plane.css.map +0 -1
- package/maps/css/style.css.map +0 -1
- package/maps/css/tags.css.map +0 -1
- package/maps/js/app.js.map +0 -1
- package/maps/js/autoload.js.map +0 -1
- package/maps/js/ceta/fancybox.css.map +0 -1
- package/maps/js/ceta/fancybox.umd.js.map +0 -1
- package/maps/js/ceta/iconfontInkss.js.map +0 -1
- package/maps/js/ceta/message.css.map +0 -1
- package/maps/js/ceta/message.js.map +0 -1
- package/maps/js/clock.js.map +0 -1
- package/maps/js/kslink.js.map +0 -1
- package/maps/js/newyear.js.map +0 -1
- package/maps/js/plane.js.map +0 -1
- package/maps/js/plugins/aplayer.js.map +0 -1
- package/maps/js/plugins/parallax.js.map +0 -1
- package/maps/js/plugins/rightMenus.js.map +0 -1
- package/maps/js/plugins/tags/contributors.js.map +0 -1
- package/maps/js/plugins/tags/friends.js.map +0 -1
- package/maps/js/plugins/tags/sites.js.map +0 -1
- package/maps/js/search/algolia.js.map +0 -1
- package/maps/js/search/hexo.js.map +0 -1
- package/maps/js/search/meilisearch.js.map +0 -1
- package/maps/js/txmap.js.map +0 -1
- package/maps/sw.js.map +0 -1
- package/maps/weichuncai/css/style.css.map +0 -1
- package/maps/weichuncai/js/common.js.map +0 -1
- package/maps/weichuncai/js/jquery.js.map +0 -1
- package/maps/weichuncai/wcc-config.js.map +0 -1
package/js/txmap.js
CHANGED
@@ -1,2 +1,248 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
//get请求
|
2
|
+
$.ajax({
|
3
|
+
type: 'get',
|
4
|
+
url: 'https://apis.map.qq.com/ws/location/v1/ip',
|
5
|
+
data: {
|
6
|
+
key: 'RIPBZ-MLQ64-A6WUR-KL2YV-O4KY5-DZFTC',
|
7
|
+
output: 'jsonp',
|
8
|
+
},
|
9
|
+
dataType: 'jsonp',
|
10
|
+
success: function (res) {
|
11
|
+
ipLocation = res;
|
12
|
+
}
|
13
|
+
})
|
14
|
+
function getDistance(e1, n1, e2, n2) {
|
15
|
+
const R = 6371
|
16
|
+
const { sin, cos, asin, PI, hypot } = Math
|
17
|
+
let getPoint = (e, n) => {
|
18
|
+
e *= PI / 180
|
19
|
+
n *= PI / 180
|
20
|
+
return { x: cos(n) * cos(e), y: cos(n) * sin(e), z: sin(n) }
|
21
|
+
}
|
22
|
+
|
23
|
+
let a = getPoint(e1, n1)
|
24
|
+
let b = getPoint(e2, n2)
|
25
|
+
let c = hypot(a.x - b.x, a.y - b.y, a.z - b.z)
|
26
|
+
let r = asin(c / 2) * 2 * R
|
27
|
+
return Math.round(r);
|
28
|
+
}
|
29
|
+
|
30
|
+
function showWelcome() {
|
31
|
+
|
32
|
+
let dist = getDistance(114.21416, 22.576264, ipLocation.result.location.lng, ipLocation.result.location.lat); //这里记得换成自己的经纬度
|
33
|
+
let pos = ipLocation.result.ad_info.nation;
|
34
|
+
let ip;
|
35
|
+
let posdesc;
|
36
|
+
//根据国家、省份、城市信息自定义欢迎语
|
37
|
+
switch (ipLocation.result.ad_info.nation) {
|
38
|
+
case "日本":
|
39
|
+
posdesc = "よろしく,一起去看樱花吗";
|
40
|
+
break;
|
41
|
+
case "美国":
|
42
|
+
posdesc = "Let us live in peace!";
|
43
|
+
break;
|
44
|
+
case "英国":
|
45
|
+
posdesc = "想同你一起夜乘伦敦眼";
|
46
|
+
break;
|
47
|
+
case "俄罗斯":
|
48
|
+
posdesc = "干了这瓶伏特加!";
|
49
|
+
break;
|
50
|
+
case "法国":
|
51
|
+
posdesc = "C'est La Vie";
|
52
|
+
break;
|
53
|
+
case "德国":
|
54
|
+
posdesc = "Die Zeit verging im Fluge.";
|
55
|
+
break;
|
56
|
+
case "澳大利亚":
|
57
|
+
posdesc = "一起去大堡礁吧!";
|
58
|
+
break;
|
59
|
+
case "加拿大":
|
60
|
+
posdesc = "拾起一片枫叶赠予你";
|
61
|
+
break;
|
62
|
+
case "中国":
|
63
|
+
pos = ipLocation.result.ad_info.province + " " + ipLocation.result.ad_info.city + " " + ipLocation.result.ad_info.district;
|
64
|
+
ip = ipLocation.result.ip;
|
65
|
+
switch (ipLocation.result.ad_info.province) {
|
66
|
+
case "北京市":
|
67
|
+
posdesc = "北——京——欢迎你~~~";
|
68
|
+
break;
|
69
|
+
case "天津市":
|
70
|
+
posdesc = "讲段相声吧";
|
71
|
+
break;
|
72
|
+
case "河北省":
|
73
|
+
posdesc = "山势巍巍成壁垒,天下雄关铁马金戈由此向,无限江山";
|
74
|
+
break;
|
75
|
+
case "山西省":
|
76
|
+
posdesc = "展开坐具长三尺,已占山河五百余";
|
77
|
+
break;
|
78
|
+
case "内蒙古自治区":
|
79
|
+
posdesc = "天苍苍,野茫茫,风吹草低见牛羊";
|
80
|
+
break;
|
81
|
+
case "辽宁省":
|
82
|
+
posdesc = "我想吃烤鸡架!";
|
83
|
+
break;
|
84
|
+
case "吉林省":
|
85
|
+
posdesc = "状元阁就是东北烧烤之王";
|
86
|
+
break;
|
87
|
+
case "黑龙江省":
|
88
|
+
posdesc = "很喜欢哈尔滨大剧院";
|
89
|
+
break;
|
90
|
+
case "上海市":
|
91
|
+
posdesc = "众所周知,中国只有两个城市";
|
92
|
+
break;
|
93
|
+
case "江苏省":
|
94
|
+
switch (ipLocation.result.ad_info.city) {
|
95
|
+
case "南京市":
|
96
|
+
posdesc = "这是我挺想去的城市啦";
|
97
|
+
break;
|
98
|
+
case "苏州市":
|
99
|
+
posdesc = "上有天堂,下有苏杭";
|
100
|
+
break;
|
101
|
+
default:
|
102
|
+
posdesc = "散装是必须要散装的";
|
103
|
+
break;
|
104
|
+
}
|
105
|
+
break;
|
106
|
+
case "浙江省":
|
107
|
+
posdesc = "东风渐绿西湖柳,雁已还人未南归";
|
108
|
+
break;
|
109
|
+
case "河南省":
|
110
|
+
switch (ipLocation.result.ad_info.city) {
|
111
|
+
case "郑州市":
|
112
|
+
posdesc = "豫州之域,天地之中";
|
113
|
+
break;
|
114
|
+
case "南阳市":
|
115
|
+
posdesc = "臣本布衣,躬耕于南阳此南阳非彼南阳!";
|
116
|
+
break;
|
117
|
+
case "驻马店市":
|
118
|
+
posdesc = "峰峰有奇石,石石挟仙气嵖岈山的花很美哦!";
|
119
|
+
break;
|
120
|
+
case "开封市":
|
121
|
+
posdesc = "刚正不阿包青天";
|
122
|
+
break;
|
123
|
+
case "洛阳市":
|
124
|
+
posdesc = "洛阳牡丹甲天下";
|
125
|
+
break;
|
126
|
+
default:
|
127
|
+
posdesc = "可否带我品尝河南烩面啦?";
|
128
|
+
break;
|
129
|
+
}
|
130
|
+
break;
|
131
|
+
case "安徽省":
|
132
|
+
posdesc = "蚌埠住了,芜湖起飞";
|
133
|
+
break;
|
134
|
+
case "福建省":
|
135
|
+
posdesc = "井邑白云间,岩城远带山";
|
136
|
+
break;
|
137
|
+
case "江西省":
|
138
|
+
posdesc = "落霞与孤鹜齐飞,秋水共长天一色";
|
139
|
+
break;
|
140
|
+
case "山东省":
|
141
|
+
posdesc = "遥望齐州九点烟,一泓海水杯中泻";
|
142
|
+
break;
|
143
|
+
case "湖北省":
|
144
|
+
switch (ipLocation.result.ad_info.city) {
|
145
|
+
case "黄冈市":
|
146
|
+
posdesc = "红安将军县!辈出将才!";
|
147
|
+
break;
|
148
|
+
default:
|
149
|
+
posdesc = "来碗热干面~";
|
150
|
+
break;
|
151
|
+
}
|
152
|
+
break;
|
153
|
+
case "湖南省":
|
154
|
+
posdesc = "74751,长沙斯塔克";
|
155
|
+
break;
|
156
|
+
case "广东省":
|
157
|
+
switch (ipLocation.result.ad_info.city) {
|
158
|
+
case "广州市":
|
159
|
+
posdesc = "看小蛮腰,喝早茶了嘛~";
|
160
|
+
break;
|
161
|
+
case "深圳市":
|
162
|
+
posdesc = "今天你逛商场了嘛~";
|
163
|
+
break;
|
164
|
+
case "阳江市":
|
165
|
+
posdesc = "阳春合水!博主家乡~ 欢迎来玩~";
|
166
|
+
break;
|
167
|
+
default:
|
168
|
+
posdesc = "来两斤福建人~";
|
169
|
+
break;
|
170
|
+
}
|
171
|
+
break;
|
172
|
+
case "广西壮族自治区":
|
173
|
+
posdesc = "桂林山水甲天下";
|
174
|
+
break;
|
175
|
+
case "海南省":
|
176
|
+
posdesc = "朝观日出逐白浪,夕看云起收霞光";
|
177
|
+
break;
|
178
|
+
case "四川省":
|
179
|
+
posdesc = "康康川妹子";
|
180
|
+
break;
|
181
|
+
case "贵州省":
|
182
|
+
posdesc = "茅台,学生,再塞200";
|
183
|
+
break;
|
184
|
+
case "云南省":
|
185
|
+
posdesc = "玉龙飞舞云缠绕,万仞冰川直耸天";
|
186
|
+
break;
|
187
|
+
case "西藏自治区":
|
188
|
+
posdesc = "躺在茫茫草原上,仰望蓝天";
|
189
|
+
break;
|
190
|
+
case "陕西省":
|
191
|
+
posdesc = "来份臊子面加馍";
|
192
|
+
break;
|
193
|
+
case "甘肃省":
|
194
|
+
posdesc = "羌笛何须怨杨柳,春风不度玉门关";
|
195
|
+
break;
|
196
|
+
case "青海省":
|
197
|
+
posdesc = "牛肉干和老酸奶都好好吃";
|
198
|
+
break;
|
199
|
+
case "宁夏回族自治区":
|
200
|
+
posdesc = "大漠孤烟直,长河落日圆";
|
201
|
+
break;
|
202
|
+
case "新疆维吾尔自治区":
|
203
|
+
posdesc = "驼铃古道丝绸路,胡马犹闻唐汉风";
|
204
|
+
break;
|
205
|
+
case "台湾省":
|
206
|
+
posdesc = "我在这头,大陆在那头";
|
207
|
+
break;
|
208
|
+
case "香港特别行政区":
|
209
|
+
posdesc = "永定贼有残留地鬼嚎,迎击光非岁玉";
|
210
|
+
break;
|
211
|
+
case "澳门特别行政区":
|
212
|
+
posdesc = "性感荷官,在线发牌";
|
213
|
+
break;
|
214
|
+
default:
|
215
|
+
posdesc = "带我去你的城市逛逛吧!";
|
216
|
+
break;
|
217
|
+
}
|
218
|
+
break;
|
219
|
+
default:
|
220
|
+
posdesc = "带我去你的国家逛逛吧";
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
|
224
|
+
//根据本地时间切换欢迎语
|
225
|
+
let timeChange;
|
226
|
+
let date = new Date();
|
227
|
+
if (date.getHours() >= 5 && date.getHours() < 11) timeChange = "<span>🌤️ 早上好,一日之计在于晨</span>";
|
228
|
+
else if (date.getHours() >= 11 && date.getHours() < 13) timeChange = "<span>☀️ 中午好,记得午休喔~</span>";
|
229
|
+
else if (date.getHours() >= 13 && date.getHours() < 17) timeChange = "<span>🕞 下午好,饮茶先啦!</span>";
|
230
|
+
else if (date.getHours() >= 17 && date.getHours() < 19) timeChange = "<span>🚶♂️ 即将下班,记得按时吃饭~</span>";
|
231
|
+
else if (date.getHours() >= 19 && date.getHours() < 24) timeChange = "<span>🌙 晚上好,夜生活嗨起来!</span>";
|
232
|
+
else timeChange = "夜深了,早点休息,少熬夜";
|
233
|
+
|
234
|
+
// 新增ipv6显示为指定内容
|
235
|
+
if (ip.includes(":")) {
|
236
|
+
ip = "<br>好复杂,咱看不懂~(ipv6)";
|
237
|
+
}
|
238
|
+
try {
|
239
|
+
//自定义文本和需要放的位置
|
240
|
+
document.getElementById("welcome-info").innerHTML =
|
241
|
+
`欢迎来自 <b><span style="color: var(--kouseki-ip-color);font-size: var(--kouseki-gl-size)">${pos}</span></b> 的小友💖<br>${posdesc}🍂<br>当前位置距博主约 <b><span style="color: var(--kouseki-ip-color)">${dist}</span></b> 公里!<br>您的IP地址为:<b><span>${ip}</span></b><br>${timeChange} <br>`;
|
242
|
+
} catch (err) {
|
243
|
+
console.log("Pjax无法获取元素")
|
244
|
+
}
|
245
|
+
}
|
246
|
+
window.onload = showWelcome;
|
247
|
+
// 如果使用了pjax在加上下面这行代码
|
248
|
+
document.addEventListener('pjax:complete', showWelcome);
|