sinzmise-cetastories 2.0.0-1731066602594 → 2.0.0-1731114112124

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