├── .gitignore ├── LICENSE ├── README.md ├── archive.php ├── assets ├── clover.css ├── clover.js ├── default.jpg ├── fuckweixin.png └── icons │ ├── QQ.svg │ ├── mail.svg │ ├── telegram.svg │ ├── twitter.svg │ └── weibo.svg ├── bilibili.php ├── components ├── comments.php ├── footer.php ├── header.php └── sidebar.php ├── cross.php ├── functions.php ├── index.php ├── libs ├── OwO │ ├── OwO.json │ ├── OwO.min.css │ ├── OwO.min.js │ └── OwO.min.js.map ├── ParserDom │ └── ParserDom.php ├── canvas-nest │ └── canvas-nest.min.js └── random-homepage │ ├── head.js │ └── title.js ├── page.php ├── post.php └── screenshot.png /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > 🍀与一切眼中看见无所有;于无所希望中得救。 ——鲁迅《墓谒文》 2 | 3 | 傻翠自己的typecho主题 clover,基于 bootstrap4 编写 4 | 5 | > ⚠️暂时处于 Pre-Relsase 阶段,不稳定,直接使用**可能**需要一些编码知识 6 | 7 | ## Why clover? 8 | 9 | 作为一名半文不理还学了计算机二专的商科生,在折腾个人博客的时候遇到了这样的问题: 10 | 11 | > 自己有一些技术上的经历与体验需要分享,又有一些自己生活中的各种随想,但两者的受众是不同的,喜欢看我没事瞎说的也许对技术文章一点都不感兴趣;需要从我博客中得到技术收获的又往往对我的生活没有兴趣。 12 | 13 | 自己之前的解决方案是将技术博客与个人博客做成两个独立的typecho博客,但这样又使得自己的网站之间的关联不强,在这个网站浏览过的人难以跳转到另一个网站,于是就有了这样的一个博客主题。 14 | 15 | 这个主题通过设置一个独立的主页,并将不同分类的文章进行分开展示,使得不同的文章得以在不同的分类中呈现,避免了所有文章都放在一处的问题。 16 | 17 | 如果你也有这样的困扰,希望这个主题可以帮助到你。 18 | 19 | 功能特性: 20 | 21 | * 多语言支持,可以通过一个服务器搭建多站点 [示例中文](https://idealclover.top/) [示例英文](https://en.idealclover.top/) 22 | * 通过分类切换文章类别,通过子分类表示具体分类 23 | 24 | ## How to use clover? 25 | 26 | ### 安装主题 27 | 28 | > ⚠️暂时处于 Pre-Relsase 阶段,不稳定,直接使用**可能**需要一些编码知识 29 | 30 | 将主题下载解压重命名为clover,放在```usr/themes```目录下 31 | 32 | ### 安装相关插件 33 | 34 | clover主题使用到的相关插件,需要手动下载安装: 35 | * (必需)点赞插件[AnotherLike](https://github.com/idealclover/Another-Typecho-Like-Plugin) 36 | * (必需)搜索插件[ExSearch](https://github.com/AlanDecode/Typecho-Plugin-ExSearch) 37 | * (必需)友情链接插件[Links](http://www.imhan.com/archives/typecho_links_20141214/) 38 | * (可选)播放器插件[Meting](https://github.com/MoePlayer/APlayer-Typecho) 39 | * (可选)PWA插件[PWA](https://github.com/idealclover/Typecho-PWA) 40 | 41 | ## 使用到的开源库 42 | 43 | * 首页使用项目 [Random-Homepage](https://github.com/idealclover/Random-Homepage) 44 | * 背景参考项目 [canvas-nest.js](https://github.com/hustcc/canvas-nest.js) 45 | * 平滑滚动组件 [smooth-scroll](https://github.com/cferdinandi/smooth-scroll) 46 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | need('components/header.php'); ?> 6 | 7 | 8 |
9 | 10 | 22 | 23 |
24 |
25 | have()) : ?> 26 | next()) : ?> 27 |
28 |

29 | 30 |

31 |

32 | date('Y.m.d'); ?> | 33 | category(','); ?> | 34 | cid); ?> | 35 | commentsNum(_t(' 0 条评论'), _t(' 1 条评论'), _t(' %d 条评论')); ?> 36 | 37 |

38 |
39 | content(_t('查看更多 ->')); ?> 40 |
41 |
42 |
43 | 44 | 45 |
46 |

47 |
48 | 49 | pageNav(_t('« 前一页'), _t('后一页 »')); ?> 50 |
51 | need('components/sidebar.php'); ?> 52 |
53 |
54 | 55 | need('components/footer.php'); ?> -------------------------------------------------------------------------------- /assets/clover.css: -------------------------------------------------------------------------------- 1 | /* - global - */ 2 | /*------------*/ 3 | 4 | a { 5 | color: #3e3e3e; 6 | } 7 | 8 | a:hover { 9 | color: #3e3e3e; 10 | } 11 | 12 | h1 { 13 | font-size: 2rem; 14 | } 15 | 16 | h2 { 17 | font-size: 1.7rem; 18 | } 19 | 20 | h3, 21 | h4, 22 | h5, 23 | h6 { 24 | font-size: 1.4rem; 25 | } 26 | 27 | h1, 28 | h2 { 29 | margin-bottom: 1rem; 30 | } 31 | 32 | h1, 33 | h2, 34 | h3, 35 | h4, 36 | h5, 37 | h6 { 38 | font-weight: normal; 39 | } 40 | 41 | .navbar { 42 | padding: 0.3rem 1rem; 43 | } 44 | 45 | img { 46 | max-width: 100%; 47 | } 48 | 49 | /* - main - */ 50 | /*----------*/ 51 | 52 | #main { 53 | padding: 1.5rem 0; 54 | margin-top: 4.0rem; 55 | } 56 | 57 | #main img { 58 | height: auto; 59 | transition: filter .3s; 60 | } 61 | 62 | .page-title, 63 | .edit-link { 64 | display: inline-block; 65 | } 66 | 67 | .post-content img, 68 | .comment-content img, 69 | .post-content video, 70 | .comment-content video { 71 | max-width: 100%; 72 | } 73 | 74 | .post-content h1:before, 75 | .page-content h1:before { 76 | opacity: .5; 77 | content: "#"; 78 | margin-right: .3rem; 79 | } 80 | 81 | .post-content h2:before, 82 | .page-content h2:before { 83 | opacity: .5; 84 | content: "##"; 85 | margin-right: .3rem; 86 | } 87 | 88 | .post-content h3:before, 89 | .page-content h3:before { 90 | opacity: .5; 91 | content: "###"; 92 | margin-right: .3rem; 93 | } 94 | 95 | .post-content a { 96 | text-decoration: underline; 97 | } 98 | 99 | blockquote { 100 | padding: 0.5rem; 101 | background: #F0F0F0; 102 | } 103 | 104 | blockquote p:before { 105 | opacity: .5; 106 | margin-right: .3rem; 107 | content: ">"; 108 | } 109 | 110 | blockquote p { 111 | margin: 0; 112 | } 113 | 114 | /* - article list - */ 115 | /*-------------------*/ 116 | 117 | .archive-title { 118 | text-align: center; 119 | /*margin-top: 1em;*/ 120 | margin-bottom: 1.5rem; 121 | } 122 | 123 | .page-navigator { 124 | list-style: none; 125 | margin: 25px 0; 126 | padding: 0; 127 | text-align: center; 128 | } 129 | 130 | .page-navigator li { 131 | display: inline-block; 132 | margin: 0 4px; 133 | } 134 | 135 | .page-navigator a { 136 | display: inline-block; 137 | padding: 0 10px; 138 | height: 30px; 139 | line-height: 30px; 140 | } 141 | 142 | .page-navigator a:hover { 143 | background: #EEE; 144 | text-decoration: none; 145 | } 146 | 147 | .page-navigator .current a { 148 | color: #444; 149 | background: #EEE; 150 | } 151 | 152 | /* - post comments - */ 153 | /*-------------------*/ 154 | 155 | /* - comments - */ 156 | /*--------------*/ 157 | 158 | .post-comments { 159 | word-wrap: break-word; 160 | padding-top: 15px; 161 | } 162 | 163 | .post-comments .comment-list { 164 | margin-left: 0; 165 | list-style: none; 166 | margin-bottom: 2em; 167 | padding: 0; 168 | } 169 | 170 | .comment-children>.comment-list { 171 | margin-top: 1.5em; 172 | margin-bottom: 0; 173 | } 174 | 175 | .comment-list li { 176 | padding: 14px; 177 | margin-top: 10px; 178 | border: 1px solid #EEE; 179 | } 180 | 181 | .comment-list .avatar { 182 | top: 0; 183 | left: 0; 184 | min-width: 45px; 185 | max-width: 45px; 186 | float: left; 187 | border-radius: 100%; 188 | transition: transform .3s ease-in-out; 189 | } 190 | 191 | .comment-list .comment-meta { 192 | float: left; 193 | padding-left: .5rem; 194 | margin-bottom: .5rem; 195 | } 196 | 197 | .comment-list .comment-meta a { 198 | color: #999; 199 | } 200 | 201 | .comment-list .comment-author { 202 | display: block; 203 | margin-bottom: 3px; 204 | color: #444; 205 | } 206 | 207 | .comment-list .comment-content { 208 | clear: both; 209 | } 210 | 211 | .comment-content p { 212 | margin: 0; 213 | } 214 | 215 | /* - moments - */ 216 | /*--------------*/ 217 | 218 | .comment-list .moment { 219 | padding: 14px; 220 | margin-top: 0; 221 | /*border: 1px solid #EEE;*/ 222 | border: 0; 223 | border-bottom: 1px solid #EEE; 224 | } 225 | 226 | .comment-list .moment-meta { 227 | margin-left: 55px; 228 | display: block; 229 | } 230 | 231 | .comment-list .moment-meta a { 232 | color: #444; 233 | } 234 | 235 | .comment-list .moment-time { 236 | color: #999; 237 | } 238 | 239 | .comment-list .moment-time:before { 240 | content: "\00b7"; 241 | } 242 | 243 | .comment-list .moment-content { 244 | clear: both; 245 | } 246 | 247 | .moment-meta p { 248 | margin: 0; 249 | } 250 | 251 | /* - side bar - */ 252 | /*--------------*/ 253 | 254 | .card { 255 | margin-bottom: 1rem; 256 | } 257 | 258 | 259 | .list-group-root>.list-group-item, 260 | .list-group-wrapper>.list-group-item { 261 | padding-top: 10px; 262 | padding-bottom: 10px; 263 | } 264 | 265 | .list-group-wrapper { 266 | margin-top: 1px; 267 | } 268 | 269 | .list-group-wrapper>li { 270 | padding-left: 40px; 271 | } 272 | 273 | /* - footer - */ 274 | /*-------------*/ 275 | 276 | .turn-up { 277 | right: 20px; 278 | bottom: 60px; 279 | padding: .5em .6em; 280 | display: block; 281 | cursor: pointer; 282 | position: fixed; 283 | background: #fff; 284 | border-radius: 4px; 285 | border: 1px solid #eee; 286 | transform: translateX(60px); 287 | transition: color .3s, border .3s, background .3s, transform .3s; 288 | } 289 | 290 | .turn-up.active { 291 | transform: translateX(0); 292 | } 293 | 294 | .turn-up:before { 295 | width: 1.5em; 296 | display: block; 297 | text-align: center; 298 | } 299 | 300 | .turn-up i { 301 | font-size: 30px; 302 | } 303 | 304 | .footer { 305 | padding: 1rem 0; 306 | text-align: center; 307 | } 308 | 309 | .footer { 310 | font-size: .875rem; 311 | } -------------------------------------------------------------------------------- /assets/clover.js: -------------------------------------------------------------------------------- 1 | // 返回页首 2 | function turn_up() { 3 | var btn = document.getElementsByClassName("turn-up")[0]; 4 | var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop; 5 | 6 | if (scroll >= window.innerHeight / 2) { 7 | btn.classList.add("active"); 8 | } else { 9 | btn.classList.remove("active"); 10 | } 11 | } 12 | 13 | window.onscroll = function () { 14 | turn_up(); 15 | }; -------------------------------------------------------------------------------- /assets/default.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idealclover/clover/1d731108f1f3e579f52a74e5d851b955b0231e7e/assets/default.jpg -------------------------------------------------------------------------------- /assets/fuckweixin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idealclover/clover/1d731108f1f3e579f52a74e5d851b955b0231e7e/assets/fuckweixin.png -------------------------------------------------------------------------------- /assets/icons/QQ.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /assets/icons/mail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /assets/icons/telegram.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /assets/icons/twitter.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /assets/icons/weibo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /bilibili.php: -------------------------------------------------------------------------------- 1 | 8 | 12 | need('components/header.php'); ?> 13 | 14 | $book_name, "img" => $book_img, "url" => $book_url); 32 | } 33 | 34 | return $readlist; 35 | } 36 | 37 | function curl_get_contents($url) 38 | { 39 | $ch = curl_init($url); 40 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 41 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 42 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 43 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 44 | $data = curl_exec($ch); 45 | curl_close($ch); 46 | return $data; 47 | } 48 | ?> 49 | 50 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

我的bilibili追番列表

79 | 以下数据为实时从Bilibili API读取 80 |
81 | fields->mid); 83 | foreach ($readList as $v) : ?> 84 |
85 | Card image cap 86 | 89 |
90 | 91 |
92 |
93 | 94 |
95 |
96 |
97 | need('components/comments.php'); ?> 98 |
99 | need('components/sidebar.php'); ?> 100 |
101 |
102 | 103 | 104 | need('components/footer.php'); ?> 105 | -------------------------------------------------------------------------------- /components/comments.php: -------------------------------------------------------------------------------- 1 | 4 | authorId) { 8 | if ($comments->authorId == $comments->ownerId) { 9 | $commentClass .= ' comment-by-author'; 10 | } else { 11 | $commentClass .= ' comment-by-user'; 12 | } 13 | } 14 | 15 | $commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent'; 16 | ?> 17 | 18 |
  • 19 | gravatar('45', $default = Helper::options()->themeUrl . '/assets/default.jpg'); ?> 20 |
    21 | author(); ?> 22 | 23 | reply(); ?> 24 |
    25 |
    26 | content(); ?> 27 |
    28 | children) : ?> 29 |
    30 | threadedComments($options); ?> 31 |
    32 | 33 |
  • 34 | 35 |
    36 |

    commentsNum(_t('没有评论 T^T'), _t('只有一条评论 QAQ'), _t('已有 %d 条评论')); ?>

    37 | comments()->to($comments); ?> 38 | allow('comment')) : ?> 39 |
    40 | 41 | cancelReply(); ?> 42 | 43 |
    44 |
    45 | user->hasLogin()) : ?> 46 |

    47 | 48 | user->screenName(); ?>. 49 | » 50 | 51 |

    52 | 53 |

    54 | 55 |

    56 |

    57 | options->commentsRequireMail) : ?> required> 58 |

    59 |

    60 | options->commentsRequireURL) : ?> required> 61 |

    62 | 63 |
    64 |

    65 | 66 |

    67 |

    68 |

    69 | 70 |

    71 |
    72 |
    73 |
    74 |
    75 | 76 | have()) : ?> 77 | listComments(); ?> 78 | pageNav(_t('« 前一页'), _t('后一页 »')); ?> 79 | 80 |
    81 | 82 | -------------------------------------------------------------------------------- /components/footer.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 34 | 35 | footer(); ?> 36 | 37 | options->clover_js(); ?> 38 | 39 | 77 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 115 | 120 | 123 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /components/header.php: -------------------------------------------------------------------------------- 1 |  12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | <?php $this->archiveTitle(array( 22 | 'category' => _t('%s'), 23 | 'search' => _t('包含关键字 %s 的文章'), 24 | 'tag' => _t('标签 %s 下的文章'), 25 | 'author' => _t('%s 发布的文章') 26 | ), '', ' - '); ?><?php $this->options->title(); ?> 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | header(); ?> 36 | options->clover_css(); ?> 37 | 38 | 39 | 40 | 71 | is('single')) { 73 | $cid = $this->cid; 74 | $db = Typecho_Db::get(); 75 | $row = $db->fetchRow($db->select('views')->from('table.contents')->where('cid = ?', $cid)); 76 | $db->query($db->update('table.contents')->rows(array('views' => (int)$row['views'] + 1))->where('cid = ?', $cid)); 77 | } 78 | ?> -------------------------------------------------------------------------------- /components/sidebar.php: -------------------------------------------------------------------------------- 1 | 4 | 81 | -------------------------------------------------------------------------------- /cross.php: -------------------------------------------------------------------------------- 1 | 8 | 11 | need('components/header.php'); ?> 12 | authorId) { 16 | if ($comments->authorId == $comments->ownerId) { 17 | $commentClass .= ' comment-by-author'; 18 | } else { 19 | $commentClass .= ' comment-by-user'; 20 | } 21 | } 22 | $commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent'; 23 | ?> 24 |
  • 25 | gravatar('45', $default = Helper::options()->themeUrl . '/assets/default.jpg'); ?> 26 |
    27 | author(); ?> 28 | 29 | 31 | content(); ?> 32 |
    33 | 34 |
    35 |
    36 | children) : ?> 37 |
    38 | threadedComments($options); ?> 39 |
    40 | 41 |
  • 42 | 43 |
    44 |
    45 |
    46 |
    47 |
    48 |

    49 | 50 |

    51 | authorId == $this->user->uid) : ?> 52 | 53 | 54 |
    55 |
    56 |
    57 | content(); ?> 58 |
    59 |
    60 |
    61 |
    62 | comments()->to($comments); ?> 63 | have()) : ?> 64 | listComments(); ?> 65 | pageNav(_t('« 前一页'), _t('后一页 »')); ?> 66 | 67 |
    68 |
    69 | need('components/sidebar.php'); ?> 70 |
    71 |
    72 | need('components/footer.php'); ?> -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | getPrefix(); 16 | $rs = $db->fetchRow($db->select()->from($prefix . 'metas')->where('slug = ?', $category)->limit(1)); 17 | 18 | if ($rs['parent'] == 0) { 19 | return $rs['slug']; 20 | } else { 21 | $rs2 = $db->fetchRow($db->select()->from($prefix . 'metas')->where('mid = ?', $rs['parent'])->limit(1)); 22 | return $rs2['slug']; 23 | } 24 | } 25 | 26 | function themeConfig($form) { 27 | $title = new Typecho_Widget_Helper_Form_Element_Text('clover_title', NULL, NULL, _t('站点标题'), _t('在这里填入想显示的站点标题,要求必须为英文')); 28 | $form->addInput($title); 29 | 30 | $subtitle = new Typecho_Widget_Helper_Form_Element_Text('clover_subtitle', NULL, NULL, _t('站点副标题'), _t('在这里填入想显示的站点副标题,要求必须为英文')); 31 | $form->addInput($subtitle); 32 | 33 | $contents = new Typecho_Widget_Helper_Form_Element_Textarea('clover_contents', NULL, "Blog | Thinking | Life | Resume | About ", _t('站点主页内容HTML'), _t('在这里填入站点主页内容的HTML')); 34 | $form->addInput($contents); 35 | 36 | $description = new Typecho_Widget_Helper_Form_Element_Textarea('clover_description', NULL, NULL, _t('侧边栏介绍'), _t('在这里填入侧边栏的介绍')); 37 | $form->addInput($description); 38 | 39 | $aboug_blog = new Typecho_Widget_Helper_Form_Element_Textarea('clover_about_blog', NULL, NULL, _t('关于博客介绍'), _t('在这里填入关于博客的介绍')); 40 | $form->addInput($aboug_blog); 41 | 42 | $sidebarBlock = new Typecho_Widget_Helper_Form_Element_Checkbox('sidebarBlock', 43 | array('ShowQQ' => _t('显示 QQ'), 44 | 'ShowTelegram' => _t('显示 Telegram'), 45 | 'ShowMail' => _t('显示 Email'), 46 | 'ShowTwitter' => _t('显示 Twitter'), 47 | 'ShowWeibo' => _t('显示微博')), 48 | array('ShowQQ', 'ShowTelegram', 'ShowMail', 'ShowTwitter', 'ShowWeibo'), _t('社交图标设置')); 49 | 50 | $form->addInput($sidebarBlock->multiMode()); 51 | 52 | $qq = new Typecho_Widget_Helper_Form_Element_Text('clover_QQ', NULL, NULL, _t('QQ 号'), _t('如果需要显示 QQ,请填入您的QQ号')); 53 | $form->addInput($qq); 54 | 55 | $telegram = new Typecho_Widget_Helper_Form_Element_Text('clover_telegram', NULL, NULL, _t('Telegram id'), _t('如果需要显示 Telegram,请填入您的 Telegram id')); 56 | $form->addInput($telegram); 57 | 58 | $email = new Typecho_Widget_Helper_Form_Element_Text('clover_email', NULL, NULL, _t('Email'), _t('如果需要显示 Email,请填入您的 Email')); 59 | $form->addInput($email); 60 | 61 | $twitter = new Typecho_Widget_Helper_Form_Element_Text('clover_twitter', NULL, NULL, _t('Twitter'), _t('如果需要显示 Twitter,请填入您的 Twitter id')); 62 | $form->addInput($twitter); 63 | 64 | $weibo = new Typecho_Widget_Helper_Form_Element_Text('clover_weibo', NULL, NULL, _t('微博 id'), _t('如果需要显示微博,请填入您的微博 id')); 65 | $form->addInput($weibo); 66 | 67 | $start_time = new Typecho_Widget_Helper_Form_Element_Text('clover_start_time', NULL, '2017/5/20 13:14:15', _t('博客运行时间'), _t('格式务必为 YY/MM/DD HH:MM:SS')); 68 | $form->addInput($start_time); 69 | 70 | $leave = new Typecho_Widget_Helper_Form_Element_Text('clover_leave', NULL, '|ω・) 哎呦~页面不见了~', _t('离开时标题'), _t('用户离开该网站时的网站暂时标题')); 71 | $form->addInput($leave); 72 | 73 | $return = new Typecho_Widget_Helper_Form_Element_Text('clover_return', NULL, '(/≧▽≦)/ 呦吼~肥来啦!', _t('返回时标题'), _t('用户返回该网站时的网站暂时标题')); 74 | $form->addInput($return); 75 | 76 | $css = new Typecho_Widget_Helper_Form_Element_Textarea('clover_css', NULL, NULL, _t('头部 CSS'), _t('在这里插入需要的其他头部 CSS 代码')); 77 | $form->addInput($css); 78 | 79 | $js = new Typecho_Widget_Helper_Form_Element_Textarea('clover_js', NULL, NULL, _t('尾部 js'), _t('在这里插入需要的其他尾部 JS 代码')); 80 | $form->addInput($js); 81 | 82 | } -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | need('components/header.php'); ?> 16 | 50 |
    51 |

    ...


    52 |
    53 | options->clover_contents(); ?> 54 | 55 |
    56 | How this page works 57 |
    58 | 59 | 60 | 61 | 62 | need('components/footer.php'); ?> -------------------------------------------------------------------------------- /libs/OwO/OwO.json: -------------------------------------------------------------------------------- 1 | { 2 | "颜文字": { 3 | "type": "emoticon", 4 | "container": [ 5 | { 6 | "icon": "OωO", 7 | "text": "Author: DIYgod" 8 | }, 9 | { 10 | "icon": "|´・ω・)ノ", 11 | "text": "Hi" 12 | }, 13 | { 14 | "icon": "ヾ(≧∇≦*)ゝ", 15 | "text": "开心" 16 | }, 17 | { 18 | "icon": "(☆ω☆)", 19 | "text": "星星眼" 20 | }, 21 | { 22 | "icon": "(╯‵□′)╯︵┴─┴", 23 | "text": "掀桌" 24 | }, 25 | { 26 | "icon": " ̄﹃ ̄", 27 | "text": "流口水" 28 | }, 29 | { 30 | "icon": "(/ω\)", 31 | "text": "捂脸" 32 | }, 33 | { 34 | "icon": "∠( ᐛ 」∠)_", 35 | "text": "给跪" 36 | }, 37 | { 38 | "icon": "(๑•̀ㅁ•́ฅ)", 39 | "text": "Hi" 40 | }, 41 | { 42 | "icon": "→_→", 43 | "text": "斜眼" 44 | }, 45 | { 46 | "icon": "୧(๑•̀⌄•́๑)૭", 47 | "text": "加油" 48 | }, 49 | { 50 | "icon": "٩(ˊᗜˋ*)و", 51 | "text": "有木有WiFi" 52 | }, 53 | { 54 | "icon": "(ノ°ο°)ノ", 55 | "text": "前方高能预警" 56 | }, 57 | { 58 | "icon": "(´இ皿இ`)", 59 | "text": "我从未见过如此厚颜无耻之人" 60 | }, 61 | { 62 | "icon": "⌇●﹏●⌇", 63 | "text": "吓死宝宝惹" 64 | }, 65 | { 66 | "icon": "(ฅ´ω`ฅ)", 67 | "text": "已阅留爪" 68 | }, 69 | { 70 | "icon": "(╯°A°)╯︵○○○", 71 | "text": "去吧大师球" 72 | }, 73 | { 74 | "icon": "φ( ̄∇ ̄o)", 75 | "text": "太萌惹" 76 | }, 77 | { 78 | "icon": "ヾ(´・ ・`。)ノ\"", 79 | "text": "咦咦咦" 80 | }, 81 | { 82 | "icon": "( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃", 83 | "text": "气呼呼" 84 | }, 85 | { 86 | "icon": "(ó﹏ò。)", 87 | "text": "我受到了惊吓" 88 | }, 89 | { 90 | "icon": "Σ(っ °Д °;)っ", 91 | "text": "什么鬼" 92 | }, 93 | { 94 | "icon": "( ,,´・ω・)ノ\"(´っω・`。)", 95 | "text": "摸摸头" 96 | }, 97 | { 98 | "icon": "╮(╯▽╰)╭ ", 99 | "text": "无奈" 100 | }, 101 | { 102 | "icon": "o(*////▽////*)q ", 103 | "text": "脸红" 104 | }, 105 | { 106 | "icon": ">﹏<", 107 | "text": "" 108 | }, 109 | { 110 | "icon": "( ๑´•ω•) \"(ㆆᴗㆆ)", 111 | "text": "" 112 | }, 113 | { 114 | "icon": "(。•ˇ‸ˇ•。)", 115 | "text": "" 116 | } 117 | ] 118 | } 119 | } -------------------------------------------------------------------------------- /libs/OwO/OwO.min.css: -------------------------------------------------------------------------------- 1 | .OwO{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.OwO:hover .OwO-logo{color:#444}.OwO.OwO-open .OwO-logo{border-radius:4px 4px 0 0;border-bottom:none;color:#444}.OwO.OwO-open .OwO-body{display:block}.OwO.OwO-up .OwO-body{top:inherit;bottom:21px;border-radius:4px 4px 4px 0}.OwO.OwO-up .OwO-body .OwO-bar .OwO-packages li:nth-child(1){border-radius:0}.OwO.OwO-up.OwO-open .OwO-logo{border:1px solid #ddd;border-radius:0 0 4px 4px;border-top:none}.OwO .OwO-logo{position:relative;display:inline-block;color:#888;background:#fff;border:1px solid #ddd;border-radius:4px;font-size:13px;padding:2px 5px;cursor:pointer;height:22px;box-sizing:border-box;z-index:2;line-height:16px}.OwO .OwO-logo:hover span{display:inline-block;-webkit-animation:a 5s infinite ease-in-out;animation:a 5s infinite ease-in-out}.OwO .OwO-body{display:none;position:absolute;width:400px;background:#fff;border:1px solid #ddd;z-index:1;top:21px;border-radius:0 4px 4px 4px}.OwO .OwO-body .OwO-items{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:none;padding:10px;margin:0;overflow:scroll;font-size:0}.OwO .OwO-body .OwO-items .OwO-item{list-style-type:none;background:#f7f7f7;padding:5px 10px;border-radius:5px;display:inline-block;font-size:12px;line-height:14px;margin:0 10px 12px 0;cursor:pointer;-webkit-transition:.3s;transition:.3s}.OwO .OwO-body .OwO-items .OwO-item:hover{background:#eee;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);-webkit-animation:a 5s infinite ease-in-out;animation:a 5s infinite ease-in-out}.OwO .OwO-body .OwO-items-emoji .OwO-item{font-size:20px;line-height:19px}.OwO .OwO-body .OwO-items-image .OwO-item{max-width:calc(25% - 10px);box-sizing:border-box}.OwO .OwO-body .OwO-items-image .OwO-item img{max-width:100%}.OwO .OwO-body .OwO-items-show{display:block}.OwO .OwO-body .OwO-bar{width:100%;height:30px;border-top:1px solid #ddd;background:#fff;border-radius:0 0 4px 4px;color:#444}.OwO .OwO-body .OwO-bar .OwO-packages{margin:0;padding:0;font-size:0}.OwO .OwO-body .OwO-bar .OwO-packages li{list-style-type:none;display:inline-block;line-height:30px;font-size:14px;padding:0 10px;cursor:pointer;margin-right:3px}.OwO .OwO-body .OwO-bar .OwO-packages li:nth-child(1){border-radius:0 0 0 3px}.OwO .OwO-body .OwO-bar .OwO-packages li:hover{background:#eee}.OwO .OwO-body .OwO-bar .OwO-packages .OwO-package-active{background:#eee;-webkit-transition:.3s;transition:.3s}@-webkit-keyframes a{2%{-webkit-transform:translateY(1.5px) rotate(1.5deg);transform:translateY(1.5px) rotate(1.5deg)}4%{-webkit-transform:translateY(-1.5px) rotate(-.5deg);transform:translateY(-1.5px) rotate(-.5deg)}6%{-webkit-transform:translateY(1.5px) rotate(-1.5deg);transform:translateY(1.5px) rotate(-1.5deg)}8%{-webkit-transform:translateY(-1.5px) rotate(-1.5deg);transform:translateY(-1.5px) rotate(-1.5deg)}10%{-webkit-transform:translateY(2.5px) rotate(1.5deg);transform:translateY(2.5px) rotate(1.5deg)}12%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}14%{-webkit-transform:translateY(-1.5px) rotate(1.5deg);transform:translateY(-1.5px) rotate(1.5deg)}16%{-webkit-transform:translateY(-.5px) rotate(-1.5deg);transform:translateY(-.5px) rotate(-1.5deg)}18%{-webkit-transform:translateY(.5px) rotate(-1.5deg);transform:translateY(.5px) rotate(-1.5deg)}20%{-webkit-transform:translateY(-1.5px) rotate(2.5deg);transform:translateY(-1.5px) rotate(2.5deg)}22%{-webkit-transform:translateY(.5px) rotate(-1.5deg);transform:translateY(.5px) rotate(-1.5deg)}24%{-webkit-transform:translateY(1.5px) rotate(1.5deg);transform:translateY(1.5px) rotate(1.5deg)}26%{-webkit-transform:translateY(.5px) rotate(.5deg);transform:translateY(.5px) rotate(.5deg)}28%{-webkit-transform:translateY(.5px) rotate(1.5deg);transform:translateY(.5px) rotate(1.5deg)}30%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}32%,34%{-webkit-transform:translateY(1.5px) rotate(-.5deg);transform:translateY(1.5px) rotate(-.5deg)}36%{-webkit-transform:translateY(-1.5px) rotate(2.5deg);transform:translateY(-1.5px) rotate(2.5deg)}38%{-webkit-transform:translateY(1.5px) rotate(-1.5deg);transform:translateY(1.5px) rotate(-1.5deg)}40%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}42%{-webkit-transform:translateY(2.5px) rotate(-1.5deg);transform:translateY(2.5px) rotate(-1.5deg)}44%{-webkit-transform:translateY(1.5px) rotate(.5deg);transform:translateY(1.5px) rotate(.5deg)}46%{-webkit-transform:translateY(-1.5px) rotate(2.5deg);transform:translateY(-1.5px) rotate(2.5deg)}48%{-webkit-transform:translateY(-.5px) rotate(.5deg);transform:translateY(-.5px) rotate(.5deg)}50%{-webkit-transform:translateY(.5px) rotate(.5deg);transform:translateY(.5px) rotate(.5deg)}52%{-webkit-transform:translateY(2.5px) rotate(2.5deg);transform:translateY(2.5px) rotate(2.5deg)}54%{-webkit-transform:translateY(-1.5px) rotate(1.5deg);transform:translateY(-1.5px) rotate(1.5deg)}56%{-webkit-transform:translateY(2.5px) rotate(2.5deg);transform:translateY(2.5px) rotate(2.5deg)}58%{-webkit-transform:translateY(.5px) rotate(2.5deg);transform:translateY(.5px) rotate(2.5deg)}60%{-webkit-transform:translateY(2.5px) rotate(2.5deg);transform:translateY(2.5px) rotate(2.5deg)}62%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}64%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}66%{-webkit-transform:translateY(1.5px) rotate(-.5deg);transform:translateY(1.5px) rotate(-.5deg)}68%{-webkit-transform:translateY(-1.5px) rotate(-.5deg);transform:translateY(-1.5px) rotate(-.5deg)}70%{-webkit-transform:translateY(1.5px) rotate(.5deg);transform:translateY(1.5px) rotate(.5deg)}72%{-webkit-transform:translateY(2.5px) rotate(1.5deg);transform:translateY(2.5px) rotate(1.5deg)}74%{-webkit-transform:translateY(-.5px) rotate(.5deg);transform:translateY(-.5px) rotate(.5deg)}76%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}78%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}80%{-webkit-transform:translateY(1.5px) rotate(1.5deg);transform:translateY(1.5px) rotate(1.5deg)}82%{-webkit-transform:translateY(-.5px) rotate(.5deg);transform:translateY(-.5px) rotate(.5deg)}84%{-webkit-transform:translateY(1.5px) rotate(2.5deg);transform:translateY(1.5px) rotate(2.5deg)}86%{-webkit-transform:translateY(-1.5px) rotate(-1.5deg);transform:translateY(-1.5px) rotate(-1.5deg)}88%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}90%{-webkit-transform:translateY(2.5px) rotate(-.5deg);transform:translateY(2.5px) rotate(-.5deg)}92%{-webkit-transform:translateY(.5px) rotate(-.5deg);transform:translateY(.5px) rotate(-.5deg)}94%{-webkit-transform:translateY(2.5px) rotate(.5deg);transform:translateY(2.5px) rotate(.5deg)}96%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}98%{-webkit-transform:translateY(-1.5px) rotate(-.5deg);transform:translateY(-1.5px) rotate(-.5deg)}0%,to{-webkit-transform:translate(0) rotate(0deg);transform:translate(0) rotate(0deg)}}@keyframes a{2%{-webkit-transform:translateY(1.5px) rotate(1.5deg);transform:translateY(1.5px) rotate(1.5deg)}4%{-webkit-transform:translateY(-1.5px) rotate(-.5deg);transform:translateY(-1.5px) rotate(-.5deg)}6%{-webkit-transform:translateY(1.5px) rotate(-1.5deg);transform:translateY(1.5px) rotate(-1.5deg)}8%{-webkit-transform:translateY(-1.5px) rotate(-1.5deg);transform:translateY(-1.5px) rotate(-1.5deg)}10%{-webkit-transform:translateY(2.5px) rotate(1.5deg);transform:translateY(2.5px) rotate(1.5deg)}12%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}14%{-webkit-transform:translateY(-1.5px) rotate(1.5deg);transform:translateY(-1.5px) rotate(1.5deg)}16%{-webkit-transform:translateY(-.5px) rotate(-1.5deg);transform:translateY(-.5px) rotate(-1.5deg)}18%{-webkit-transform:translateY(.5px) rotate(-1.5deg);transform:translateY(.5px) rotate(-1.5deg)}20%{-webkit-transform:translateY(-1.5px) rotate(2.5deg);transform:translateY(-1.5px) rotate(2.5deg)}22%{-webkit-transform:translateY(.5px) rotate(-1.5deg);transform:translateY(.5px) rotate(-1.5deg)}24%{-webkit-transform:translateY(1.5px) rotate(1.5deg);transform:translateY(1.5px) rotate(1.5deg)}26%{-webkit-transform:translateY(.5px) rotate(.5deg);transform:translateY(.5px) rotate(.5deg)}28%{-webkit-transform:translateY(.5px) rotate(1.5deg);transform:translateY(.5px) rotate(1.5deg)}30%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}32%,34%{-webkit-transform:translateY(1.5px) rotate(-.5deg);transform:translateY(1.5px) rotate(-.5deg)}36%{-webkit-transform:translateY(-1.5px) rotate(2.5deg);transform:translateY(-1.5px) rotate(2.5deg)}38%{-webkit-transform:translateY(1.5px) rotate(-1.5deg);transform:translateY(1.5px) rotate(-1.5deg)}40%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}42%{-webkit-transform:translateY(2.5px) rotate(-1.5deg);transform:translateY(2.5px) rotate(-1.5deg)}44%{-webkit-transform:translateY(1.5px) rotate(.5deg);transform:translateY(1.5px) rotate(.5deg)}46%{-webkit-transform:translateY(-1.5px) rotate(2.5deg);transform:translateY(-1.5px) rotate(2.5deg)}48%{-webkit-transform:translateY(-.5px) rotate(.5deg);transform:translateY(-.5px) rotate(.5deg)}50%{-webkit-transform:translateY(.5px) rotate(.5deg);transform:translateY(.5px) rotate(.5deg)}52%{-webkit-transform:translateY(2.5px) rotate(2.5deg);transform:translateY(2.5px) rotate(2.5deg)}54%{-webkit-transform:translateY(-1.5px) rotate(1.5deg);transform:translateY(-1.5px) rotate(1.5deg)}56%{-webkit-transform:translateY(2.5px) rotate(2.5deg);transform:translateY(2.5px) rotate(2.5deg)}58%{-webkit-transform:translateY(.5px) rotate(2.5deg);transform:translateY(.5px) rotate(2.5deg)}60%{-webkit-transform:translateY(2.5px) rotate(2.5deg);transform:translateY(2.5px) rotate(2.5deg)}62%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}64%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}66%{-webkit-transform:translateY(1.5px) rotate(-.5deg);transform:translateY(1.5px) rotate(-.5deg)}68%{-webkit-transform:translateY(-1.5px) rotate(-.5deg);transform:translateY(-1.5px) rotate(-.5deg)}70%{-webkit-transform:translateY(1.5px) rotate(.5deg);transform:translateY(1.5px) rotate(.5deg)}72%{-webkit-transform:translateY(2.5px) rotate(1.5deg);transform:translateY(2.5px) rotate(1.5deg)}74%{-webkit-transform:translateY(-.5px) rotate(.5deg);transform:translateY(-.5px) rotate(.5deg)}76%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}78%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}80%{-webkit-transform:translateY(1.5px) rotate(1.5deg);transform:translateY(1.5px) rotate(1.5deg)}82%{-webkit-transform:translateY(-.5px) rotate(.5deg);transform:translateY(-.5px) rotate(.5deg)}84%{-webkit-transform:translateY(1.5px) rotate(2.5deg);transform:translateY(1.5px) rotate(2.5deg)}86%{-webkit-transform:translateY(-1.5px) rotate(-1.5deg);transform:translateY(-1.5px) rotate(-1.5deg)}88%{-webkit-transform:translateY(-.5px) rotate(2.5deg);transform:translateY(-.5px) rotate(2.5deg)}90%{-webkit-transform:translateY(2.5px) rotate(-.5deg);transform:translateY(2.5px) rotate(-.5deg)}92%{-webkit-transform:translateY(.5px) rotate(-.5deg);transform:translateY(.5px) rotate(-.5deg)}94%{-webkit-transform:translateY(2.5px) rotate(.5deg);transform:translateY(2.5px) rotate(.5deg)}96%{-webkit-transform:translateY(-.5px) rotate(1.5deg);transform:translateY(-.5px) rotate(1.5deg)}98%{-webkit-transform:translateY(-1.5px) rotate(-.5deg);transform:translateY(-1.5px) rotate(-.5deg)}0%,to{-webkit-transform:translate(0) rotate(0deg);transform:translate(0) rotate(0deg)}} -------------------------------------------------------------------------------- /libs/OwO/OwO.min.js: -------------------------------------------------------------------------------- 1 | "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,t){for(var a=0;a=200&&i.status<300||304===i.status?(a.odata=JSON.parse(i.responseText),a.init(t)):console.log("OwO data request was unsuccessful: "+i.status))},i.open("get",t.api,!0),i.send(null)}return _createClass(e,[{key:"init",value:function(e){var t=this;this.area=e.target,this.packages=Object.keys(this.odata);for(var a='\n \n
    ',s=0;s';for(var n=this.odata[this.packages[s]].container,i=0;i'+n[i].icon+"";a+="\n "}a+='\n
    \n
      ';for(var o=0;o"+this.packages[o]+"";a+="\n
    \n
    \n
    \n ",this.container.innerHTML=a,this.logo=this.container.getElementsByClassName("OwO-logo")[0],this.logo.addEventListener("click",function(){t.toggle()}),this.container.getElementsByClassName("OwO-body")[0].addEventListener("click",function(e){var a=null;if(e.target.classList.contains("OwO-item")?a=e.target:e.target.parentNode.classList.contains("OwO-item")&&(a=e.target.parentNode),a){var s=t.area.selectionEnd,n=t.area.value;t.area.value=n.slice(0,s)+a.innerHTML+n.slice(s),t.area.focus(),t.toggle()}}),this.packagesEle=this.container.getElementsByClassName("OwO-packages")[0];for(var c=function(e){!function(a){t.packagesEle.children[e].addEventListener("click",function(){t.tab(a)})}(e)},l=0;l {\n class OwO {\n constructor(option) {\n const defaultOption = {\n logo: 'OwO表情',\n container: document.getElementsByClassName('OwO')[0],\n target: document.getElementsByTagName('textarea')[0],\n position: 'down',\n width: '100%',\n maxHeight: '250px',\n api: 'https://api.anotherhome.net/OwO/OwO.json'\n };\n for (let defaultKey in defaultOption) {\n if (defaultOption.hasOwnProperty(defaultKey) && !option.hasOwnProperty(defaultKey)) {\n option[defaultKey] = defaultOption[defaultKey];\n }\n }\n this.container = option.container;\n this.target = option.target;\n if (option.position === 'up') {\n this.container.classList.add('OwO-up');\n }\n\n const xhr = new XMLHttpRequest();\n xhr.onreadystatechange = () => {\n if (xhr.readyState === 4) {\n if (xhr.status >= 200 && xhr.status < 300 || xhr.status === 304) {\n this.odata = JSON.parse(xhr.responseText);\n this.init(option);\n }\n else {\n console.log('OwO data request was unsuccessful: ' + xhr.status);\n }\n }\n };\n xhr.open('get', option.api, true);\n xhr.send(null);\n }\n\n init(option) {\n this.area = option.target;\n this.packages = Object.keys(this.odata);\n\n // fill in HTML\n let html = `\n
    ${option.logo}
    \n
    `;\n \n for (let i = 0; i < this.packages.length; i++) {\n\n html += `\n
      `;\n\n let opackage = this.odata[this.packages[i]].container;\n for (let i = 0; i < opackage.length; i++) {\n\n html += `\n
    • ${opackage[i].icon}
    • `;\n\n }\n\n html += `\n
    `;\n }\n \n html += `\n
    \n
      `;\n\n for (let i = 0; i < this.packages.length; i++) {\n\n html += `\n
    • ${this.packages[i]}
    • `\n\n }\n\n html += `\n
    \n
    \n
    \n `;\n this.container.innerHTML = html;\n\n // bind event\n this.logo = this.container.getElementsByClassName('OwO-logo')[0];\n this.logo.addEventListener('click', () => {\n this.toggle();\n });\n\n this.container.getElementsByClassName('OwO-body')[0].addEventListener('click', (e)=> {\n let target = null;\n if (e.target.classList.contains('OwO-item')) {\n target = e.target;\n }\n else if (e.target.parentNode.classList.contains('OwO-item')) {\n target = e.target.parentNode;\n }\n if (target) {\n const cursorPos = this.area.selectionEnd;\n let areaValue = this.area.value;\n this.area.value = areaValue.slice(0, cursorPos) + target.innerHTML + areaValue.slice(cursorPos);\n this.area.focus();\n this.toggle();\n }\n });\n\n this.packagesEle = this.container.getElementsByClassName('OwO-packages')[0];\n for (let i = 0; i < this.packagesEle.children.length; i++) {\n ((index) =>{\n this.packagesEle.children[i].addEventListener('click', () => {\n this.tab(index);\n });\n })(i);\n }\n\n this.tab(0);\n }\n\n toggle() {\n if (this.container.classList.contains('OwO-open')) {\n this.container.classList.remove('OwO-open');\n }\n else {\n this.container.classList.add('OwO-open');\n }\n }\n\n tab(index) {\n const itemsShow = this.container.getElementsByClassName('OwO-items-show')[0];\n if (itemsShow) {\n itemsShow.classList.remove('OwO-items-show');\n }\n this.container.getElementsByClassName('OwO-items')[index].classList.add('OwO-items-show');\n\n const packageActive = this.container.getElementsByClassName('OwO-package-active')[0];\n if (packageActive) {\n packageActive.classList.remove('OwO-package-active');\n }\n this.packagesEle.getElementsByTagName('li')[index].classList.add('OwO-package-active');\n }\n }\n if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\n module.exports = OwO;\n }\n else {\n window.OwO = OwO;\n }\n})();"],"sourceRoot":"/source/"} -------------------------------------------------------------------------------- /libs/ParserDom/ParserDom.php: -------------------------------------------------------------------------------- 1 | 9 | * @date : 2013-6-10 10 | */ 11 | class ParserDom { 12 | /** 13 | * @var \DOMNode 14 | */ 15 | public $node; 16 | /** 17 | * @var array 18 | */ 19 | private $_lFind = []; 20 | /** 21 | * @param \DOMNode|string $node 22 | * @throws \Exception 23 | */ 24 | public function __construct($node = NULL) { 25 | if ($node !== NULL) { 26 | if ($node instanceof \DOMNode) { 27 | $this->node = $node; 28 | } else { 29 | $dom = new \DOMDocument(); 30 | $dom->preserveWhiteSpace = FALSE; 31 | $dom->strictErrorChecking = FALSE; 32 | if (@$dom->loadHTML($node)) { 33 | $this->node = $dom; 34 | } else { 35 | throw new \Exception('load html error'); 36 | } 37 | } 38 | } 39 | } 40 | /** 41 | * 初始化的时候可以不用传入html,后面可以多次使用 42 | * @param null $node 43 | * @throws \Exception 44 | */ 45 | public function load($node = NULL) { 46 | if ($node instanceof \DOMNode) { 47 | $this->node = $node; 48 | } else { 49 | $dom = new \DOMDocument(); 50 | $dom->preserveWhiteSpace = FALSE; 51 | $dom->strictErrorChecking = FALSE; 52 | if (@$dom->loadHTML($node)) { 53 | $this->node = $dom; 54 | } else { 55 | throw new \Exception('load html error'); 56 | } 57 | } 58 | } 59 | /** 60 | * @codeCoverageIgnore 61 | * @param string $name 62 | * @return mixed 63 | */ 64 | function __get($name) { 65 | switch ($name) { 66 | case 'outertext': 67 | return $this->outerHtml(); 68 | case 'innertext': 69 | return $this->innerHtml(); 70 | case 'plaintext': 71 | return $this->getPlainText(); 72 | case 'href': 73 | return $this->getAttr("href"); 74 | case 'src': 75 | return $this->getAttr("src"); 76 | default: 77 | return NULL; 78 | } 79 | } 80 | /** 81 | * 深度优先查询 82 | * 83 | * @param string $selector 84 | * @param number $idx 找第几个,从0开始计算,null 表示都返回, 负数表示倒数第几个 85 | * @return self|self[] 86 | */ 87 | public function find($selector, $idx = NULL) { 88 | if (empty($this->node->childNodes)) { 89 | return FALSE; 90 | } 91 | $selectors = $this->parse_selector($selector); 92 | if (($count = count($selectors)) === 0) { 93 | return FALSE; 94 | } 95 | for ($c = 0; $c < $count; $c++) { 96 | if (($level = count($selectors [$c])) === 0) { 97 | return FALSE; 98 | } 99 | $this->search($this->node, $idx, $selectors [$c], $level); 100 | } 101 | $found = $this->_lFind; 102 | $this->_lFind = []; 103 | if ($idx !== NULL) { 104 | if ($idx < 0) { 105 | $idx = count($found) + $idx; 106 | } 107 | if (isset($found[$idx])) { 108 | return $found[$idx]; 109 | } else { 110 | return FALSE; 111 | } 112 | } 113 | return $found; 114 | } 115 | /** 116 | * 返回文本信息 117 | * 118 | * @return string 119 | */ 120 | public function getPlainText() { 121 | return $this->text($this->node); 122 | } 123 | /** 124 | * 获取innerHtml 125 | * @return string 126 | */ 127 | public function innerHtml() { 128 | $innerHTML = ""; 129 | $children = $this->node->childNodes; 130 | foreach ($children as $child) { 131 | $innerHTML .= $this->node->ownerDocument->saveHTML($child) ?: ''; 132 | } 133 | return $innerHTML; 134 | } 135 | /** 136 | * 获取outerHtml 137 | * @return string|bool 138 | */ 139 | public function outerHtml() { 140 | $doc = new \DOMDocument(); 141 | $doc->appendChild($doc->importNode($this->node, TRUE)); 142 | return $doc->saveHTML($doc); 143 | } 144 | /** 145 | * 获取html的元属值 146 | * 147 | * @param string $name 148 | * @return string|null 149 | */ 150 | public function getAttr($name) { 151 | $oAttr = $this->node->attributes->getNamedItem($name); 152 | if (isset($oAttr)) { 153 | return $oAttr->nodeValue; 154 | } 155 | return NULL; 156 | } 157 | /** 158 | * 匹配 159 | * 160 | * @param string $exp 161 | * @param string $pattern 162 | * @param string $value 163 | * @return boolean|number 164 | */ 165 | private function match($exp, $pattern, $value) { 166 | $pattern = strtolower($pattern); 167 | $value = strtolower($value); 168 | switch ($exp) { 169 | case '=' : 170 | return ($value === $pattern); 171 | case '!=' : 172 | return ($value !== $pattern); 173 | case '^=' : 174 | return preg_match("/^" . preg_quote($pattern, '/') . "/", $value); 175 | case '$=' : 176 | return preg_match("/" . preg_quote($pattern, '/') . "$/", $value); 177 | case '*=' : 178 | if ($pattern [0] == '/') { 179 | return preg_match($pattern, $value); 180 | } 181 | return preg_match("/" . $pattern . "/i", $value); 182 | } 183 | return FALSE; 184 | } 185 | /** 186 | * 分析查询语句 187 | * 188 | * @param string $selector_string 189 | * @return array 190 | */ 191 | private function parse_selector($selector_string) { 192 | $pattern = '/([\w-:\*]*)(?:\#([\w-]+)|\.([\w-]+))?(?:\[@?(!?[\w-:]+)(?:([!*^$]?=)["\']?(.*?)["\']?)?\])?([\/, ]+)/is'; 193 | preg_match_all($pattern, trim($selector_string) . ' ', $matches, PREG_SET_ORDER); 194 | $selectors = []; 195 | $result = []; 196 | foreach ($matches as $m) { 197 | $m [0] = trim($m [0]); 198 | if ($m [0] === '' || $m [0] === '/' || $m [0] === '//') 199 | continue; 200 | if ($m [1] === 'tbody') 201 | continue; 202 | list ($tag, $key, $val, $exp, $no_key) = [$m [1], NULL, NULL, '=', FALSE]; 203 | if (!empty ($m [2])) { 204 | $key = 'id'; 205 | $val = $m [2]; 206 | } 207 | if (!empty ($m [3])) { 208 | $key = 'class'; 209 | $val = $m [3]; 210 | } 211 | if (!empty ($m [4])) { 212 | $key = $m [4]; 213 | } 214 | if (!empty ($m [5])) { 215 | $exp = $m [5]; 216 | } 217 | if (!empty ($m [6])) { 218 | $val = $m [6]; 219 | } 220 | // convert to lowercase 221 | $tag = strtolower($tag); 222 | $key = strtolower($key); 223 | // elements that do NOT have the specified attribute 224 | if (isset ($key [0]) && $key [0] === '!') { 225 | $key = substr($key, 1); 226 | $no_key = TRUE; 227 | } 228 | $result [] = [$tag, $key, $val, $exp, $no_key]; 229 | if (trim($m [7]) === ',') { 230 | $selectors [] = $result; 231 | $result = []; 232 | } 233 | } 234 | if (count($result) > 0) { 235 | $selectors [] = $result; 236 | } 237 | return $selectors; 238 | } 239 | /** 240 | * 深度查询 241 | * 242 | * @param \DOMNode $search 243 | * @param $idx 244 | * @param $selectors 245 | * @param $level 246 | * @param int $search_level 247 | * @return bool 248 | */ 249 | private function search(&$search, $idx, $selectors, $level, $search_level = 0) { 250 | if ($search_level >= $level) { 251 | $rs = $this->seek($search, $selectors, $level - 1); 252 | if ($rs !== FALSE && $idx !== NULL) { 253 | if ($idx == count($this->_lFind)) { 254 | $this->_lFind[] = new self($rs); 255 | return TRUE; 256 | } else { 257 | $this->_lFind[] = new self($rs); 258 | } 259 | } elseif ($rs !== FALSE) { 260 | $this->_lFind[] = new self($rs); 261 | } 262 | } 263 | if (!empty($search->childNodes)) { 264 | foreach ($search->childNodes as $val) { 265 | if ($this->search($val, $idx, $selectors, $level, $search_level + 1)) { 266 | return TRUE; 267 | } 268 | } 269 | } 270 | return FALSE; 271 | } 272 | /** 273 | * 获取tidy_node文本 274 | * 275 | * @param \DOMNode $node 276 | * @return string 277 | */ 278 | private function text(&$node) { 279 | return $node->textContent; 280 | } 281 | /** 282 | * 匹配节点,由于采取的倒序查找,所以时间复杂度为n+m*l n为总节点数,m为匹配最后一个规则的个数,l为规则的深度, 283 | * @codeCoverageIgnore 284 | * @param \DOMNode $search 285 | * @param array $selectors 286 | * @param int $current 287 | * @return boolean|\DOMNode 288 | */ 289 | private function seek($search, $selectors, $current) { 290 | if (!($search instanceof \DOMElement)) { 291 | return FALSE; 292 | } 293 | list ($tag, $key, $val, $exp, $no_key) = $selectors [$current]; 294 | $pass = TRUE; 295 | if ($tag === '*' && !$key) { 296 | exit('tag为*时,key不能为空'); 297 | } 298 | if ($tag && $tag != $search->tagName && $tag !== '*') { 299 | $pass = FALSE; 300 | } 301 | if ($pass && $key) { 302 | if ($no_key) { 303 | if ($search->hasAttribute($key)) { 304 | $pass = FALSE; 305 | } 306 | } else { 307 | if ($key != "plaintext" && !$search->hasAttribute($key)) { 308 | $pass = FALSE; 309 | } 310 | } 311 | } 312 | if ($pass && $key && $val && $val !== '*') { 313 | if ($key == "plaintext") { 314 | $nodeKeyValue = $this->text($search); 315 | } else { 316 | $nodeKeyValue = $search->getAttribute($key); 317 | } 318 | $check = $this->match($exp, $val, $nodeKeyValue); 319 | if (!$check && strcasecmp($key, 'class') === 0) { 320 | foreach (explode(' ', $search->getAttribute($key)) as $k) { 321 | if (!empty ($k)) { 322 | $check = $this->match($exp, $val, $k); 323 | if ($check) { 324 | break; 325 | } 326 | } 327 | } 328 | } 329 | if (!$check) { 330 | $pass = FALSE; 331 | } 332 | } 333 | if ($pass) { 334 | $current--; 335 | if ($current < 0) { 336 | return $search; 337 | } elseif ($this->seek($this->getParent($search), $selectors, $current)) { 338 | return $search; 339 | } else { 340 | return FALSE; 341 | } 342 | } else { 343 | return FALSE; 344 | } 345 | } 346 | /** 347 | * 获取父亲节点 348 | * 349 | * @param \DOMNode $node 350 | * @return \DOMNode 351 | */ 352 | private function getParent($node) { 353 | return $node->parentNode; 354 | } 355 | } -------------------------------------------------------------------------------- /libs/canvas-nest/canvas-nest.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2016 hustcc 3 | * License: MIT 4 | * Version: v1.0.1 5 | * GitHub: https://github.com/hustcc/canvas-nest.js 6 | **/ 7 | !function(){function n(n,t,e){return n.getAttribute(t)||e}function t(n){return document.getElementsByTagName(n)}function e(){var e=t("script"),o=e.length,i=e[o-1];return{l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)}}function o(){a=u.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=u.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){x.clearRect(0,0,a,d);var n,t,e,o,u,l,y,h;w.forEach(function(i,r){for(t=r+1;tMath.abs(o)&&Math.abs(y)*Math.abs(o)>0?-1:1)*l/n.max*2*i.xa,i.yd=(Math.abs(h)>Math.abs(u)&&Math.abs(h)*Math.abs(u)>0?-1:1)*l/n.max*2*i.ya):(i.xd=0,i.yd=0)),la||i.x<0?-1:1,i.ya*=i.y>d||i.y<0?-1:1,x.fillRect(i.x-.5,i.y-.5,1,1)}),r(i)}console.log("\n %c Typecho Clover Theme %c https://github.com/idealclover/clover \n","color: #EEEEEE; background: #2E8B57; padding:5px 0;","background: #2E8B57; padding:5px 0;");var a,d,c,u=document.createElement("canvas"),m=e(),l="c_n"+m.l,x=u.getContext("2d"),r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)},y=Math.random,s={x:null,y:null,max:2e4};u.id=l,u.style.cssText="position:fixed;top:0;left:0;z-index:"+m.z+";opacity:"+m.o,t("body")[0].appendChild(u),o(),window.onresize=o,window.onmousemove=function(n){n=n||window.event,s.x=n.clientX,s.y=n.clientY},window.onmouseout=function(){s.x=null,s.y=null};for(var h=Math.ceil(m.n*a*d/5e5),w=[],f=0;h>f;f++){var b=y()*a,g=y()*d,M=2*y()-1,v=2*y()-1;w.push({x:b,y:g,xa:M,ya:v,xd:0,yd:0,max:6e3})}c=w.concat([s]),setTimeout(function(){r(i)},100)}(); 8 | -------------------------------------------------------------------------------- /libs/random-homepage/head.js: -------------------------------------------------------------------------------- 1 | (function(modules) { // webpackBootstrap 2 | // The module cache 3 | var installedModules = {}; 4 | 5 | // The require function 6 | function __webpack_require__(moduleId) { 7 | 8 | // Check if module is in cache 9 | if(installedModules[moduleId]) 10 | return installedModules[moduleId].exports; 11 | 12 | // Create a new module (and put it into the cache) 13 | var module = installedModules[moduleId] = { 14 | exports: {}, 15 | id: moduleId, 16 | loaded: false 17 | }; 18 | 19 | // Execute the module function 20 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | 22 | // Flag the module as loaded 23 | module.loaded = true; 24 | 25 | // Return the exports of the module 26 | return module.exports; 27 | } 28 | 29 | 30 | // expose the modules object (__webpack_modules__) 31 | __webpack_require__.m = modules; 32 | 33 | // expose the module cache 34 | __webpack_require__.c = installedModules; 35 | 36 | // __webpack_public_path__ 37 | __webpack_require__.p = ""; 38 | 39 | // Load entry module and return exports 40 | return __webpack_require__(0); 41 | }) 42 | /************************************************************************/ 43 | ([ 44 | /* 0 */ 45 | /***/ function(module, exports, __webpack_require__) { 46 | 47 | 'use strict'; 48 | 49 | var _gen = __webpack_require__(1); 50 | 51 | var _gen2 = _interopRequireDefault(_gen); 52 | 53 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 54 | 55 | var isRunning = false; 56 | 57 | var init = function init() { 58 | 59 | var scripts = document.getElementsByTagName("script"), 60 | script_len = scripts.length, 61 | script = scripts[script_len - 1]; 62 | var string = script.getAttribute("string") || "Stay simple, stay naive."; 63 | redirectPosts(); 64 | listen(); 65 | play(string); 66 | }; 67 | 68 | function redirectPosts() { 69 | var capture = window.location.search.match(/\?post=(\d+)/); 70 | var postid = capture ? capture[1] : null; 71 | if (postid) { 72 | window.location.href = 'https://github.com/livoras/blog/issues/' + postid; 73 | } 74 | } 75 | 76 | function listen() { 77 | document.getElementById('head').addEventListener('click', function () { 78 | if (isRunning) return; 79 | play(); 80 | }); 81 | } 82 | 83 | function play(string) { 84 | var head = document.getElementById('head'); 85 | var history = (0, _gen2.default)(string).history; 86 | isRunning = true; 87 | var i = 0; 88 | history.forEach(function (text, i) { 89 | setTimeout(function () { 90 | head.innerText = text; 91 | if (++i === history.length) isRunning = false; 92 | }, i * 30); 93 | }); 94 | } 95 | 96 | init(); 97 | 98 | /***/ }, 99 | /* 1 */ 100 | /***/ function(module, exports, __webpack_require__) { 101 | 102 | 'use strict'; 103 | 104 | /** 105 | * Using Genetic Algorithm to generate lots of random strings 106 | * and make them evolve towards the target string. 107 | * 108 | */ 109 | 110 | var Genea = __webpack_require__(2); 111 | var alphabetArr = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ., '.split(''); 112 | var alphabet = function () { 113 | var alphabet = {}; 114 | alphabetArr.forEach(function (ch, i) { 115 | alphabet[ch] = i; 116 | }); 117 | return alphabet; 118 | }(); 119 | 120 | function getTargetStr(targetStr) { 121 | var binaryStr = ''; 122 | for (var i = 0, len = targetStr.length; i < len; i++) { 123 | var ch = targetStr[i]; 124 | var chIndex = alphabet[ch]; 125 | binaryStr += paddingWith0(Number(chIndex).toString(2)); 126 | } 127 | return binaryStr; 128 | } 129 | 130 | function paddingWith0(num) { 131 | while (num.length < 6) { 132 | num = '0' + num; 133 | } 134 | return num; 135 | } 136 | 137 | function run(str) { 138 | var tar = getTargetStr(str); 139 | var ga = new Genea({ 140 | geneLength: tar.length, 141 | mutateProbability: 0.5, 142 | doneFitness: 1, 143 | populationSize: 20, 144 | generationsSize: 400, 145 | getFitness: function getFitness(gene) { 146 | var count = 0; 147 | for (var i = 0, len = gene.length; i < len; i++) { 148 | if (gene[i] === tar[i]) count++; 149 | } 150 | var likeness = count / tar.length; 151 | return likeness; 152 | }, 153 | onGeneration: function onGeneration(generation, genes) { 154 | var max = 0, 155 | index = 0; 156 | this.fitnesses.forEach(function (fitness, i) { 157 | if (fitness > max) { 158 | max = fitness; 159 | index = i; 160 | } 161 | }); 162 | this.history.push(toChars(genes[index])); 163 | } 164 | }); 165 | 166 | ga.history = []; 167 | ga.start(); 168 | return ga; 169 | } 170 | 171 | function toChars(gene) { 172 | var str = ''; 173 | while (gene.length) { 174 | var ch = '00' + gene.substr(0, 6); 175 | gene = gene.substr(6); 176 | var chIndex = parseInt(ch, 2); 177 | if (chIndex >= alphabetArr.length) { 178 | chIndex = Math.floor(Math.random() * (alphabetArr.length - 1)); 179 | } 180 | if (!alphabetArr[chIndex]) console.log(chIndex, parseInt(ch, 2)); 181 | str += alphabetArr[chIndex]; 182 | } 183 | return str; 184 | } 185 | 186 | module.exports = run; 187 | 188 | /***/ }, 189 | /* 2 */ 190 | /***/ function(module, exports) { 191 | 192 | 'use strict'; 193 | 194 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); 195 | 196 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 197 | 198 | var Genea = function () { 199 | function Genea(config) { 200 | _classCallCheck(this, Genea); 201 | 202 | this.currentGeneration = 0; 203 | this.populations = []; 204 | this.fitnesses = []; 205 | 206 | this.mutateProbability = config.mutateProbability || 0.5; // 0 ~ 1 207 | this.generationsSize = config.generationsSize || 100; 208 | this.populationSize = config.populationSize || 100; 209 | this.doneFitness = config.doneFitness || 1; // 0 ~ 1 210 | 211 | this.geneLength = config.geneLength; 212 | this.getFitness = config.getFitness; 213 | 214 | this.outOfGenerationsSize = config.outOfGenerationsSize || this.outOfGenerationsSize; 215 | this.onGeneration = config.onGeneration || this.onGeneration; 216 | this.done = config.done || this.done; 217 | } 218 | 219 | _createClass(Genea, [{ 220 | key: "start", 221 | value: function start() { 222 | this.initPopulation(); 223 | this.makeFitnesses(); 224 | this.select(); 225 | } 226 | }, { 227 | key: "initPopulation", 228 | value: function initPopulation() { 229 | this.currentGeneration = 1; 230 | this.populations = []; 231 | for (var i = 0, len = this.populationSize; i < len; i++) { 232 | var gene = getRandomGene(this.geneLength); 233 | this.populations.push(gene); 234 | } 235 | this.onGeneration(this.currentGeneration, this.populations); 236 | } 237 | }, { 238 | key: "select", 239 | value: function select() { 240 | if (this.currentGeneration >= this.generationsSize) { 241 | return this.outOfGenerationsSize(this.populations, this.fitnesses); 242 | } 243 | var matches = this.getMatches(); 244 | if (matches.length > 0) return this.done(matches); 245 | this.generateNextGeneration(); 246 | } 247 | }, { 248 | key: "makeFitnesses", 249 | value: function makeFitnesses() { 250 | var _this = this; 251 | 252 | this.fitnesses = []; 253 | this.totalFitness = 0; 254 | this.populations.forEach(function (individual, i) { 255 | var fitness = _this.getFitness(individual, _this.populations); 256 | _this.fitnesses[i] = fitness; 257 | _this.totalFitness += fitness; 258 | }); 259 | } 260 | }, { 261 | key: "getMatches", 262 | value: function getMatches() { 263 | var _this2 = this; 264 | 265 | var bests = []; 266 | this.populations.forEach(function (individual, i) { 267 | var fitness = _this2.fitnesses[i]; 268 | if (fitness >= _this2.doneFitness) { 269 | bests.push({ 270 | gene: individual, 271 | fitness: fitness, 272 | pos: i 273 | }); 274 | } 275 | }); 276 | return bests; 277 | } 278 | }, { 279 | key: "generateNextGeneration", 280 | value: function generateNextGeneration() { 281 | this.currentGeneration++; 282 | var oldPopulations = this.populations; 283 | var newPopulations = []; 284 | for (var i = 0, len = oldPopulations.length; i < len; i++) { 285 | var father = this.rotate(); 286 | var mother = this.rotate(); 287 | var child = this.crossOver(father, mother); 288 | child = this.mutate(child); 289 | newPopulations.push(child); 290 | } 291 | this.populations = newPopulations; 292 | this.makeFitnesses(); 293 | this.onGeneration(this.currentGeneration, this.populations); 294 | this.select(); 295 | } 296 | }, { 297 | key: "crossOver", 298 | value: function crossOver(father, mother) { 299 | var pos = Math.floor(father.length * Math.random()); 300 | var child1 = father.substring(0, pos) + mother.substring(pos); 301 | var child2 = mother.substring(0, pos) + father.substring(pos); 302 | return this.getFitness(child1) > this.getFitness(child2) ? child1 : child2; 303 | } 304 | }, { 305 | key: "mutate", 306 | value: function mutate(child) { 307 | var mutateProbability = Math.random(); 308 | if (mutateProbability < this.mutateProbability) return child; 309 | var pos = Math.floor(Math.random() * this.geneLength); 310 | var arr = child.split(""); 311 | arr[pos] = +child[pos] ^ 1; 312 | return arr.join(""); 313 | } 314 | }, { 315 | key: "rotate", 316 | value: function rotate() { 317 | var pos = Math.random(); // let's roll! 318 | var soFar = 0; 319 | for (var i = 0, len = this.fitnesses.length; i < len; i++) { 320 | var fitness = this.fitnesses[i]; 321 | soFar += fitness; 322 | if (soFar / this.totalFitness >= pos) { 323 | return this.populations[i]; 324 | } 325 | } 326 | } 327 | }, { 328 | key: "done", 329 | value: function done() {} 330 | }, { 331 | key: "onGeneration", 332 | value: function onGeneration() {} 333 | }, { 334 | key: "outOfGenerationsSize", 335 | value: function outOfGenerationsSize() {} 336 | }]); 337 | 338 | return Genea; 339 | }(); 340 | 341 | function getRandomGene(len) { 342 | var gene = ""; 343 | for (var i = 0; i < len; i++) { 344 | gene += Math.floor(Math.random() * 100) % 2 === 0 ? "1" : "0"; 345 | } 346 | return gene; 347 | } 348 | 349 | module.exports = Genea; 350 | 351 | /***/ } 352 | ]); 353 | -------------------------------------------------------------------------------- /libs/random-homepage/title.js: -------------------------------------------------------------------------------- 1 | (function(modules) { // webpackBootstrap 2 | // The module cache 3 | var installedModules = {}; 4 | 5 | // The require function 6 | function __webpack_require__(moduleId) { 7 | 8 | // Check if module is in cache 9 | if(installedModules[moduleId]) 10 | return installedModules[moduleId].exports; 11 | 12 | // Create a new module (and put it into the cache) 13 | var module = installedModules[moduleId] = { 14 | exports: {}, 15 | id: moduleId, 16 | loaded: false 17 | }; 18 | 19 | // Execute the module function 20 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21 | 22 | // Flag the module as loaded 23 | module.loaded = true; 24 | 25 | // Return the exports of the module 26 | return module.exports; 27 | } 28 | 29 | 30 | // expose the modules object (__webpack_modules__) 31 | __webpack_require__.m = modules; 32 | 33 | // expose the module cache 34 | __webpack_require__.c = installedModules; 35 | 36 | // __webpack_public_path__ 37 | __webpack_require__.p = ""; 38 | 39 | // Load entry module and return exports 40 | return __webpack_require__(0); 41 | }) 42 | /************************************************************************/ 43 | ([ 44 | /* 0 */ 45 | /***/ function(module, exports, __webpack_require__) { 46 | 47 | 'use strict'; 48 | 49 | var _gen = __webpack_require__(1); 50 | 51 | var _gen2 = _interopRequireDefault(_gen); 52 | 53 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 54 | 55 | var isRunning = false; 56 | 57 | var init = function init() { 58 | var scripts = document.getElementsByTagName("script"), 59 | script_len = scripts.length, 60 | script = scripts[script_len - 1]; 61 | var string = script.getAttribute("string") || "Idealclover"; 62 | redirectPosts(); 63 | listen(); 64 | play(string); 65 | }; 66 | 67 | function redirectPosts() { 68 | var capture = window.location.search.match(/\?post=(\d+)/); 69 | var postid = capture ? capture[1] : null; 70 | if (postid) { 71 | window.location.href = 'https://github.com/livoras/blog/issues/' + postid; 72 | } 73 | } 74 | 75 | function listen() { 76 | document.getElementById('title').addEventListener('click', function () { 77 | if (isRunning) return; 78 | play(); 79 | }); 80 | } 81 | 82 | function play(string) { 83 | var head = document.getElementById('title'); 84 | var history = (0, _gen2.default)(string).history; 85 | isRunning = true; 86 | var i = 0; 87 | history.forEach(function (text, i) { 88 | setTimeout(function () { 89 | head.innerText = text; 90 | if (++i === history.length) isRunning = false; 91 | }, i * 30); 92 | }); 93 | } 94 | 95 | init(); 96 | 97 | /***/ }, 98 | /* 1 */ 99 | /***/ function(module, exports, __webpack_require__) { 100 | 101 | 'use strict'; 102 | 103 | /** 104 | * Using Genetic Algorithm to generate lots of random strings 105 | * and make them evolve towards the target string. 106 | * 107 | */ 108 | 109 | var Genea = __webpack_require__(2); 110 | var alphabetArr = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ., '.split(''); 111 | var alphabet = function () { 112 | var alphabet = {}; 113 | alphabetArr.forEach(function (ch, i) { 114 | alphabet[ch] = i; 115 | }); 116 | return alphabet; 117 | }(); 118 | 119 | function getTargetStr(targetStr) { 120 | var binaryStr = ''; 121 | for (var i = 0, len = targetStr.length; i < len; i++) { 122 | var ch = targetStr[i]; 123 | var chIndex = alphabet[ch]; 124 | binaryStr += paddingWith0(Number(chIndex).toString(2)); 125 | } 126 | return binaryStr; 127 | } 128 | 129 | function paddingWith0(num) { 130 | while (num.length < 6) { 131 | num = '0' + num; 132 | } 133 | return num; 134 | } 135 | 136 | function run(str) { 137 | var tar = getTargetStr(str); 138 | var ga = new Genea({ 139 | geneLength: tar.length, 140 | mutateProbability: 0.5, 141 | doneFitness: 1, 142 | populationSize: 20, 143 | generationsSize: 400, 144 | getFitness: function getFitness(gene) { 145 | var count = 0; 146 | for (var i = 0, len = gene.length; i < len; i++) { 147 | if (gene[i] === tar[i]) count++; 148 | } 149 | var likeness = count / tar.length; 150 | return likeness; 151 | }, 152 | onGeneration: function onGeneration(generation, genes) { 153 | var max = 0, 154 | index = 0; 155 | this.fitnesses.forEach(function (fitness, i) { 156 | if (fitness > max) { 157 | max = fitness; 158 | index = i; 159 | } 160 | }); 161 | this.history.push(toChars(genes[index])); 162 | } 163 | }); 164 | 165 | ga.history = []; 166 | ga.start(); 167 | return ga; 168 | } 169 | 170 | function toChars(gene) { 171 | var str = ''; 172 | while (gene.length) { 173 | var ch = '00' + gene.substr(0, 6); 174 | gene = gene.substr(6); 175 | var chIndex = parseInt(ch, 2); 176 | if (chIndex >= alphabetArr.length) { 177 | chIndex = Math.floor(Math.random() * (alphabetArr.length - 1)); 178 | } 179 | if (!alphabetArr[chIndex]) console.log(chIndex, parseInt(ch, 2)); 180 | str += alphabetArr[chIndex]; 181 | } 182 | return str; 183 | } 184 | 185 | module.exports = run; 186 | 187 | /***/ }, 188 | /* 2 */ 189 | /***/ function(module, exports) { 190 | 191 | 'use strict'; 192 | 193 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); 194 | 195 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 196 | 197 | var Genea = function () { 198 | function Genea(config) { 199 | _classCallCheck(this, Genea); 200 | 201 | this.currentGeneration = 0; 202 | this.populations = []; 203 | this.fitnesses = []; 204 | 205 | this.mutateProbability = config.mutateProbability || 0.5; // 0 ~ 1 206 | this.generationsSize = config.generationsSize || 100; 207 | this.populationSize = config.populationSize || 100; 208 | this.doneFitness = config.doneFitness || 1; // 0 ~ 1 209 | 210 | this.geneLength = config.geneLength; 211 | this.getFitness = config.getFitness; 212 | 213 | this.outOfGenerationsSize = config.outOfGenerationsSize || this.outOfGenerationsSize; 214 | this.onGeneration = config.onGeneration || this.onGeneration; 215 | this.done = config.done || this.done; 216 | } 217 | 218 | _createClass(Genea, [{ 219 | key: "start", 220 | value: function start() { 221 | this.initPopulation(); 222 | this.makeFitnesses(); 223 | this.select(); 224 | } 225 | }, { 226 | key: "initPopulation", 227 | value: function initPopulation() { 228 | this.currentGeneration = 1; 229 | this.populations = []; 230 | for (var i = 0, len = this.populationSize; i < len; i++) { 231 | var gene = getRandomGene(this.geneLength); 232 | this.populations.push(gene); 233 | } 234 | this.onGeneration(this.currentGeneration, this.populations); 235 | } 236 | }, { 237 | key: "select", 238 | value: function select() { 239 | if (this.currentGeneration >= this.generationsSize) { 240 | return this.outOfGenerationsSize(this.populations, this.fitnesses); 241 | } 242 | var matches = this.getMatches(); 243 | if (matches.length > 0) return this.done(matches); 244 | this.generateNextGeneration(); 245 | } 246 | }, { 247 | key: "makeFitnesses", 248 | value: function makeFitnesses() { 249 | var _this = this; 250 | 251 | this.fitnesses = []; 252 | this.totalFitness = 0; 253 | this.populations.forEach(function (individual, i) { 254 | var fitness = _this.getFitness(individual, _this.populations); 255 | _this.fitnesses[i] = fitness; 256 | _this.totalFitness += fitness; 257 | }); 258 | } 259 | }, { 260 | key: "getMatches", 261 | value: function getMatches() { 262 | var _this2 = this; 263 | 264 | var bests = []; 265 | this.populations.forEach(function (individual, i) { 266 | var fitness = _this2.fitnesses[i]; 267 | if (fitness >= _this2.doneFitness) { 268 | bests.push({ 269 | gene: individual, 270 | fitness: fitness, 271 | pos: i 272 | }); 273 | } 274 | }); 275 | return bests; 276 | } 277 | }, { 278 | key: "generateNextGeneration", 279 | value: function generateNextGeneration() { 280 | this.currentGeneration++; 281 | var oldPopulations = this.populations; 282 | var newPopulations = []; 283 | for (var i = 0, len = oldPopulations.length; i < len; i++) { 284 | var father = this.rotate(); 285 | var mother = this.rotate(); 286 | var child = this.crossOver(father, mother); 287 | child = this.mutate(child); 288 | newPopulations.push(child); 289 | } 290 | this.populations = newPopulations; 291 | this.makeFitnesses(); 292 | this.onGeneration(this.currentGeneration, this.populations); 293 | this.select(); 294 | } 295 | }, { 296 | key: "crossOver", 297 | value: function crossOver(father, mother) { 298 | var pos = Math.floor(father.length * Math.random()); 299 | var child1 = father.substring(0, pos) + mother.substring(pos); 300 | var child2 = mother.substring(0, pos) + father.substring(pos); 301 | return this.getFitness(child1) > this.getFitness(child2) ? child1 : child2; 302 | } 303 | }, { 304 | key: "mutate", 305 | value: function mutate(child) { 306 | var mutateProbability = Math.random(); 307 | if (mutateProbability < this.mutateProbability) return child; 308 | var pos = Math.floor(Math.random() * this.geneLength); 309 | var arr = child.split(""); 310 | arr[pos] = +child[pos] ^ 1; 311 | return arr.join(""); 312 | } 313 | }, { 314 | key: "rotate", 315 | value: function rotate() { 316 | var pos = Math.random(); // let's roll! 317 | var soFar = 0; 318 | for (var i = 0, len = this.fitnesses.length; i < len; i++) { 319 | var fitness = this.fitnesses[i]; 320 | soFar += fitness; 321 | if (soFar / this.totalFitness >= pos) { 322 | return this.populations[i]; 323 | } 324 | } 325 | } 326 | }, { 327 | key: "done", 328 | value: function done() {} 329 | }, { 330 | key: "onGeneration", 331 | value: function onGeneration() {} 332 | }, { 333 | key: "outOfGenerationsSize", 334 | value: function outOfGenerationsSize() {} 335 | }]); 336 | 337 | return Genea; 338 | }(); 339 | 340 | function getRandomGene(len) { 341 | var gene = ""; 342 | for (var i = 0; i < len; i++) { 343 | gene += Math.floor(Math.random() * 100) % 2 === 0 ? "1" : "0"; 344 | } 345 | return gene; 346 | } 347 | 348 | module.exports = Genea; 349 | 350 | /***/ } 351 | ]); 352 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 4 | need('components/header.php'); ?> 5 | 6 |
    7 |
    8 |
    9 |
    10 |
    11 |

    12 | 13 |

    14 | authorId == $this->user->uid) : ?> 15 | 16 | 17 |
    18 | options->siteUrl == "https://idealclover.top/") : ?> 19 | 28 | options->siteUrl == "https://en.idealclover.top/") : ?> 29 | 38 | 39 |
    40 |
    41 | content(); ?> 42 |
    43 |
    44 | 45 | need('components/comments.php'); ?> 46 |
    47 | need('components/sidebar.php'); ?> 48 |
    49 |
    50 | need('components/footer.php'); ?> -------------------------------------------------------------------------------- /post.php: -------------------------------------------------------------------------------- 1 | 4 | need('components/header.php'); ?> 5 | 6 |
    7 |
    8 |
    9 |
    10 |

    11 | 12 |

    13 |

    14 | date('Y.m.d'); ?> | 15 | category('Y.m.d'); ?> | 16 | commentsNum(_t(' 0 条评论'), _t(' 1 条评论'), _t(' %d 条评论')); ?> 17 | 18 | authorId == $this->user->uid) : ?> 19 | 20 | 21 | 22 |

    23 | fields->ENG) : ?> 24 | 35 | fields->CHN) : ?> 36 | 47 | 48 |
    49 |
    50 | content(); ?> 51 |
    52 |
    53 |

    permalink(); ?>

    54 |

    55 |
    56 |

    tags(', ', true, 'none'); ?>

    57 |
    58 | 59 |
      60 |
    • thePrev('%s', _t('没有了')); ?>
    • 62 |
    • theNext('%s', _t('没有了')); ?>
    • 64 |
    65 | 66 | need('components/comments.php'); ?> 67 |
    68 | need('components/sidebar.php'); ?> 69 |
    70 |
    71 | need('components/footer.php'); ?> -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/idealclover/clover/1d731108f1f3e579f52a74e5d851b955b0231e7e/screenshot.png --------------------------------------------------------------------------------