q78kgblog 1.0.0

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 (231) hide show
  1. package/.github/workflows/HexoSeoAutoPush.yml +36 -0
  2. package/404.html +933 -0
  3. package/BingSiteAuth.xml +4 -0
  4. package/CNAME +1 -0
  5. package/about/index.html +1096 -0
  6. package/archives/2022/06/index.html +942 -0
  7. package/archives/2022/index.html +942 -0
  8. package/archives/2023/02/index.html +942 -0
  9. package/archives/2023/04/index.html +942 -0
  10. package/archives/2023/05/index.html +942 -0
  11. package/archives/2023/08/index.html +942 -0
  12. package/archives/2023/09/index.html +942 -0
  13. package/archives/2023/index.html +942 -0
  14. package/archives/2024/01/index.html +942 -0
  15. package/archives/2024/02/index.html +942 -0
  16. package/archives/2024/index.html +942 -0
  17. package/archives/index.html +942 -0
  18. package/assets/css/APlayer.min.css +3 -0
  19. package/assets/douban-loading.gif +0 -0
  20. package/assets/js/APlayer.min.js +2 -0
  21. package/assets/js/Meting.min.js +1 -0
  22. package/atom.xml +311 -0
  23. package/baidusitemap.xml +43 -0
  24. package/bangumis/index.html +1247 -0
  25. package/bigpie/index.html +714 -0
  26. package/bing.json +1 -0
  27. package/categories/Hello-World/index.html +954 -0
  28. package/categories/Hexo/index.html +954 -0
  29. package/categories/index.html +710 -0
  30. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +954 -0
  31. package/categories//346/201/260/351/245/255/index.html +954 -0
  32. package/categories//347/264/240/346/235/220/index.html +954 -0
  33. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +954 -0
  34. package/content.json +1 -0
  35. package/css/404page.css +65 -0
  36. package/css/ariasakablog.css +5632 -0
  37. package/css/commentBarrage.css +111 -0
  38. package/css/danmaku.css +89 -0
  39. package/css/essay.css +306 -0
  40. package/css/iconfont.css +55 -0
  41. package/css/iconfont.ttf +0 -0
  42. package/css/iconfont.woff +0 -0
  43. package/css/iconfont.woff2 +0 -0
  44. package/css/index.css +7006 -0
  45. package/css/people.css +18 -0
  46. package/css/stylessimple.css +40 -0
  47. package/css/swiper.min.css +701 -0
  48. package/css/swiperstyle.css +567 -0
  49. package/css/var.css +0 -0
  50. package/essay/index.html +701 -0
  51. package/favicon.ico +0 -0
  52. package/fcircle/index.html +733 -0
  53. package/fontawesome/index.html +716 -0
  54. package/google.txt +10 -0
  55. package/googlebe706248808ee393.html +1 -0
  56. package/img/144.png +0 -0
  57. package/img/16.png +0 -0
  58. package/img/1666416625095-iPhone X.png +0 -0
  59. package/img/1666416702650-Macbook Pro 2016 (1).png +0 -0
  60. package/img/1666416764216-Nexus 9.png +0 -0
  61. package/img/180.png +0 -0
  62. package/img/192.png +0 -0
  63. package/img/20200904222157.png +0 -0
  64. package/img/20200924153652.png +0 -0
  65. package/img/256.png +0 -0
  66. package/img/36.png +0 -0
  67. package/img/48.png +0 -0
  68. package/img/512.png +0 -0
  69. package/img/72.png +0 -0
  70. package/img/72645310.jpg +0 -0
  71. package/img/8DSTSS20990281646044689944.PNG +0 -0
  72. package/img/96.png +0 -0
  73. package/img/O35HOG22090681654187900371.jpg +0 -0
  74. package/img/a.webp +0 -0
  75. package/img/ad.png +0 -0
  76. package/img/apple-touch-icon.png +0 -0
  77. package/img/avatar.jpg +0 -0
  78. package/img/buYgVO22990681624844309044.jpg +0 -0
  79. package/img/comment.png +0 -0
  80. package/img/favicon.ico +0 -0
  81. package/img/favicon.jpg +0 -0
  82. package/img/friend_404.gif +0 -0
  83. package/img/mqaizf23990681654186719414.jpeg +0 -0
  84. package/img/nyancat.gif +0 -0
  85. package/img/siteshot.png +0 -0
  86. package/img/uTools_1666416859497-iMac.png +0 -0
  87. package/img-col/index.html +802 -0
  88. package/index.html +1056 -0
  89. package/js/aplayersave.js +268 -0
  90. package/js/baiduhistory.js +76 -0
  91. package/js/bbtalk.js +11354 -0
  92. package/js/bbtalklunbo.js +78 -0
  93. package/js/browser.js +35 -0
  94. package/js/calendar.js +380 -0
  95. package/js/cate.js +22 -0
  96. package/js/commentBarrage.js +240 -0
  97. package/js/commentsCount.js +43 -0
  98. package/js/copy.js +23 -0
  99. package/js/countup.js +209 -0
  100. package/js/cursor.js +82 -0
  101. package/js/danmaku.js +106 -0
  102. package/js/day.js +199 -0
  103. package/js/dianzan.js +249 -0
  104. package/js/dis.js +255 -0
  105. package/js/dist/baiduhistory.dev.js +102 -0
  106. package/js/dist/bbtalk.dev.js +12876 -0
  107. package/js/dist/bbtalklunbo.dev.js +45 -0
  108. package/js/dist/calendar.dev.js +395 -0
  109. package/js/dist/fixbugpjax.dev.js +8 -0
  110. package/js/dist/gongnong.dev.js +565 -0
  111. package/js/dist/heimu.dev.js +19 -0
  112. package/js/dist/links.dev.js +13 -0
  113. package/js/dist/main.dev.js +845 -0
  114. package/js/dist/resizeTop.dev.js +50 -0
  115. package/js/dist/seo.dev.js +33 -0
  116. package/js/dist/twikoo.all.min.dev.js +1 -0
  117. package/js/fixbugpjax.js +7 -0
  118. package/js/fixed_card_widget.js +46 -0
  119. package/js/fps.js +58 -0
  120. package/js/gitalker.js +11 -0
  121. package/js/gsap.min.js +11 -0
  122. package/js/heimu.js +16 -0
  123. package/js/hide.show.js +17 -0
  124. package/js/jike.js +121 -0
  125. package/js/jikewater.js +60 -0
  126. package/js/languages.js +511 -0
  127. package/js/latest.js +49 -0
  128. package/js/local-search.js +476 -0
  129. package/js/lunar.js +1071 -0
  130. package/js/lyxTalk.js +12 -0
  131. package/js/main.js +783 -0
  132. package/js/nav.js +30 -0
  133. package/js/noie.js +3 -0
  134. package/js/owo.js +52 -0
  135. package/js/people.js +175 -0
  136. package/js/pikaday.js +109 -0
  137. package/js/random.js +1 -0
  138. package/js/randomFriend.js +95 -0
  139. package/js/resizeTop.js +43 -0
  140. package/js/rightmenu.js +335 -0
  141. package/js/sakura.js +164 -0
  142. package/js/search/algolia.js +155 -0
  143. package/js/search/local-search.js +188 -0
  144. package/js/settings.js +353 -0
  145. package/js/sitetime.js +25 -0
  146. package/js/smooth-scrolling.js +546 -0
  147. package/js/sw-toolbox.js +16 -0
  148. package/js/swiperinit.js +23 -0
  149. package/js/tw_cn.js +100 -0
  150. package/js/twikoo.all.min.js +2 -0
  151. package/js/utils.js +278 -0
  152. package/js/welcome.js +107 -0
  153. package/js/welcomeconsole.js +23 -0
  154. package/links/index.html +842 -0
  155. package/live2d-widget/LICENSE +674 -0
  156. package/live2d-widget/README.md +188 -0
  157. package/live2d-widget/assets/screenshot-1.png +0 -0
  158. package/live2d-widget/assets/screenshot-2.png +0 -0
  159. package/live2d-widget/assets/screenshot-3.png +0 -0
  160. package/live2d-widget/autoload.js +63 -0
  161. package/live2d-widget/demo/demo.html +34 -0
  162. package/live2d-widget/demo/login.html +271 -0
  163. package/live2d-widget/live2d.min.js +1 -0
  164. package/live2d-widget/package.json +31 -0
  165. package/live2d-widget/rollup.config.js +38 -0
  166. package/live2d-widget/src/index.js +178 -0
  167. package/live2d-widget/src/message.js +22 -0
  168. package/live2d-widget/src/model.js +75 -0
  169. package/live2d-widget/src/tools.js +78 -0
  170. package/live2d-widget/src/utils.js +5 -0
  171. package/live2d-widget/src/waifu-tips.js +3 -0
  172. package/live2d-widget/waifu-tips.js +5 -0
  173. package/live2d-widget/waifu-tips.json +255 -0
  174. package/live2d-widget/waifu.css +310 -0
  175. package/manifest.json +1 -0
  176. package/noie.html +69 -0
  177. package/othersite/index.html +779 -0
  178. package/owo.json +1 -0
  179. package/package.json +1 -0
  180. package/people.html +24 -0
  181. package/posts/164ef646/index.html +1027 -0
  182. package/posts/228c2ef8/index.html +1014 -0
  183. package/posts/4a17b156/index.html +1010 -0
  184. package/posts/6f3c565b/index.html +1013 -0
  185. package/posts/7da7c3f6/index.html +1070 -0
  186. package/posts/a9a6c1fb/index.html +1041 -0
  187. package/posts/c262e439/index.html +1002 -0
  188. package/posts/c81531cf/index.html +1080 -0
  189. package/posts/da2093a1/index.html +1022 -0
  190. package/posts/e54f7476/index.html +1052 -0
  191. package/projects.html +424 -0
  192. package/random.html +32 -0
  193. package/robots.txt +17 -0
  194. package/search.xml +309 -0
  195. package/sitemap.txt +62 -0
  196. package/sitemap.xml +488 -0
  197. package/sw.js +190 -0
  198. package/swReg.js +29 -0
  199. package/tags/AI/index.html +955 -0
  200. package/tags/Butterfly/index.html +955 -0
  201. package/tags/Cloudflare/index.html +955 -0
  202. package/tags/DiffSinger/index.html +955 -0
  203. package/tags/Hexo/index.html +955 -0
  204. package/tags/Next/index.html +955 -0
  205. package/tags/RAID/index.html +955 -0
  206. package/tags/VPS/index.html +955 -0
  207. package/tags/Vercel/index.html +955 -0
  208. package/tags/Workers/index.html +955 -0
  209. package/tags/hello-world/index.html +955 -0
  210. package/tags/index.html +710 -0
  211. package/tags//344/270/273/351/242/230/index.html +955 -0
  212. package/tags//344/272/221/346/234/215/345/212/241/345/231/250/index.html +955 -0
  213. package/tags//344/276/277/345/256/234/index.html +955 -0
  214. package/tags//345/206/231/344/275/234/index.html +955 -0
  215. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +955 -0
  216. package/tags//345/255/246/344/271/240/index.html +955 -0
  217. package/tags//345/256/266/351/207/214/344/272/221/index.html +955 -0
  218. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +955 -0
  219. package/tags//346/200/247/344/273/267/346/257/224/index.html +955 -0
  220. package/tags//346/212/230/350/205/276/index.html +955 -0
  221. package/tags//346/217/220/344/276/233/345/225/206/index.html +955 -0
  222. package/tags//346/227/245/345/270/270/index.html +955 -0
  223. package/tags//346/234/215/345/212/241/345/231/250/index.html +955 -0
  224. package/tags//346/265/252/346/275/256/index.html +955 -0
  225. package/tags//347/256/200/347/210/261/index.html +955 -0
  226. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +955 -0
  227. package/tags//350/256/272/346/226/207/index.html +955 -0
  228. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +955 -0
  229. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +955 -0
  230. package/tags//351/207/221/345/217/245/index.html +955 -0
  231. package/tags//351/255/224/346/224/271/index.html +955 -0
package/js/nav.js ADDED
@@ -0,0 +1,30 @@
1
+ document.addEventListener('pjax:complete', tonav);
2
+ document.addEventListener('DOMContentLoaded', tonav);
3
+ function tonav(){
4
+ document.getElementById("name-container").setAttribute("style", "display:none");
5
+
6
+ var position = $(window).scrollTop();
7
+
8
+ $(window).scroll(function () {
9
+
10
+ var scroll = $(window).scrollTop();
11
+
12
+ if (scroll > position) {
13
+
14
+
15
+ document.getElementById("name-container").setAttribute("style", "");
16
+ document.getElementsByClassName("menus_items")[1].setAttribute("style", "display:none!important");
17
+
18
+ } else {
19
+
20
+
21
+ document.getElementsByClassName("menus_items")[1].setAttribute("style", "");
22
+ document.getElementById("name-container").setAttribute("style", "display:none");
23
+
24
+ }
25
+
26
+ position = scroll;
27
+
28
+ });
29
+
30
+ document.getElementById("page-name").innerText = document.title.split(" | 梦溯·镜影")[0];}
package/js/noie.js ADDED
@@ -0,0 +1,3 @@
1
+ if(!!window.ActiveXObject || "ActiveXObject" in window){
2
+ window.location.href="./noie.html";
3
+ }
package/js/owo.js ADDED
@@ -0,0 +1,52 @@
1
+ // 如果当前页有评论就执行函数
2
+ if (document.getElementById('post-comment')) owoBig();
3
+
4
+ function owoBig() {
5
+ // 监听dom插入
6
+ document.getElementById('post-comment').addEventListener('DOMNodeInserted', (dom) => {
7
+ // 如果有class且值为OwO-body
8
+ if (dom.target.classList && dom.target.classList.value == 'OwO-body') {
9
+ let owo_body = dom.target
10
+ if (owo_body) {
11
+ let owo_time = ''
12
+ let flag = true;
13
+ // 创建盒子
14
+ let div = document.createElement('div')
15
+ div.id = 'owo-big'
16
+ document.querySelector('body').appendChild(div)
17
+
18
+ // 禁用右键(手机端长按会出现右键菜单,为了体验给禁用掉)
19
+ owo_body.addEventListener('contextmenu', e => e.preventDefault())
20
+
21
+ // 鼠标移入
22
+ owo_body.addEventListener('mouseover', (e) => {
23
+ if (e.target.tagName == 'IMG' && flag) {
24
+ flag = false;
25
+ // 移入300毫秒后显示盒子
26
+ owo_time = setTimeout(() => {
27
+ let m = 4 // 设置倍数
28
+ let height = e.path[0].clientHeight * m // 盒子高
29
+ let width = e.path[0].clientWidth * m // 盒子宽
30
+ let left = (e.x - e.offsetX) - (width - e.path[0].clientWidth) / 2 // 盒子与屏幕左边距离
31
+ let top = e.y - e.offsetY // 盒子与屏幕顶部距离
32
+
33
+ div.style.height = height + 'px'
34
+ div.style.width = width + 'px'
35
+ div.style.left = left + 'px'
36
+ div.style.top = top + 'px'
37
+ div.style.display = 'flex'
38
+ div.innerHTML = `<img src="${e.target.src}">`
39
+ }, 100);
40
+ }
41
+ })
42
+
43
+ // 鼠标移出
44
+ owo_body.addEventListener('mouseout', (e) => {
45
+ div.style.display = 'none';
46
+ flag = true
47
+ clearTimeout(owo_time)
48
+ })
49
+ }
50
+ }
51
+ });
52
+ }
package/js/people.js ADDED
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+
3
+ function _toConsumableArray(e) {
4
+ return _arrayWithoutHoles(e) || _iterableToArray(e) || _unsupportedIterableToArray(e) || _nonIterableSpread()
5
+ }
6
+
7
+ function _nonIterableSpread() {
8
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
9
+ }
10
+
11
+ function _unsupportedIterableToArray(e, r) {
12
+ if (e) {
13
+ if ("string" == typeof e) return _arrayLikeToArray(e, r);
14
+ var t = Object.prototype.toString.call(e).slice(8, -1);
15
+ return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(e, r) : void 0
16
+ }
17
+ }
18
+
19
+ function _iterableToArray(e) {
20
+ if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e)
21
+ }
22
+
23
+ function _arrayWithoutHoles(e) {
24
+ if (Array.isArray(e)) return _arrayLikeToArray(e)
25
+ }
26
+
27
+ function _arrayLikeToArray(e, r) {
28
+ (null == r || r > e.length) && (r = e.length);
29
+ for (var t = 0, a = new Array(r); t < r; t++) a[t] = e[t];
30
+ return a
31
+ }
32
+
33
+ function _classCallCheck(e, r) {
34
+ if (!(e instanceof r)) throw new TypeError("Cannot call a class as a function")
35
+ }
36
+
37
+ function _defineProperties(e, r) {
38
+ for (var t = 0; t < r.length; t++) {
39
+ var a = r[t];
40
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
41
+ }
42
+ }
43
+
44
+ function _createClass(e, r, t) {
45
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), e
46
+ }
47
+ var config = {
48
+ src: "https://f.zhheo.com/Guli/others/open-peeps-sheet.png",
49
+ rows: 15,
50
+ cols: 7
51
+ },
52
+ randomRange = function (e, r) {
53
+ return e + Math.random() * (r - e)
54
+ },
55
+ randomIndex = function (e) {
56
+ return 0 | randomRange(0, e.length)
57
+ },
58
+ removeFromArray = function (e, r) {
59
+ return e.splice(r, 1)[0]
60
+ },
61
+ removeItemFromArray = function (e, r) {
62
+ return removeFromArray(e, e.indexOf(r))
63
+ },
64
+ removeRandomFromArray = function (e) {
65
+ return removeFromArray(e, randomIndex(e))
66
+ },
67
+ getRandomFromArray = function (e) {
68
+ return e[0 | randomIndex(e)]
69
+ },
70
+ resetPeep = function (e) {
71
+ var r, t, a = e.stage,
72
+ n = e.peep,
73
+ o = .5 < Math.random() ? 1 : -1,
74
+ i = 100 - 250 * gsap.parseEase("power2.in")(Math.random()),
75
+ s = a.height - n.height + i;
76
+ return 1 == o ? (r = -n.width, t = a.width, n.scaleX = 1) : (r = a.width + n.width, t = 0, n.scaleX = -1), n.x = r, n.y = s, {
77
+ startX: r,
78
+ startY: n.anchorY = s,
79
+ endX: t
80
+ }
81
+ },
82
+ normalWalk = function (e) {
83
+ var r = e.peep,
84
+ t = e.props,
85
+ a = (t.startX, t.startY),
86
+ n = t.endX,
87
+ o = gsap.timeline();
88
+ return o.timeScale(randomRange(.5, 1.5)), o.to(r, {
89
+ duration: 10,
90
+ x: n,
91
+ ease: "none"
92
+ }, 0), o.to(r, {
93
+ duration: .25,
94
+ repeat: 40,
95
+ yoyo: !0,
96
+ y: a - 10
97
+ }, 0), o
98
+ },
99
+ walks = [normalWalk],
100
+ Peep = function () {
101
+ function a(e) {
102
+ var r = e.image,
103
+ t = e.rect;
104
+ _classCallCheck(this, a), this.image = r, this.setRect(t), this.x = 0, this.y = 0, this.anchorY = 0, this.scaleX = 1, this.walk = null
105
+ }
106
+ return _createClass(a, [{
107
+ key: "setRect",
108
+ value: function (e) {
109
+ this.rect = e, this.width = e[2], this.height = e[3], this.drawArgs = [this.image].concat(_toConsumableArray(e), [0, 0, this.width, this.height])
110
+ }
111
+ }, {
112
+ key: "render",
113
+ value: function (e) {
114
+ e.save(), e.translate(this.x, this.y), e.scale(this.scaleX, 1), e.drawImage.apply(e, _toConsumableArray(this.drawArgs)), e.restore()
115
+ }
116
+ }]), a
117
+ }(),
118
+ img = document.createElement("img");
119
+ img.onload = init, img.src = config.src;
120
+ var canvas = document.querySelector("#canvas"),
121
+ ctx = canvas.getContext("2d"),
122
+ stage = {
123
+ width: 0,
124
+ height: 0
125
+ },
126
+ allPeeps = [],
127
+ availablePeeps = [],
128
+ crowd = [];
129
+
130
+ function init() {
131
+ createPeeps(), resize(), gsap.ticker.add(render), window.addEventListener("resize", resize)
132
+ }
133
+
134
+ function createPeeps() {
135
+ for (var e = config.rows, r = config.cols, t = e * r, a = img.naturalWidth / e, n = img.naturalHeight / r, o = 0; o < t; o++) allPeeps.push(new Peep({
136
+ image: img,
137
+ rect: [o % e * a, (o / e | 0) * n, a, n]
138
+ }))
139
+ }
140
+
141
+ function resize() {
142
+ stage.width = canvas.clientWidth, stage.height = canvas.clientHeight, canvas.width = stage.width * devicePixelRatio, canvas.height = stage.height * devicePixelRatio, crowd.forEach(function (e) {
143
+ e.walk.kill()
144
+ }), crowd.length = 0, availablePeeps.length = 0, availablePeeps.push.apply(availablePeeps, allPeeps), initCrowd()
145
+ }
146
+
147
+ function initCrowd() {
148
+ for (; availablePeeps.length;) addPeepToCrowd().walk.progress(Math.random())
149
+ }
150
+
151
+ function addPeepToCrowd() {
152
+ var e = removeRandomFromArray(availablePeeps),
153
+ r = getRandomFromArray(walks)({
154
+ peep: e,
155
+ props: resetPeep({
156
+ peep: e,
157
+ stage: stage
158
+ })
159
+ }).eventCallback("onComplete", function () {
160
+ removePeepFromCrowd(e), addPeepToCrowd()
161
+ });
162
+ return e.walk = r, crowd.push(e), crowd.sort(function (e, r) {
163
+ return e.anchorY - r.anchorY
164
+ }), e
165
+ }
166
+
167
+ function removePeepFromCrowd(e) {
168
+ removeItemFromArray(crowd, e), availablePeeps.push(e)
169
+ }
170
+
171
+ function render() {
172
+ canvas.width = canvas.width, ctx.save(), ctx.scale(devicePixelRatio, devicePixelRatio), crowd.forEach(function (e) {
173
+ e.render(ctx)
174
+ }), ctx.restore()
175
+ }
package/js/pikaday.js ADDED
@@ -0,0 +1,109 @@
1
+ (function (root, factory) {
2
+ 'use strict';
3
+ if (typeof exports === 'object') {
4
+ module.exports = factory();
5
+ } else if (typeof define === 'function' && define.amd) {
6
+ define(function (req) {
7
+ return factory();
8
+ });
9
+ } else {
10
+ root.Pikaday = factory();
11
+ }
12
+ } (this, function () {
13
+ 'use strict';
14
+ var document = window.document,
15
+ getName = function (i) {
16
+ return i < 10 ? '0' + i : i;
17
+ },
18
+ isLeapYear = function (year) {
19
+ return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
20
+ },
21
+ getDaysInMonth = function (year, month) {
22
+ return [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
23
+ },
24
+ Pikaday = function (opts) {
25
+ var data = '{"2022":{"5":{"12":true}},"2023":{"1":{"2":true},"3":{"18":true},"4":{"3":true},"7":{"25":true},"8":{"17":true,"29":true}},"2024":{"0":{"1":true},"1":{"8":true,"9":true}}}';
26
+ this.data = JSON.parse(data);
27
+ window.pdata = this.data;
28
+ this.weekdays = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
29
+ this.mons = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
30
+ this.container = document.getElementById('calendar_wrap');
31
+ this.time = this.container.getAttribute('time') || '';
32
+ if (!this.time.length) {
33
+ this.date = new Date();
34
+ } else {
35
+ this.date = new Date(this.time);
36
+ }
37
+ this.year = this.date.getFullYear();
38
+ this.month = this.date.getMonth();
39
+ this.months = this.month + 1;
40
+ this.days = getDaysInMonth(this.year, this.month);
41
+ var tmp = new Date(this.year, this.month, 1);
42
+ this.before = tmp.getDay();
43
+ this.draw();
44
+ };
45
+
46
+ Pikaday.prototype = {
47
+ draw: function () {
48
+ var title = '<caption>' + this.year + '年 ' + this.months + '月</caption>';
49
+ var head = this.renderHead();
50
+ var body = this.renderBody();
51
+ var foot = this.renderFoot();
52
+ var html = '<table id="wp-calendar">' + title + head + body + foot + '</table>';
53
+ this.container.innerHTML = html;
54
+ },
55
+ renderHead: function () {
56
+ var arr = [];
57
+ for (var i = 0; i < 7; i++) {
58
+ var tmp = this.weekdays[i];
59
+ arr.push('<th scope="col" title="' + tmp + '">' + tmp + '</th>');
60
+ }
61
+ return '<thead>' + arr.join('') + '</thead>';
62
+ },
63
+ renderBody: function () {
64
+ var arr = [];
65
+ for (var i = 0; i < this.before; i++) {
66
+ arr.push('<td class="is-empty"></td>')
67
+ }
68
+ for (var i = 1; i <= this.days; i++) {
69
+ if (this.data[this.year] && this.data[this.year][this.month] && this.data[this.year][this.month][i]) {
70
+ var str = '<a href="/archives/' + this.year + '/' + getName(this.months) + '/' + getName(i) + '/">' + i + '</a>';
71
+ } else {
72
+ var str = i;
73
+ }
74
+ var tmp = '<td>' + str + '</td>';
75
+ if ((i+this.before)%7 == 0) {
76
+ tmp += '</tr><tr>';
77
+ }
78
+ arr.push(tmp);
79
+ }
80
+ for (var i = this.days + 1; ; i++) {
81
+ arr.push('<td class="is-empty"></td>');
82
+ if ((i+this.before)%7 == 0) {
83
+ break;
84
+ }
85
+ }
86
+ return '<tbody><tr>' + arr.join('') + '</tr></tbody>';
87
+ },
88
+ renderNext: function(date, str1, str2) {
89
+ var year = date.getFullYear();
90
+ var month = date.getMonth();
91
+ var months = month + 1;
92
+ if (this.data[year] && this.data[year][month]) {
93
+ var tmp = '<a href="/archives/' + year + '/' + getName(months) + '/">' + str1 + ' ' + this.mons[month] + ' ' + str2 + '</a>';
94
+ var res = '<td colspan="3">' + tmp + '</td>';
95
+ } else {
96
+ var res = '<td colspan="3"></td>';
97
+ }
98
+ return res;
99
+ },
100
+ renderFoot: function () {
101
+
102
+ var prev = this.renderNext(new Date(this.year, this.month - 1), '&laquo;', '')
103
+ var mid = '<td class="pad">&nbsp;</td>'
104
+ var next = this.renderNext(new Date(this.year, this.month + 1), '', '&raquo;');
105
+ return '<tfoot><tr>' + prev + mid + next + '</tr></tfoot>';
106
+ },
107
+ };
108
+ new Pikaday();
109
+ }));
package/js/random.js ADDED
@@ -0,0 +1 @@
1
+ var posts=["posts/c262e439/","posts/164ef646/","posts/da2093a1/","posts/4a17b156/","posts/e54f7476/","posts/228c2ef8/","posts/a9a6c1fb/","posts/c81531cf/","posts/6f3c565b/","posts/7da7c3f6/"];function toRandomPost(){window.open('/'+posts[Math.floor(Math.random() * posts.length)],"_self");};
@@ -0,0 +1,95 @@
1
+ var fdata = {
2
+ apiurl: "https://fcircleapi.anjiurine.top/",
3
+ defaultFish: 500,
4
+ hungryFish: 500,
5
+ }
6
+ //可通过 var fdataUser 替换默认值
7
+ if (typeof (fdataUser) !== "undefined") {
8
+ for (var key in fdataUser) {
9
+ if (fdataUser[key]) {
10
+ fdata[key] = fdataUser[key];
11
+ }
12
+ }
13
+ }
14
+ var randomPostTimes = 0;
15
+ var randomPostWorking = false;
16
+ var randomPostTips = ["钓到了绝世好文!", "在河边打了个喷嚏,吓跑了", "你和小伙伴抢夺着", "你击败了巨龙,在巢穴中发现了", "挖掘秦始皇坟时找到了", "在路边闲逛的时候随手买了一个", "从学校班主任那拿来了孩子上课偷偷看的", "你的同桌无情的从你的语文书中撕下了那篇你最喜欢的", "考古学家近日发现了", "外星人降临地球学习地球文化,落地时被你塞了", "从图书馆顶层的隐秘角落里发现了闪着金光的", "徒弟修炼走火入魔,为师立刻掏出了", "在大山中唱山歌,隔壁的阿妹跑来了,带着", "隔壁家的孩子数学考了满分,都是因为看了", "隔壁家的孩子英语考了满分,都是因为看了", "小米研发了全新一代MIX手机,据说灵感", "修炼渡劫成功,还好提前看了", "库克坐上了苹果CEO的宝座,因为他面试的时候看了", "阿里巴巴大喊芝麻开门,映入眼帘的就是", "师傅说练武要先炼心,然后让我好生研读", "科考队在南极大陆发现了被冰封的", "飞机窗户似乎被一张纸糊上了,仔细一看是", "历史上满写的仁义道德四个字,透过字缝里却全是", "十几年前的录音机似乎还能够使用,插上电发现正在播的是", "新版语文书拟增加一篇熟读并背诵的", "经调查,99%的受访者都没有背诵过", "今年的高考满分作文是", "唐僧揭开了佛祖压在五指山上的", "科学家发现能够解决衰老的秘密,就是每日研读", "英特尔发布了全新的至强处理器,其芯片的制造原理都是", "新的iPhone产能很足,新的进货渠道是", "今年亩产突破了八千万斤,多亏了", "陆隐一统天上宗,在无数祖境高手的目光下宣读了", "黑钻风跟白钻风说道,吃了唐僧肉能长生不老,他知道是因为看了", "上卫生间没带纸,直接提裤跑路也不愿意玷污手中", "种下一篇文章就会产生很多很多文章,我种下了", "三十年河东,三十年河西,莫欺我没有看过", "踏破铁血无觅处,得来全靠", "今日双色球中了两千万,预测全靠", "因为卷子上没写名字,老师罚抄", "为了抗议世间的不公,割破手指写下了", "在艺术大街上被贴满了相同的纸,走近一看是", "这区区迷阵岂能难得住我?其实能走出来多亏了", "今日被一篇文章顶上了微博热搜,它是", "你送给乞丐一个暴富秘籍,它是", "UZI一个走A拿下五杀,在事后采访时说他当时回想起了", "科学家解刨了第一个感染丧尸病毒的人,发现丧尸抗体存在于"];
17
+ var randomPostClick = 0;
18
+
19
+ function fetchRandomPost() {
20
+ console.log(fdata.apiurl)
21
+ if (randomPostWorking == false) {
22
+ randomPostWorking = true;
23
+ //获取旋转角度
24
+ let randomRotate = randomPostTimes * 360;
25
+ let randomPostTipsItem = randomPostTips[Math.floor(Math.random() * randomPostTips.length)];
26
+ let randomPostLevel = "";
27
+ if (randomPostTimes > 10000) {
28
+ randomPostLevel = "愿者上钩";
29
+ } else if (randomPostTimes > 1000) {
30
+ randomPostLevel = "俯览天下";
31
+ } else if (randomPostTimes > 1000) {
32
+ randomPostLevel = "超越神了";
33
+ } else if (randomPostTimes > 100) {
34
+ randomPostLevel = "绝世渔夫";
35
+ } else if (randomPostTimes > 75) {
36
+ randomPostLevel = "钓鱼王者";
37
+ } else if (randomPostTimes > 50) {
38
+ randomPostLevel = "钓鱼宗师";
39
+ } else if (randomPostTimes > 20) {
40
+ randomPostLevel = "钓鱼专家";
41
+ } else if (randomPostTimes > 5) {
42
+ randomPostLevel = "钓鱼高手";
43
+ } else {
44
+ randomPostLevel = "钓鱼新手";
45
+ }
46
+ if (randomPostTimes >= 5) {
47
+ document.getElementById("random-post").innerHTML = `钓鱼中... (Lv.` + randomPostTimes + ` 当前称号:` + randomPostLevel + `)`;
48
+ } else {
49
+ document.getElementById("random-post").innerHTML = `钓鱼中...`;
50
+ }
51
+
52
+ $(".random-post-start").css("transform", "rotate(" + randomRotate + "deg)")
53
+ window.setTimeout(function () {
54
+ //判断是否饥饿
55
+ if (((randomPostClick * fdata.hungryFish + fdata.defaultFish) < randomPostTimes) && (Math.round(Math.random()) == 0)) {
56
+ document.getElementById("random-post").innerHTML = "因为只钓鱼不吃鱼,过分饥饿导致本次钓鱼失败..."
57
+ randomPostWorking = false;
58
+ } else {
59
+ var fetchUrl = fdata.apiurl + 'randompost';
60
+ fetch(fetchUrl)
61
+ .then(res => res.json())
62
+ .then(json => {
63
+ var title = json.title;
64
+ var link = json.link;
65
+ var author = json.author;
66
+ if (document.querySelector('#random-post')) {
67
+ document.getElementById("random-post").innerHTML = randomPostTipsItem + `来自友链 <b>` + author + `</b> 的文章:<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="` + link + `" rel="external nofollow">` + title + `</a>`;
68
+ }
69
+ })
70
+ randomPostWorking = false;
71
+ }
72
+ randomPostTimes += 1;
73
+ }, 2000)
74
+ }
75
+ }
76
+
77
+ fetchRandomPost();
78
+
79
+ //添加点击统计
80
+ function randomClickLink() {
81
+ randomPostClick += 1;
82
+ }
83
+
84
+ function addflink() {
85
+ var e = document.getElementsByClassName("el-textarea__inner")[0],
86
+ t = document.createEvent("HTMLEvents");
87
+ t.initEvent("input", !0, !0), e.value = d.value = `\`\`\`yaml
88
+ - name: #友链名称
89
+ link: #友链地址(建议博客,而不是主页,否则友链朋友圈无法爬取)
90
+ avatar: #友链头像
91
+ descr: #介绍
92
+ theme_color: #友链背景色,因为#号在yaml中识别为注释请加引号
93
+ \`\`\``, e.dispatchEvent(t);
94
+ }
95
+
@@ -0,0 +1,43 @@
1
+ function getStyle(obj,name){
2
+ if(window.getComputedStyle){
3
+ return getComputedStyle(obj,null)[name];
4
+ }else{
5
+ return obj.currentStyle[name];
6
+ }
7
+ }
8
+ // try{
9
+ // if(getStyle(document.getElementById("toggle-menu"),"display").replace(/\s+|px/gi,"")!="none"){
10
+ // document.getElementById("menus").setAttribute("style","display:none!important");
11
+ // }else{
12
+
13
+ // document.getElementById("menus").setAttribute("style","");
14
+ // }}catch(e){}
15
+ var clientWidth = document.getElementById("content-inner").clientWidth;
16
+ var paddingLeft = Number(getStyle(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,""));
17
+ var paddingRight = Number(getStyle(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,""));
18
+ var width = clientWidth - paddingLeft - paddingRight;
19
+ try{
20
+ document.getElementById("top").setAttribute("style","width:"+width.toString()+"px");
21
+ }catch(e){}
22
+ $(document).ready(function(){
23
+
24
+ var clientWidth = document.getElementById("content-inner").clientWidth;
25
+ var paddingLeft = Number(getStyle(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,""));
26
+ var paddingRight = Number(getStyle(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,""));
27
+ var width = clientWidth - paddingLeft - paddingRight;
28
+ try{
29
+ document.getElementById("top").setAttribute("style","width:"+width.toString()+"px");
30
+ }catch(e){}
31
+ function res() {
32
+ var clientWidth = document.getElementById("content-inner").clientWidth;
33
+ var paddingLeft = Number(getStyle(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,""));
34
+ var paddingRight = Number(getStyle(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,""));
35
+ var width = clientWidth - paddingLeft - paddingRight;
36
+ try{
37
+ document.getElementById("top").setAttribute("style","width:"+width.toString()+"px");
38
+ }catch(e){}
39
+
40
+ }
41
+ window.addEventListener('resize', res);
42
+
43
+ });