yipengshu 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.
- package/.DS_Store +0 -0
- package/.npmignore +6 -0
- package/2020/01/30//351/227/256/351/242/2303/index.html +540 -0
- package/2020/05/05//351/227/256/351/242/2302/index.html +540 -0
- package/2022/10/28//351/227/256/351/242/2304/index.html +539 -0
- package/2022/10/30//351/227/256/351/242/2301/index.html +540 -0
- package/README.md +3 -0
- package/about/index.html +535 -0
- package/api/articles//351/227/256/351/242/2301.json +1 -0
- package/api/articles//351/227/256/351/242/2302.json +1 -0
- package/api/articles//351/227/256/351/242/2303.json +1 -0
- package/api/articles//351/227/256/351/242/2304.json +1 -0
- package/api/categories//351/241/271/347/233/256.json +1 -0
- package/api/categories.json +1 -0
- package/api/galleries/all.json +1 -0
- package/api/galleries/babecue.json +1 -0
- package/api/galleries/colorful.json +1 -0
- package/api/galleries//345/274/200/344/274/232.json +1 -0
- package/api/galleries//346/227/245/345/270/270/347/224/237/346/264/273/347/232/204/346/202/240/350/277/234/346/203/205/346/204/217/347/232/204/346/267/261/351/225/277.json +1 -0
- package/api/galleries//347/242/216/345/261/217/346/211/213/346/234/272/357/274/214mac/357/274/214iPad/357/274/214windows/345/276/205/345/224/256.json +1 -0
- package/api/galleries.json +1 -0
- package/api/pages/------------.json +1 -0
- package/api/pages/-----mac-ipad-windows--.json +1 -0
- package/api/pages/--.json +1 -0
- package/api/pages/babecue.json +1 -0
- package/api/pages/colorful.json +1 -0
- package/api/posts/1.json +1 -0
- package/api/posts.json +1 -0
- package/api/site.json +1 -0
- package/api/tags/1.json +1 -0
- package/api/tags/2.json +1 -0
- package/api/tags/4.json +1 -0
- package/api/tags/5.json +1 -0
- package/api/tags/9.json +1 -0
- package/api/tags.json +1 -0
- package/archives/2020/01/index.html +457 -0
- package/archives/2020/05/index.html +457 -0
- package/archives/2020/index.html +457 -0
- package/archives/2022/10/index.html +457 -0
- package/archives/2022/index.html +457 -0
- package/archives/index.html +457 -0
- package/categories/index.html +427 -0
- package/categories//351/241/271/347/233/256/index.html +457 -0
- package/css/style.css +2118 -0
- package/galleries/babecue/index.html +499 -0
- package/galleries/colorful/index.html +499 -0
- package/galleries/index.html +482 -0
- package/galleries//345/274/200/344/274/232/index.html +499 -0
- package/galleries//346/227/245/345/270/270/347/224/237/346/264/273/347/232/204/346/202/240/350/277/234/346/203/205/346/204/217/347/232/204/346/267/261/351/225/277/index.html +499 -0
- package/galleries//347/242/216/345/261/217/346/211/213/346/234/272/357/274/214mac/357/274/214iPad/357/274/214windows/345/276/205/345/224/256/index.html +499 -0
- package/images/donate/alipay.jpg +0 -0
- package/images/donate/wechat.jpg +0 -0
- package/images/icons/128x128.png +0 -0
- package/images/icons/16x16.png +0 -0
- package/images/icons/16x16wo.png +0 -0
- package/images/icons/32x32.png +0 -0
- package/images/icons/32x32wo.png +0 -0
- package/images/icons/500x500.png +0 -0
- package/images/icons/80x80.png +0 -0
- package/images/icons/960x960.png +0 -0
- package/images/icons/apple-touch-icon180x180.png +0 -0
- package/images/icons/favicon-144x144.png +0 -0
- package/images/icons//347/254/224/350/256/260.tex +9 -0
- package/images/theme/01.webp +0 -0
- package/images/theme/Mountains.jpg +0 -0
- package/images/theme/Sea.jpg +0 -0
- package/images/theme/babecue.jpg +0 -0
- package/images/theme/bingshan.jpeg +0 -0
- package/images/theme/cloud.png +0 -0
- package/images/theme/google-blue.png +0 -0
- package/images/theme/hong.jpg +0 -0
- package/images/theme/jidan.jpg +0 -0
- package/images/theme/kh.jpeg +0 -0
- package/images/theme/kh1.jpg +0 -0
- package/images/theme/loading.gif +0 -0
- package/images/theme/nujiangxiagu.jpg +0 -0
- package/images/theme/nujiangxiagu.webp +0 -0
- package/images/theme/nujiangxiagu02.webp +0 -0
- package/images/theme/photo_2022-11-01_11-55-52.jpg +0 -0
- package/images/theme/post-image-01.gif +0 -0
- package/images/theme/post-image-02.jpg +0 -0
- package/images/theme/post-image-03.png +0 -0
- package/images/theme/post-image-04.gif +0 -0
- package/images/theme/post-image-04.png +0 -0
- package/images/theme/post-image-99.png +0 -0
- package/images/theme/post-image.JPEG +0 -0
- package/images/theme/post-image.jpg.png +0 -0
- package/images/theme/s.webp +0 -0
- package/images/theme/s1.webp +0 -0
- package/images/theme/s2.jpg +0 -0
- package/images/theme/s3.jpg +0 -0
- package/images/theme/shengbidebao.jpg +0 -0
- package/images/theme/shoubiao.jpg +0 -0
- package/images/theme/shouxin.jpg +0 -0
- package/images/theme/taolun.jpg +0 -0
- package/images/theme/taolun1.jpg +0 -0
- package/images/theme/tengxuntuxiaochao.png +0 -0
- package/images/theme/welcome-image.jpg +0 -0
- package/images/theme/xiong.jpg +0 -0
- package/images/theme/y.jpeg +0 -0
- package/images/theme/yao.jpg +0 -0
- package/index.html +600 -0
- package/js/color-mode.js +75 -0
- package/js/script.js +492 -0
- package/js/utils.js +167 -0
- package/lib/daovoice/daovoice.js +21 -0
- package/lib/fancybox/fancybox.css +1 -0
- package/lib/fancybox/fancybox.js +13 -0
- package/lib/gitalk/gitalk.css +1211 -0
- package/lib/gitalk/gitalk.js +25 -0
- package/lib/highlight/a11y-dark.css +1 -0
- package/lib/highlight/highlight.js +2 -0
- package/lib/jquery/jquery.js +2 -0
- package/lib/lazyload/lazyload.js +2 -0
- package/lib/lottie/lottie.js +15 -0
- package/lib/pjax/pjax.js +2 -0
- package/lib/qrcode/qrcode.js +28 -0
- package/package.json +10 -0
- package/tags/1/index.html +451 -0
- package/tags/2/index.html +445 -0
- package/tags/4/index.html +437 -0
- package/tags/5/index.html +437 -0
- package/tags/9/index.html +437 -0
- package/tags/index.html +429 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html lang="en" color-mode=light>
|
|
5
|
+
<head>
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
9
|
+
<title>Archive - 500fan</title>
|
|
10
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
11
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
12
|
+
<meta name="google" content="notranslate" />
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<meta name="author" content="空罐头">
|
|
16
|
+
<link rel="icon" href="/images/icons/16x16wo.png" type="image/png" sizes="16x16">
|
|
17
|
+
<link rel="icon" href="/images/icons/32x32wo.png" type="image/png" sizes="32x32">
|
|
18
|
+
<link rel="apple-touch-icon" href="/images/icons/16x16.png" sizes="180x180">
|
|
19
|
+
<meta rel="mask-icon" href="/images/icons/500x500.png" color="#333333">
|
|
20
|
+
|
|
21
|
+
<meta rel="msapplication-TileImage" content="/images/icons/favicon-144x144.png">
|
|
22
|
+
<meta rel="msapplication-TileColor" content="#000000">
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<link rel="stylesheet" href="/css/style.css">
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1445822_p6ry5n7lrr.css">
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css">
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/xcode.min.css" name="highlight-style" mode="light">
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
<link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/solarized-dark.min.css" name="highlight-style" mode="dark">
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
var CONFIG = window.CONFIG || {};
|
|
58
|
+
var ZHAOO = window.ZHAOO || {};
|
|
59
|
+
CONFIG = {
|
|
60
|
+
isHome: false,
|
|
61
|
+
fancybox: true,
|
|
62
|
+
pjax: false,
|
|
63
|
+
loading: {
|
|
64
|
+
gif: '/images/theme/loading.gif',
|
|
65
|
+
lottie: ''
|
|
66
|
+
},
|
|
67
|
+
lazyload: {
|
|
68
|
+
enable: true,
|
|
69
|
+
only_post: 'false',
|
|
70
|
+
loading: {
|
|
71
|
+
gif: '/images/theme/loading.gif',
|
|
72
|
+
lottie: ''
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
donate: {
|
|
76
|
+
enable: true,
|
|
77
|
+
alipay: 'https://gitee.com/yzyys/a1222/raw/master/alipay.jpeg',
|
|
78
|
+
wechat: 'https://gitee.com/yzyys/a1222/raw/master/wechat.png'
|
|
79
|
+
},
|
|
80
|
+
galleries: {
|
|
81
|
+
enable: true
|
|
82
|
+
},
|
|
83
|
+
fab: {
|
|
84
|
+
enable: true,
|
|
85
|
+
always_show: false
|
|
86
|
+
},
|
|
87
|
+
carrier: {
|
|
88
|
+
enable: true
|
|
89
|
+
},
|
|
90
|
+
daovoice: {
|
|
91
|
+
enable: true
|
|
92
|
+
},
|
|
93
|
+
preview: {
|
|
94
|
+
background: {
|
|
95
|
+
default: '',
|
|
96
|
+
api: ''
|
|
97
|
+
},
|
|
98
|
+
motto: {
|
|
99
|
+
default: '我在开了灯的床头下,想问问自己的心啊。',
|
|
100
|
+
typing: true,
|
|
101
|
+
api: 'https://v2.jinrishici.com/one.json',
|
|
102
|
+
data_contents: '["data","content"]'
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
qrcode: {
|
|
106
|
+
enable: true,
|
|
107
|
+
type: 'image',
|
|
108
|
+
image: '/images/theme/tengxuntuxiaochao.png',
|
|
109
|
+
},
|
|
110
|
+
toc: {
|
|
111
|
+
enable: true
|
|
112
|
+
},
|
|
113
|
+
scrollbar: {
|
|
114
|
+
type: 'default'
|
|
115
|
+
},
|
|
116
|
+
notification: {
|
|
117
|
+
enable: false,
|
|
118
|
+
delay: 4500,
|
|
119
|
+
list: '',
|
|
120
|
+
page_white_list: '',
|
|
121
|
+
page_black_list: ''
|
|
122
|
+
},
|
|
123
|
+
search: {
|
|
124
|
+
enable: false,
|
|
125
|
+
path: ''
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
<meta name="generator" content="Hexo 6.3.0"></head>
|
|
135
|
+
|
|
136
|
+
<body class="lock-screen">
|
|
137
|
+
<div class="loading" id="loading"></div>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<nav class="navbar">
|
|
143
|
+
<div class="left">
|
|
144
|
+
|
|
145
|
+
<i class="iconfont iconhome j-navbar-back-home"></i>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<i class="iconfont iconqrcode j-navbar-qrcode"></i>
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<i class="iconfont iconmoono" id="color-toggle" color-toggle="light"></i>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</div>
|
|
155
|
+
<div class="center">归档</div>
|
|
156
|
+
<div class="right">
|
|
157
|
+
<i class="iconfont iconmenu j-navbar-menu"></i>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<div id="qrcode-navbar"></div>
|
|
161
|
+
|
|
162
|
+
</nav>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
<nav class="menu">
|
|
168
|
+
<div class="menu-container">
|
|
169
|
+
<div class="menu-close">
|
|
170
|
+
<i class="iconfont iconbaseline-close-px"></i>
|
|
171
|
+
</div>
|
|
172
|
+
<ul class="menu-content"><li class="menu-item">
|
|
173
|
+
<a href="/ " class="underline "> 首页</a>
|
|
174
|
+
</li><li class="menu-item">
|
|
175
|
+
<a href="/galleries/ " class="underline "> 摄影</a>
|
|
176
|
+
</li><li class="menu-item">
|
|
177
|
+
<a href="/archives/ " class="underline active"> 归档</a>
|
|
178
|
+
</li><li class="menu-item">
|
|
179
|
+
<a href="/tags/ " class="underline "> 标签</a>
|
|
180
|
+
</li><li class="menu-item">
|
|
181
|
+
<a href="/categories/ " class="underline "> 分类</a>
|
|
182
|
+
</li><li class="menu-item">
|
|
183
|
+
<a href="/about/ " class="underline "> 关于</a>
|
|
184
|
+
</li></ul>
|
|
185
|
+
|
|
186
|
+
<div class="menu-copyright"><p>Powered by <a target="_blank" href="https://yzyys.gitee.io/reai/20221023wenzhangshouye/dongtaizhuye.html/zhuye.html">kongguantou</a> | Theme - <a target="_blank" href="http://chat.daovoice.io/?id=f8ddc9d3">chat</a></p></div>
|
|
187
|
+
|
|
188
|
+
</div>
|
|
189
|
+
</nav>
|
|
190
|
+
<main id="main">
|
|
191
|
+
<section class="archive">
|
|
192
|
+
<div class="archive-container">
|
|
193
|
+
<div class="archive-post">
|
|
194
|
+
<h3 class="archive-total">归档: 4 篇</h3>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
<h3 class="archive-year">2022 年</h3>
|
|
199
|
+
|
|
200
|
+
<div class="archive-item">
|
|
201
|
+
<a class="archive-date" href="/2022/10/30/%E9%97%AE%E9%A2%981/">October 30</a>
|
|
202
|
+
<a class="archive-title" href="/2022/10/30/%E9%97%AE%E9%A2%981/">笔辛</a>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
<div class="archive-item">
|
|
207
|
+
<a class="archive-date" href="/2022/10/28/%E9%97%AE%E9%A2%984/">October 28</a>
|
|
208
|
+
<a class="archive-title" href="/2022/10/28/%E9%97%AE%E9%A2%984/">罗丹的思想者</a>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
<h3 class="archive-year">2020 年</h3>
|
|
213
|
+
|
|
214
|
+
<div class="archive-item">
|
|
215
|
+
<a class="archive-date" href="/2020/05/05/%E9%97%AE%E9%A2%982/">May 05</a>
|
|
216
|
+
<a class="archive-title" href="/2020/05/05/%E9%97%AE%E9%A2%982/">头像</a>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
<div class="archive-item">
|
|
221
|
+
<a class="archive-date" href="/2020/01/30/%E9%97%AE%E9%A2%983/">January 30</a>
|
|
222
|
+
<a class="archive-title" href="/2020/01/30/%E9%97%AE%E9%A2%983/">任务007</a>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</section>
|
|
228
|
+
</main>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<footer class="footer">
|
|
232
|
+
<div class="footer-social"><a
|
|
233
|
+
href="tencent://message/?Menu=yes&uin=392637221 "
|
|
234
|
+
target="_blank"
|
|
235
|
+
class="footer-social-item"
|
|
236
|
+
onMouseOver="this.style.color= '#12B7F5'"
|
|
237
|
+
onMouseOut="this.style.color='#33333D'">
|
|
238
|
+
<i class="iconfont iconQQ "></i>
|
|
239
|
+
</a><a
|
|
240
|
+
href="javascript:; "
|
|
241
|
+
target="_blank"
|
|
242
|
+
class="footer-social-item"
|
|
243
|
+
onMouseOver="this.style.color= '#09BB07'"
|
|
244
|
+
onMouseOut="this.style.color='#33333D'">
|
|
245
|
+
<i class="iconfont iconwechat-fill "></i>
|
|
246
|
+
</a><a
|
|
247
|
+
href="https://www.instagram.com/izhaoo/ "
|
|
248
|
+
target="_blank"
|
|
249
|
+
class="footer-social-item"
|
|
250
|
+
onMouseOver="this.style.color= '#DA2E76'"
|
|
251
|
+
onMouseOut="this.style.color='#33333D'">
|
|
252
|
+
<i class="iconfont iconinstagram "></i>
|
|
253
|
+
</a><a
|
|
254
|
+
href="https://yzyys.gitee.io/reai/ydongtai.html "
|
|
255
|
+
target="_blank"
|
|
256
|
+
class="footer-social-item"
|
|
257
|
+
onMouseOver="this.style.color= '#9f7be1'"
|
|
258
|
+
onMouseOut="this.style.color='#33333D'">
|
|
259
|
+
<i class="iconfont icongithub-fill "></i>
|
|
260
|
+
</a><a
|
|
261
|
+
href="wodeweixinshi "
|
|
262
|
+
target="_blank"
|
|
263
|
+
class="footer-social-item"
|
|
264
|
+
onMouseOver="this.style.color=#FF3B00"
|
|
265
|
+
onMouseOut="this.style.color='#33333D'">
|
|
266
|
+
<i class="iconfont iconmail"></i>
|
|
267
|
+
</a></div>
|
|
268
|
+
|
|
269
|
+
<div class="footer-copyright"><p>Powered by <a target="_blank" href="https://yzyys.gitee.io/reai/20221023wenzhangshouye/dongtaizhuye.html/zhuye.html">kongguantou</a> | Theme - <a target="_blank" href="http://chat.daovoice.io/?id=f8ddc9d3">chat</a></p></div>
|
|
270
|
+
|
|
271
|
+
</footer>
|
|
272
|
+
|
|
273
|
+
<div class="fab fab-plus">
|
|
274
|
+
<i class="iconfont iconplus"></i>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
<div class="fab fab-daovoice">
|
|
279
|
+
<i class="iconfont iconcomment"></i>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
<div class="fab fab-up">
|
|
284
|
+
<i class="iconfont iconcaret-up"></i>
|
|
285
|
+
</div>
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<script src="/js/color-mode.js"></script>
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
</body>
|
|
295
|
+
|
|
296
|
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"></script>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
<script src="/js/utils.js"></script>
|
|
323
|
+
<script src="/js/script.js"></script>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
<script>
|
|
328
|
+
$.getScript("//cdn.jsdelivr.net/npm/leancloud-storage@4.1.0/dist/av-min.js", () => {
|
|
329
|
+
|
|
330
|
+
AV.init({
|
|
331
|
+
appId: '9SpXH9odSXLYjnnm5J9UG9mm-gzGzoHsz',
|
|
332
|
+
appKey: 'FL69KukifEA1Rrnd9yrAwTXi',
|
|
333
|
+
serverURLs: 'https://9spxh9od.lc-cn-n1-shared.com/',
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
const Counter = AV.Object.extend("Counter");
|
|
337
|
+
const Like = AV.Object.extend("Like");
|
|
338
|
+
|
|
339
|
+
const showCount = (Counter) => {
|
|
340
|
+
const asyncLimit = new AsyncLimit(2);
|
|
341
|
+
$(".leancloud-counter").each(async (e) => {
|
|
342
|
+
const url = $(".leancloud-counter").eq(e).attr('id').trim();
|
|
343
|
+
const query = new AV.Query("Counter");
|
|
344
|
+
query.equalTo("words", url);
|
|
345
|
+
let count = await asyncLimit.run(() => query.count());
|
|
346
|
+
$(".leancloud-counter").eq(e).text(count ? count : 0);
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
const addCount = (Counter) => {
|
|
351
|
+
const url = $(".leancloud-counter").length === 1 ? $(".leancloud-counter").attr('id').trim() : 'http://yzyys.gitee.io';
|
|
352
|
+
var query = new Counter;
|
|
353
|
+
query.save({
|
|
354
|
+
words: url
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
const showLike = (Like) => {
|
|
359
|
+
const asyncLimit = new AsyncLimit(2);
|
|
360
|
+
$(".leancloud-like").each(async (e) => {
|
|
361
|
+
const url = $(".leancloud-like").eq(e).attr('id').trim();
|
|
362
|
+
const query = new AV.Query("Like");
|
|
363
|
+
query.equalTo("path", url);
|
|
364
|
+
let count = await asyncLimit.run(() => query.count());
|
|
365
|
+
$(".leancloud-like").eq(e).text(count ? count : 0);
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
const addLike = (Like) => {
|
|
370
|
+
const url = $(".leancloud-like").length === 1 ? $(".leancloud-like").attr('id').trim() : 'http://yzyys.gitee.io';
|
|
371
|
+
var query = new Like;
|
|
372
|
+
query.save({
|
|
373
|
+
path: url,
|
|
374
|
+
nickName: 'Anonymous'
|
|
375
|
+
});
|
|
376
|
+
$(".leancloud-like").addClass('islike');
|
|
377
|
+
$(".fab-like").children(".iconfont").removeClass("iconheart").addClass("iconheart-fill").css("color", "#eb3223");
|
|
378
|
+
ZHAOO.zui.message({ text: '爱你哦~', type: 'success' });
|
|
379
|
+
setTimeout(() => showLike(Like), 1000);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
const handleLikeClick = () => {
|
|
383
|
+
const isLike = $(".leancloud-like").length === 1 && $(".leancloud-like").hasClass('islike') ? true : false;
|
|
384
|
+
if (isLike) {
|
|
385
|
+
ZHAOO.zui.message({ text: '小心心不可以收回呢~', type: 'warning' });
|
|
386
|
+
} else {
|
|
387
|
+
addLike(Like);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
$(function () {
|
|
392
|
+
addCount(Counter);
|
|
393
|
+
showCount(Counter);
|
|
394
|
+
showLike(Like);
|
|
395
|
+
$(".fab-like").on("click", function () {
|
|
396
|
+
handleLikeClick();
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
});
|
|
401
|
+
</script>
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
<script>
|
|
408
|
+
(function (i, s, o, g, r, a, m) {
|
|
409
|
+
i["DaoVoiceObject"] = r;
|
|
410
|
+
i[r] = i[r] || function () {
|
|
411
|
+
(i[r].q = i[r].q || []).push(arguments)
|
|
412
|
+
}, i[r].l = 1 * new Date();
|
|
413
|
+
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
|
|
414
|
+
a.async = 1;
|
|
415
|
+
a.src = g;
|
|
416
|
+
a.charset = "utf-8";
|
|
417
|
+
m.parentNode.insertBefore(a, m)
|
|
418
|
+
})(window, document, "script", "https://widget.daovoice.io/widget/0f81ff2f.js", "daovoice")
|
|
419
|
+
daovoice('init', {
|
|
420
|
+
app_id: "f8ddc9d3"
|
|
421
|
+
}, {
|
|
422
|
+
launcher: {
|
|
423
|
+
disableLauncherIcon: true,
|
|
424
|
+
},
|
|
425
|
+
});
|
|
426
|
+
daovoice('update');
|
|
427
|
+
</script>
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
<script>
|
|
432
|
+
(function () {
|
|
433
|
+
var bp = document.createElement('script');
|
|
434
|
+
var curProtocol = window.location.protocol.split(':')[0];
|
|
435
|
+
if (curProtocol === 'https') {
|
|
436
|
+
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
|
437
|
+
} else {
|
|
438
|
+
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
|
439
|
+
}
|
|
440
|
+
var s = document.getElementsByTagName("script")[0];
|
|
441
|
+
s.parentNode.insertBefore(bp, s);
|
|
442
|
+
})();
|
|
443
|
+
</script>
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
</html>
|