├── LICENSE ├── README.md └── html ├── static ├── css │ ├── bar.css │ ├── crayon.min.css │ ├── github.css │ ├── icon.css │ ├── latex.min.css │ ├── monaco.css │ ├── nivo-slider.css │ ├── page-list.css │ ├── print.min.css │ ├── public.css │ └── style.css ├── fonts │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── monaco-webfont.eot │ ├── monaco-webfont.svg │ ├── monaco-webfont.ttf │ └── monaco-webfont.woff ├── images │ ├── 28af17f471ec4e668c9947c4760bb7c0.gif │ ├── 5b9c6a52505a47da9e041b61226317ce.gif │ ├── arrows.png │ ├── bullets.png │ ├── buttons.png │ ├── crayon_tinymce.png │ ├── docs.png │ ├── donate.png │ ├── github.png │ ├── google.png │ ├── loading.gif │ ├── logo.png │ ├── pause.png │ ├── play.png │ ├── twitter.png │ ├── weixin.gif │ └── wordpress-blue.png └── js │ ├── c.js │ ├── crayon.min.js │ ├── html5.js │ ├── jquery.fitvids.js │ ├── jquery.js │ ├── jquery.min.js │ ├── jquery.nivo.slider.pack.js │ ├── lightapp.js │ ├── main.js │ ├── postviews-cache.js │ ├── s.js │ ├── slider.js │ └── wp-embed.min.js └── templates ├── about.html ├── donate.html ├── exchange.html ├── index.html ├── message.html ├── project.html ├── question.html ├── resources.html ├── technique.html └── wp-login.html /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 | 4 | 5 |
本渣渣不专注技术,只专注使用技术,不是一个资深的coder,是一个不折不扣的copier
6 | 7 |

1、准备

8 | 9 | 工具 10 | 11 | 仿站小工具+V9.0 12 | 13 | 工具获取方式一 14 | 15 | 关注微信公众号『stormsha』,后台回复『仿站工具』获取工具 16 | 17 | 工具获取方式二 18 | 19 | [仿站小工具官网](https://smalltool.github.io/) 20 | 21 | [崔庆才博客]( https://cuiqingcai.com/) 22 | 从网站源码来看此博客应该是使用的 Wordpress 框架,原站用什么写的不重要,重要的是怎么快速使用 Python 实现 23 | 24 |

2、开扒

25 | 26 | 【注意】——输入的网址是要抓取页面网址,相对路径是主域名后边的路径,文件名即抓取后的文件保存的名字 27 | 28 | ![开扒](http://stormsha.cn/static/images/article/20241.png) 29 | 30 | 31 | ![扒取结果](http://stormsha.cn/static/images/article/20242.png) 32 | 33 | 【提示】——如果不知道怎么添加多个要添加的页面,注意看我的截图,或者自己单页面多测试一下,分析一下。输入网址、相对路径、文件名是什么关系 34 | 35 |

4、扒取结果

36 | 37 | ![扒取结果](http://stormsha.cn/static/images/article/20243.png) 38 | 39 |

3、整理结果

40 | 41 | 把扒下的除了 static 文件,其它文件中的 .html 文件都放入 templates中,把 static 文件和 templates 放于同级目录,结果 42 | 43 | ![扒取结果](http://stormsha.cn/static/images/article/20244.png) 44 | 45 | ![扒取结果](http://stormsha.cn/static/images/article/20245.png) 46 | 47 | 好嘞,发现什么了吗?Django 项目的两个文件有了、static、templates 48 | 49 |

4、运行效果

50 | 51 | 【注意】——如果无法打开,那就检查一下,index.html 文件的静态文件配置的路径是否正确,路径都应该指向 static 对应的文件 52 | 53 | 使用浏览器打开 index.html 文件看一下效果, 54 | 55 | ![扒取结果](http://stormsha.cn/static/images/article/20246.png) 56 | 57 | 完美运行 58 | 59 | [网站前端源码](https://github.com/stormsha/blog) 60 | -------------------------------------------------------------------------------- /html/static/css/bar.css: -------------------------------------------------------------------------------- 1 | /* 2 | Skin Name: Nivo Slider Bar Theme 3 | Skin URI: http://nivo.dev7studios.com 4 | Description: The bottom bar skin for the Nivo Slider. 5 | Version: 1.0 6 | Author: Gilbert Pellegrom 7 | Author URI: http://dev7studios.com 8 | Supports Thumbs: false 9 | */ 10 | 11 | .theme-bar.slider-wrapper { 12 | position: relative; 13 | border: 1px solid #333; 14 | overflow: hidden; 15 | } 16 | .theme-bar .nivoSlider { 17 | position:relative; 18 | background:#fff url(../images/loading.gif) no-repeat 50% 50%; 19 | } 20 | .theme-bar .nivoSlider img { 21 | position:absolute; 22 | top:0px; 23 | left:0px; 24 | display:none; 25 | } 26 | .theme-bar .nivoSlider a { 27 | border:0; 28 | display:block; 29 | } 30 | 31 | .theme-bar .nivo-controlNav { 32 | position: absolute; 33 | left: 0; 34 | bottom: -41px; 35 | z-index: 10; 36 | width: 100%; 37 | height: 30px; 38 | text-align: center; 39 | padding: 5px 0; 40 | border-top: 1px solid #333; 41 | background: #333; 42 | background: -moz-linear-gradient(top, #565656 0%, #333333 100%); /* FF3.6+ */ 43 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#565656), color-stop(100%,#333333)); /* Chrome,Safari4+ */ 44 | background: -webkit-linear-gradient(top, #565656 0%,#333333 100%); /* Chrome10+,Safari5.1+ */ 45 | background: -o-linear-gradient(top, #565656 0%,#333333 100%); /* Opera 11.10+ */ 46 | background: -ms-linear-gradient(top, #565656 0%,#333333 100%); /* IE10+ */ 47 | background: linear-gradient(to bottom, #565656 0%,#333333 100%); /* W3C */ 48 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#565656', endColorstr='#333333',GradientType=0 ); /* IE6-9 */ 49 | opacity: 0.5; 50 | -webkit-transition: all 200ms ease-in-out; 51 | -moz-transition: all 200ms ease-in-out; 52 | -o-transition: all 200ms ease-in-out; 53 | transition: all 200ms ease-in-out; 54 | } 55 | .theme-bar:hover .nivo-controlNav { 56 | bottom: 0; 57 | opacity: 1; 58 | } 59 | .theme-bar .nivo-controlNav a { 60 | display:inline-block; 61 | width:22px; 62 | height:22px; 63 | background:url(../images/bullets.png) no-repeat; 64 | text-indent:-9999px; 65 | border:0; 66 | margin: 5px 2px 0 2px; 67 | } 68 | .theme-bar .nivo-controlNav a.active { 69 | background-position:0 -22px; 70 | } 71 | 72 | .theme-bar .nivo-directionNav a { 73 | display:block; 74 | border:0; 75 | color: #fff; 76 | text-transform: uppercase; 77 | top: auto; 78 | bottom: 10px; 79 | z-index: 11; 80 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 81 | font-size: 13px; 82 | line-height: 20px; 83 | opacity: 0.5; 84 | -webkit-transition: all 200ms ease-in-out; 85 | -moz-transition: all 200ms ease-in-out; 86 | -o-transition: all 200ms ease-in-out; 87 | transition: all 200ms ease-in-out; 88 | } 89 | .theme-bar a.nivo-nextNav { right: -50px; } 90 | .theme-bar a.nivo-prevNav { left: -50px; } 91 | .theme-bar:hover a.nivo-nextNav { 92 | right: 15px; 93 | opacity: 1; 94 | } 95 | .theme-bar:hover a.nivo-prevNav { 96 | left: 15px; 97 | opacity: 1; 98 | } 99 | .theme-bar .nivo-directionNav a:hover { color: #ddd; } 100 | 101 | .theme-bar .nivo-caption { 102 | font-family: Helvetica, Arial, sans-serif; 103 | -webkit-transition: all 200ms ease-in-out; 104 | -moz-transition: all 200ms ease-in-out; 105 | -o-transition: all 200ms ease-in-out; 106 | transition: all 200ms ease-in-out; 107 | } 108 | .theme-bar:hover .nivo-caption { 109 | bottom: 41px; 110 | } 111 | .theme-bar .nivo-caption a { 112 | color:#fff; 113 | border-bottom:1px dotted #fff; 114 | } 115 | .theme-bar .nivo-caption a:hover { 116 | color:#fff; 117 | } 118 | 119 | .theme-bar .nivo-controlNav.nivo-thumbs-enabled { 120 | width: 100%; 121 | } 122 | .theme-bar .nivo-controlNav.nivo-thumbs-enabled a { 123 | width: auto; 124 | height: auto; 125 | background: none; 126 | margin-bottom: 5px; 127 | } 128 | .theme-bar .nivo-controlNav.nivo-thumbs-enabled img { 129 | display: block; 130 | height: auto; 131 | } -------------------------------------------------------------------------------- /html/static/css/crayon.min.css: -------------------------------------------------------------------------------- 1 | #colorbox.crayon-colorbox,#cboxOverlay.crayon-colorbox,.crayon-colorbox #cboxWrapper{position:absolute;top:0;left:0;z-index:9999;overflow:hidden}#cboxOverlay.crayon-colorbox{position:fixed;width:100%;height:100%}.crayon-colorbox #cboxMiddleLeft,.crayon-colorbox #cboxBottomLeft{clear:left}.crayon-colorbox #cboxContent{position:relative}.crayon-colorbox #cboxLoadedContent{overflow:auto;-webkit-overflow-scrolling:touch}.crayon-colorbox #cboxTitle{display:none!important}.crayon-colorbox #cboxLoadingOverlay,.crayon-colorbox #cboxLoadingGraphic{position:absolute;top:0;left:0;width:100%;height:100%}.crayon-colorbox #cboxPrevious,.crayon-colorbox #cboxNext,.crayon-colorbox #cboxClose,.crayon-colorbox #cboxSlideshow{cursor:pointer}.crayon-colorbox .cboxPhoto{float:left;margin:auto;border:0;display:block;max-width:none;-ms-interpolation-mode:bicubic}.crayon-colorbox .cboxIframe{width:100%;height:100%;display:block;border:0}#colorbox.crayon-colorbox,.crayon-colorbox #cboxContent,.crayon-colorbox #cboxLoadedContent{box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box}#cboxOverlay.crayon-colorbox{background:#000}#colorbox.crayon-colorbox{outline:0}.crayon-colorbox #cboxContent{margin-top:20px;background:#000}.crayon-colorbox .cboxIframe{background:#fff}.crayon-colorbox #cboxError{padding:50px;border:1px solid #ccc}.crayon-colorbox #cboxLoadedContent{border:5px solid #000;background:#fff}.crayon-colorbox #cboxTitle{position:absolute;top:-20px;left:0;color:#ccc}.crayon-colorbox #cboxCurrent{position:absolute;top:-20px;right:0;color:#ccc}.crayon-colorbox #cboxPrevious,.crayon-colorbox #cboxNext,.crayon-colorbox #cboxSlideshow,.crayon-colorbox #cboxClose{border:0;padding:0;margin:0;overflow:visible;width:auto;background:0}.crayon-colorbox #cboxPrevious:active,.crayon-colorbox #cboxNext:active,.crayon-colorbox #cboxSlideshow:active,.crayon-colorbox #cboxClose:active{outline:0}.crayon-colorbox #cboxSlideshow{position:absolute;top:-20px;right:90px;color:#fff}.crayon-colorbox #cboxContent{margin-top:0}.crayon-colorbox #cboxLoadedContent{border:0}#crayon-main-wrap .form-table th{width:100px}#crayon-log{display:none;max-height:200px;border-color:#dfdfdf;background-color:white;border-width:1px;border-style:solid;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin:1px;padding:3px;overflow:auto;white-space:pre;margin-bottom:5px}.crayon-span,.crayon-span-5,.crayon-span-10,.crayon-span-50,.crayon-span-100,.crayon-span-110{line-height:24px;display:inline-block}.crayon-span-5{min-width:5px}.crayon-span-10{min-width:10px}.crayon-span-50{min-width:50px}.crayon-span-100{min-width:100px}.crayon-span-110{min-width:117px}.crayon-span-margin{margin-left:5px}#height_mode,#width_mode{min-width:65px}.crayon-error{color:#F00}.crayon-success{color:#00F}.crayon-warning{color:#ff8000}.crayon-help{min-height:30px;padding:5px 10px}.crayon-help .crayon-help-close,.crayon-help .crayon-help-close:active,.crayon-help .crayon-help-close:hover{text-decoration:none;float:right;color:#000}.crayon-help span,.crayon-help a{margin:0;padding:0;font-size:12px}#crayon-log-text{font:11px/13px Monaco,'MonacoRegular','Courier New',monospace}#crayon-log-controls{float:left;margin-right:5px}.crayon-table{font-size:12px;border:1px solid #999;padding:0;margin:0;margin-top:12px}.crayon-table td{vertical-align:top;border-bottom:1px solid #AAA;padding:0 6px;margin:0;background:#EEE}.crayon-table-light td{background:#f8f8f8}.crayon-table-header td{font-weight:bold;background:#CCC}.crayon-table-last td,.crayon-table tr:last-child td{border:0}#lang-info div{padding:5px 0}.crayon-table .not-parsed{color:#F00}.crayon-table .parsed-with-errors{color:#f90}.crayon-table .successfully-parsed{color:#77a000}#crayon-live-preview,#crayon-log-wrapper{padding:0;width:100%;float:left;clear:both}#crayon-live-preview{float:none;padding:0}#crayon-logo{text-align:center}#crayon-info,#crayon-info td{border:0;padding:0 5px;margin:0}.crayon-admin-button{display:inline-block;text-align:center}#crayon-subsection-langs-info{margin-top:5px}#crayon-theme-editor-admin-buttons{display:inline}#crayon-theme-editor-admin-buttons .crayon-admin-button{margin-left:5px}#crayon-theme-info{display:table;padding:0;margin:0;margin-top:5px}#crayon-theme-info>div{display:table-cell;vertical-align:middle}#crayon-theme-info .content *{float:left}#crayon-theme-info .field{font-weight:bold}#crayon-theme-info .field,#crayon-theme-info .value{margin-left:5px}#crayon-theme-info .description.value{font-style:italic;color:#999}#crayon-theme-info .type{text-align:center;min-width:120px;font-weight:bold;border-right:1px solid #ccc;padding-right:5px}#crayon-theme-info .type.stock{color:#666}#crayon-theme-info .type.user{color:#5b9a00}#crayon-editor-table td{vertical-align:top}.small-icon{width:24px;height:24px;display:inline-block;margin:5px 5px 0 0}#twitter-icon{background:url(../images/twitter.png)}#gmail-icon{background:url(../images/google.png)}#docs-icon{background:url(../images/docs.png)}#git-icon{background:url(../images/github.png)}#wp-icon{background:url(../images/wordpress-blue.png)}#donate-icon{background:url(../images/donate.png);width:75px}#crayon-donate,#crayon-donate input{margin:0;display:inline;padding:0}#crayon-theme-editor-info a{text-decoration:none!important;font-style:italic!important;color:#666!important}#crayon-main-wrap .form-table .note{font-style:italic;color:#999}#crayon-change-code-text{width:400px;height:300px}.crayon-syntax{overflow:hidden!important;position:relative!important;direction:ltr;text-align:left;box-sizing:border-box;direction:ltr!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-webkit-text-size-adjust:none}.crayon-syntax div{background:0;border:0;padding:0;margin:0;text-align:left}.crayon-syntax.crayon-loading{visibility:hidden}.crayon-syntax,.crayon-syntax .crayon-main,.crayon-syntax .crayon-toolbar,.crayon-syntax .crayon-info,.crayon-syntax .crayon-plain,.crayon-syntax .crayon-code{width:100%}.crayon-syntax .crayon-main,.crayon-syntax .crayon-plain{overflow:auto}.crayon-syntax,.crayon-syntax .crayon-main,.crayon-syntax .crayon-plain,.crayon-syntax .crayon-table{padding:0;margin:0}.crayon-syntax-inline{margin:0 2px;padding:0 2px}.crayon-syntax .crayon-table{border:none!important;background:none!important;padding:0!important;margin-top:0!important;margin-right:0!important;margin-bottom:0!important;width:auto!important;border-spacing:0!important;border-collapse:collapse!important;table-layout:auto!important}.crayon-syntax .crayon-table td,.crayon-syntax .crayon-table tr{padding:0!important;border:none!important;background:0;vertical-align:top!important;margin:0!important}.crayon-syntax .crayon-invisible{display:none!important}.crayon-plain-tag{margin-bottom:12px}.crayon-popup .crayon-plain{display:block!important;width:100%!important;height:100%!important;opacity:100!important;position:relative!important}.crayon-popup-window{background:#fff}.crayon-syntax .crayon-num{text-align:center;padding:0 5px;margin:0}.crayon-syntax .crayon-toolbar{position:relative;overflow:hidden;z-index:4}.crayon-syntax .crayon-info{position:absolute;overflow:hidden;display:none;z-index:3;padding:0;min-height:18px;line-height:18px}.crayon-syntax .crayon-info div{padding:2px!important;text-align:center}.crayon-syntax .crayon-toolbar span{padding:0 4px!important}.crayon-syntax .crayon-toolbar .crayon-button{display:inline;float:left!important;position:relative;width:24px;background-repeat:no-repeat;line-height:15px;border:0;text-decoration:none}.crayon-toolbar .crayon-button,.crayon-toolbar .crayon-button:hover,.crayon-toolbar .crayon-button.crayon-pressed:hover{background-position:0 center}.crayon-toolbar .crayon-button.crayon-pressed,.crayon-toolbar .crayon-button:active,.crayon-toolbar .crayon-button.crayon-pressed:active{background-position:-24px 0}.crayon-toolbar .crayon-button.crayon-popup-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed:hover .crayon-button-icon{background-position:0 0}.crayon-toolbar .crayon-button.crayon-copy-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -16px}.crayon-toolbar .crayon-button.crayon-nums-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -32px}.crayon-toolbar .crayon-button.crayon-plain-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -48px}.crayon-toolbar .crayon-button.crayon-mixed-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -64px}.crayon-toolbar .crayon-button.crayon-minimize .crayon-button-icon{background-position:0 -80px;background-color:transparent!important}.crayon-toolbar .crayon-button.crayon-expand-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -96px}.crayon-toolbar .crayon-button.crayon-wrap-button .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button:hover .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed:hover .crayon-button-icon{background-position:0 -112px}.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-popup-button.crayon-pressed:active .crayon-button-icon{background-position:-24px 0}.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-copy-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -16px}.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-nums-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -32px}.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-plain-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -48px}.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-mixed-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -64px}.crayon-toolbar .crayon-button.crayon-minimize .crayon-button-icon{background-position:-24px -80px;background-color:transparent!important}.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-expand-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -96px}.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button:active .crayon-button-icon,.crayon-toolbar .crayon-button.crayon-wrap-button.crayon-pressed:active .crayon-button-icon{background-position:-24px -112px}.crayon-syntax .crayon-toolbar .crayon-language{padding-right:8px!important}.crayon-syntax .crayon-title,.crayon-syntax .crayon-language{float:left}.crayon-main::-webkit-scrollbar,.crayon-plain::-webkit-scrollbar{height:6px;overflow:visible;width:6px;background:#EEE}.crayon-main::-webkit-scrollbar-thumb,.crayon-plain::-webkit-scrollbar-thumb{background-color:#CCC;background-clip:padding-box;border:1px solid #AAA;box-shadow:inset 0 0 2px #999;min-height:8px;padding:0;border-width:1px}.crayon-main::-webkit-scrollbar-button,.crayon-plain::-webkit-scrollbar-button{height:0;width:0;padding:0}.crayon-main::-webkit-scrollbar-track,.crayon-plain::-webkit-scrollbar-track{background-clip:padding-box;border:solid transparent;border-width:0 0 0 4px;border:1px solid #BBB;border-right:0;border-bottom:0}.crayon-main::-webkit-scrollbar-corner,.crayon-plain::-webkit-scrollbar-corner{background:#EEE}.crayon-main::-webkit-scrollbar-thumb:hover,.crayon-plain::-webkit-scrollbar-thumb:hover{background:#AAA;border:1px solid #777;box-shadow:inset 0 0 2px #777}.crayon-syntax .crayon-pre,.crayon-syntax pre{color:#000;white-space:pre;margin:0;padding:0;overflow:visible;background:none!important;border:none!important;tab-size:4}.crayon-syntax .crayon-line{padding:0 5px}.crayon-syntax.crayon-wrapped .crayon-line{white-space:pre-wrap!important;height:auto;word-break:break-all}.crayon-syntax-inline .crayon-pre,.crayon-syntax-inline pre{white-space:normal}.crayon-syntax-inline-nowrap .crayon-pre,.crayon-syntax-inline-nowrap pre{white-space:pre}.crayon-syntax{font-family:Monaco,'MonacoRegular','Courier New',monospace;font-weight:500}.crayon-syntax .crayon-toolbar *::selection,.crayon-syntax .crayon-nums *::selection{background:transparent}.crayon-table .crayon-nums-content{white-space:nowrap}.crayon-syntax .crayon-num,.crayon-syntax .crayon-pre .crayon-line,.crayon-syntax .crayon-toolbar *,.crayon-syntax .crayon-pre *{font-family:inherit;font-size:inherit!important;line-height:inherit!important;font-weight:inherit!important;height:inherit}.crayon-syntax .crayon-toolbar .crayon-button .crayon-button-icon{background-image:url('../images/buttons.png');height:16px!important;width:100%;position:absolute;left:0;top:50%;margin-top:-8px}.crayon-syntax .crayon-toolbar .crayon-tools{position:absolute;right:0}.crayon-syntax.crayon-expanded{position:absolute!important;margin:0!important}.crayon-syntax.crayon-expanded .crayon-main{overflow:hidden!important}.crayon-placeholder{width:100%!important}.crayon-toolbar-visible .crayon-toolbar{position:relative!important;margin-top:0!important;display:block!important}.crayon-syntax.crayon-expanded .crayon-toolbar .crayon-tools{position:relative;right:auto;float:left!important}.crayon-syntax .crayon-plain-wrap{height:auto!important;padding:0!important;margin:0!important}.crayon-syntax .crayon-plain{width:100%;height:100%;position:absolute;opacity:0;padding:0 5px;margin:0;border:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-shadow:none;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;white-space:pre;word-wrap:normal;overflow:auto;resize:none;color:#000;background:#FFF}.crayon-wrapped .crayon-plain{white-space:pre-wrap}.bbp-body .crayon-syntax{clear:none!important}.crayon-minimized .crayon-toolbar{cursor:pointer}.crayon-minimized .crayon-plain-wrap,.crayon-minimized .crayon-main,.crayon-minimized .crayon-toolbar .crayon-tools *{display:none!important}.crayon-minimized .crayon-toolbar .crayon-tools .crayon-minimize{display:block!important}.crayon-minimized .crayon-toolbar{position:relative!important}.crayon-syntax.crayon-minimized .crayon-toolbar{border-bottom:none!important}.crayon-te *,#crayon-te-bar-content{font-family:"Lucida Grande",Arial,sans-serif!important;font-size:12px}.crayon-te input[type="text"],.crayon-te textarea{background:#f9f9f9;border:1px solid #CCC;box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,0.1);padding:2px 4px;-webkit-border-radius:3px;border-radius:3px;border-width:1px;border-style:solid}.crayon-te #crayon-code{font-family:monospace!important}#crayon-te-content,#crayon-te-table{width:100%;height:auto!important}#crayon-range,#crayon-mark{width:100px}#crayon-te-table th,#crayon-te-table td{vertical-align:top;text-align:left}.rtl #crayon-te-table th,.rtl #crayon-te-table td{text-align:right}#crayon-te-table .crayon-tr-center td,#crayon-te-table .crayon-tr-center th{vertical-align:middle}#crayon-te-table .crayon-nowrap{white-space:nowrap}#crayon-te-bar{position:absolute;top:0;left:0;width:100%}#crayon-te-bar-content{border:1px solid #666;border-bottom:0;height:26px;line-height:25px;padding:0 8px;padding-right:0;background-color:#222;color:#cfcfcf}#crayon-te-bar-content a{line-height:25px;padding:5px 10px;color:#DDD;font-weight:bold;text-decoration:none!important}#crayon-te-bar-content a:hover{color:#FFF}.crayon-te-seperator{color:#666;margin:0;padding:0}#crayon-te-bar-block{height:34px;width:100%}#crayon-te-title{float:left}#crayon-te-controls{float:right}#crayon-url-th{vertical-align:top!important;padding-top:5px}.crayon-te-heading{font-size:14px;font-weight:bold}#crayon-te-settings-info{text-align:center}.crayon-te-section{font-weight:bold;padding:0 10px}#crayon-te-sub-section{margin-left:10px}#crayon-te-sub-section .crayon-te-section{font-weight:normal;padding:0}#crayon-code{height:200px;white-space:pre}#crayon-code,#crayon-url{width:555px!important}.crayon-disabled{background:#EEE!important}.qt_crayon_highlight{background-image:-ms-linear-gradient(bottom,#daf2ff,white)!important;background-image:-moz-linear-gradient(bottom,#daf2ff,white)!important;background-image:-o-linear-gradient(bottom,#daf2ff,white)!important;background-image:-webkit-linear-gradient(bottom,#daf2ff,white)!important;background-image:linear-gradient(bottom,#daf2ff,white)!important}.qt_crayon_highlight:hover{background:#ddebf2!important}.crayon-tag-editor-button-wrapper{display:inline-block}.mce_crayon_tinymce{padding:0!important;margin:2px 3px!important}.mce-i-crayon_tinymce,.mce_crayon_tinymce{background:url(../images/crayon_tinymce.png) 0 0!important}a.mce_crayon_tinymce{background-position:2px 0!important}.wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce,.wp_themeSkin .mceButtonActive span.mce_crayon_tinymce{background-position:-20px 0}.wp_themeSkin span.mce_crayon_tinymce{background:none!important}#crayon-te-table{margin-top:26px;padding:10px;border-collapse:separate!important;border-spacing:2px!important}#crayon-te-table th{width:100px}#crayon-te-clear{margin-left:10px;color:#666;background-color:#f4f4f4;border:1px solid #CCC;border-radius:3px;margin-left:8px}#crayon-title{width:360px}#TB_window.crayon-te-ajax{overflow:auto!important}#TB_window.crayon-te-ajax,#TB_window.crayon-te-ajax #TB_ajaxContent,#TB_window.crayon-te-ajax #TB_title{width:680px!important}#TB_window.crayon-te-ajax #TB_ajaxContent{padding:0!important;margin:0!important;width:100%!important;height:auto!important;margin-top:28px!important}#TB_window.crayon-te-ajax #TB_title{position:fixed!important}#TB_window.crayon-te-ajax #TB_title .crayon-te-submit{margin-top:3px!important;float:right!important}#TB_window.crayon-te-ajax a{color:#2587e2;text-decoration:none}#TB_window.crayon-te-ajax a:hover{color:#499ce9}.crayon-te-quote{background:#DDD;padding:0 2px}#crayon-te-submit-wrapper{display:none}#crayon-te-clear{display:none;margin:0;margin-top:10px}.crayon-syntax-pre{background:red;white-space:pre;overflow:auto;display:block;word-wrap:break-word}.crayon-question{padding:1px 4px!important;text-decoration:none!important;color:#83b3cb!important;border-radius:10px!important;height:15px!important;width:15px!important}.crayon-question:hover{background:#83b3cb!important;color:white!important;height:15px!important;width:15px!important}.crayon-setting-changed,.crayon-setting-selected{background:#fffaad!important}.crayon-question:hover{color:white;background:#a6d6ef}#crayon-te-warning{display:none}.crayon-te-info{padding:5px!important;margin:2px 0!important}#crayon-te-submit{margin-bottom:5px} -------------------------------------------------------------------------------- /html/static/css/github.css: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Github 3 | Description: Github like color. 4 | Version: 1.0 5 | Author: Dai Akatsuka 6 | URL: http://firn.jp/ 7 | */ 8 | .crayon-theme-github { 9 | margin-bottom: 25px !important; 10 | border: 1px solid #dedede !important; 11 | background-color: #f8f8ff !important; 12 | font-size: 100% !important; 13 | line-height: 130% !important; 14 | } 15 | 16 | .crayon-theme-github .crayon-toolbar { 17 | border-bottom: 1px solid #dedede !important; 18 | background-color: #eee !important; 19 | } 20 | 21 | .crayon-theme-github .crayon-toolbar .crayon-language, 22 | .crayon-theme-github .crayon-toolbar .crayon-title { 23 | font-size: 80% !important; 24 | color: #666 !important; 25 | } 26 | 27 | .crayon-theme-github .crayon-table .crayon-nums { 28 | background-color: #eee !important; 29 | } 30 | 31 | .crayon-theme-github .crayon-table .crayon-nums-content { 32 | padding-top: 5px !important; 33 | padding-bottom: 3px !important; 34 | } 35 | 36 | .crayon-theme-github .crayon-table .crayon-num { 37 | min-width: 1.2em !important; 38 | border-right: 1px solid #dedede !important; 39 | text-align: right !important; 40 | color: #aaa !important; 41 | } 42 | 43 | .crayon-theme-github .crayon-pre { 44 | padding-top: 5px !important; 45 | padding-bottom: 3px !important; 46 | } 47 | 48 | .crayon-theme-github .crayon-marked-line { 49 | background: #fffee2 !important; 50 | 51 | } 52 | .crayon-theme-github .crayon-marked-num { 53 | color: #1561ac !important; 54 | background: #b3d3f4 !important; 55 | border-width: 1px !important; 56 | border-color: #5999d9 !important; 57 | } 58 | 59 | .crayon-theme-github .crayon-pre .crayon-c { 60 | color: #999 !important; 61 | font-style: italic !important; 62 | } 63 | .crayon-theme-github .crayon-pre .crayon-s { 64 | color: #d14 !important; 65 | } 66 | .crayon-theme-github .crayon-pre .crayon-p { 67 | color: #b85c00 !important; 68 | } 69 | .crayon-theme-github .crayon-pre .crayon-ta { 70 | color: #FF0000 !important; 71 | } 72 | .crayon-theme-github .crayon-pre .crayon-k { 73 | color: teal !important; 74 | } 75 | .crayon-theme-github .crayon-pre .crayon-st { 76 | color: #000 !important; 77 | font-weight: bold !important; 78 | } 79 | .crayon-theme-github .crayon-pre .crayon-r { 80 | color: #000 !important; 81 | font-weight: bold !important; 82 | } 83 | .crayon-theme-github .crayon-pre .crayon-t { 84 | color: #800080 !important; 85 | font-weight: bold !important; 86 | } 87 | .crayon-theme-github .crayon-pre .crayon-m { 88 | color: #800080 !important; 89 | } 90 | .crayon-theme-github .crayon-pre .crayon-i { 91 | color: #000 !important; 92 | } 93 | .crayon-theme-github .crayon-pre .crayon-e { 94 | color: teal !important; 95 | } 96 | .crayon-theme-github .crayon-pre .crayon-v { 97 | color: #002D7A !important; 98 | } 99 | .crayon-theme-github .crayon-pre .crayon-cn { 100 | color: #099 !important; 101 | } 102 | .crayon-theme-github .crayon-pre .crayon-o { 103 | color: #006fe0 !important; 104 | } 105 | .crayon-theme-github .crayon-pre .crayon-sy { 106 | color: #333 !important; 107 | } 108 | .crayon-theme-github .crayon-pre .crayon-n { 109 | color: #666 !important; 110 | font-style: italic; 111 | } 112 | .crayon-theme-github .crayon-pre .crayon-f { 113 | color: #999 !important; 114 | } 115 | .crayon-theme-github .crayon-pre .crayon-h { 116 | color: #006fe0 !important; 117 | } 118 | -------------------------------------------------------------------------------- /html/static/css/icon.css: -------------------------------------------------------------------------------- 1 | .login h1 a { 2 | background-image: url('../images/logo.png'); 3 | height: 100px; 4 | width: 230px; 5 | background-size: 230px; 6 | } 7 | -------------------------------------------------------------------------------- /html/static/css/latex.min.css: -------------------------------------------------------------------------------- 1 | /*The Latex CSS 2 | */ 3 | body{counter-reset:thm rem numb sec num_examp}.latex_thm,.latex_lem,.latex_cor,.latex_defn,.latex_prop,.latex_rem{margin:10px 0;padding:5px;background:lightcyan;border:solid 3px green;-moz-border-radius:1.0em;-webkit-border-radius:7px;box-shadow:0 0 0 green;display:block}.latex_prob,.latex_examp,.latex_excs,.latex_claim,.latex_answer{margin:10px 0;padding:5px;background:lightyellow;border:solid 3px goldenrod;-moz-border-radius:1.0em;-webkit-border-radius:7px;box-shadow:0 0 0 goldenrod;display:block}.latex_fig{display:inline-block}img.latex_fig:hover{transform:scale(1.1);-ms-transform:scale(1.1);-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-o-transform:scale(1.1)}img.latex_fig:{transition:transform 0.2s;-webkit-transition:-webkit-transform 0.2s;-moz-transition:-moz-transform 0.2s;-o-transition:-o-transform 0.2s}.latex_fig_caption{margin:1em 0;font-variant:small-caps;font-weight:bold;text-align:center}.latex_answer{display:block;margin:10px 5px;padding:10px 5px}.latex_title{text-align:center;margin-bottom:23px;font-style:normal;font-weight:bold;font-size:150%;display:block}.latex_author{text-align:center;margin-bottom:.1em;font-style:normal;font-size:120%;display:block}.latex_email{text-align:center;margin-bottom:.1em;font-style:normal;display:block}.latex_address{text-align:center;margin-bottom:.1em;font-style:normal;font-variant:small-caps;display:block}.latex_date{text-align:center;margin-bottom:.1em;font-style:normal;display:block}.latex_abstract{font-family:sans-serif;margin-left:5%;margin-right:5%;margin-top:23px;margin-bottom:30px;padding-bottom:10px;padding-top:10px;display:block}.latex_abstract_h{font-variant:small-caps}.latex_keywords{display:block;font-style:normal;margin-left:5%;margin-right:5%;padding-bottom:10px;padding-top:10px}.latex_section{counter-reset:subsec;font-family:sans-serif,'CMC Smallcaps';margin-bottom:0.25em;margin-top:1em;font-variant:small-caps;font-size:18px;font-weight:600;display:block}.latex_subsection{counter-reset:subsubsec;font-family:sans-serif,'CMC Smallcaps';margin-bottom:0.25em;margin-top:0.75em;font-variant:small-caps;font-size:16px;font-weight:600;display:block}.latex_subsubsection{font-family:sans-serif,'CMC Smallcaps';margin-bottom:0.25em;margin-top:0.5em;font-variant:small-caps;font-size:15px;font-weight:600;display:block}.latex_thm_h,.latex_cor_h,.latex_prop_h,.latex_lem_h,.latex_defn_h,.latex_proof_h,.latex_prob_h,.latex_answer_h,.latex_excs_h,.latex_examp_h,.latex_rmk_h,.latex_rem_h,.latex_claim_h,.latex_step_h{font-weight:bold}.latex_step_name{font-variant:small-caps}.bibtex_title{font-weight:bold;color:#004b33}a.bibtex_title{text-decoration:none}.bibtex_h{font-size:135%;text-align:center;margin:2em 0;font-variant:small-caps}.latex_em{font-style:italic}.latex_underline{text-decoration:underline}.ul,.ol{margin:0 30px 18px}.li{line-height:200%}.ul{list-style-type:disc}.ul ul{list-style-type:circle}.ul ul ul{list-style-type:square}.ol{list-style-type:decimal}.ol ol{list-style-type:lower-alpha}.ol ol ol{list-style-type:lower-roman} -------------------------------------------------------------------------------- /html/static/css/monaco.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'MonacoRegular'; 3 | src: url('../fonts/monaco-webfont.eot'); 4 | src: url('../fonts/monaco-webfont.eot') format('embedded-opentype'), 5 | url('../fonts/monaco-webfont.woff') format('woff'), 6 | url('../fonts/monaco-webfont.ttf') format('truetype'), 7 | url('../fonts/monaco-webfont.svg#monacoregular') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | 12 | .crayon-font-monaco * { 13 | font-family: Monaco, 'MonacoRegular', 'Courier New', monospace !important; 14 | } -------------------------------------------------------------------------------- /html/static/css/nivo-slider.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Nivo Slider v3.2 3 | * http://nivo.dev7studios.com 4 | * 5 | * Copyright 2012, Dev7studios 6 | * Free to use and abuse under the MIT license. 7 | * http://www.opensource.org/licenses/mit-license.php 8 | */ 9 | 10 | /* The Nivo Slider styles */ 11 | .nivoSlider { 12 | position:relative; 13 | width:100%; 14 | height:auto; 15 | overflow: hidden; 16 | } 17 | .nivoSlider img { 18 | position:absolute; 19 | top:0px; 20 | left:0px; 21 | max-width: none; 22 | } 23 | .nivo-main-image { 24 | display: block !important; 25 | position: relative !important; 26 | width: 100% !important; 27 | } 28 | 29 | /* If an image is wrapped in a link */ 30 | .nivoSlider a.nivo-imageLink { 31 | position:absolute; 32 | top:0px; 33 | left:0px; 34 | width:100%; 35 | height:100%; 36 | border:0; 37 | padding:0; 38 | margin:0; 39 | z-index:6; 40 | display:none; 41 | background:white; 42 | filter:alpha(opacity=0); 43 | opacity:0; 44 | } 45 | /* The slices and boxes in the Slider */ 46 | .nivo-slice { 47 | display:block; 48 | position:absolute; 49 | z-index:5; 50 | height:100%; 51 | top:0; 52 | } 53 | .nivo-box { 54 | display:block; 55 | position:absolute; 56 | z-index:5; 57 | overflow:hidden; 58 | } 59 | .nivo-box img { display:block; } 60 | 61 | /* Caption styles */ 62 | .nivo-caption { 63 | position:absolute; 64 | left:0px; 65 | bottom:0px; 66 | background:#000; 67 | color:#fff; 68 | width:100%; 69 | z-index:8; 70 | padding: 5px 10px; 71 | opacity: 0.8; 72 | overflow: hidden; 73 | display: none; 74 | -moz-opacity: 0.8; 75 | filter:alpha(opacity=8); 76 | -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ 77 | -moz-box-sizing: border-box; /* Firefox, other Gecko */ 78 | box-sizing: border-box; /* Opera/IE 8+ */ 79 | } 80 | .nivo-caption p { 81 | padding:5px; 82 | margin:0; 83 | } 84 | .nivo-caption a { 85 | display:inline !important; 86 | } 87 | .nivo-html-caption { 88 | display:none; 89 | } 90 | /* Direction nav styles (e.g. Next & Prev) */ 91 | .nivo-directionNav a { 92 | position:absolute; 93 | top:45%; 94 | z-index:9; 95 | cursor:pointer; 96 | } 97 | .nivo-prevNav { 98 | left:0px; 99 | } 100 | .nivo-nextNav { 101 | right:0px; 102 | } 103 | /* Control nav styles (e.g. 1,2,3...) */ 104 | .nivo-controlNav { 105 | text-align:center; 106 | padding: 15px 0; 107 | } 108 | .nivo-controlNav a { 109 | cursor:pointer; 110 | } 111 | .nivo-controlNav a.active { 112 | font-weight:bold; 113 | } 114 | .nivo-controlNav img { 115 | display:inline; /* Unhide the thumbnails */ 116 | position:relative; 117 | margin: 5px; 118 | opacity: 0.7; 119 | } 120 | .nivo-controlNav .active img, 121 | .nivo-controlNav img:hover { 122 | opacity: 1; 123 | } -------------------------------------------------------------------------------- /html/static/css/page-list.css: -------------------------------------------------------------------------------- 1 | /* 2 | Page-list plugin 3 | http://wordpress.org/extend/plugins/page-list/ 4 | */ 5 | 6 | /* default styles for [pagelist], [subpages], [siblings] */ 7 | .page-list .current_page_item > a { 8 | font-weight: bold; /* hilite active item */ 9 | } 10 | 11 | /* default styles for [pagelist_ext] */ 12 | .page-list-ext { 13 | clear: both; 14 | } 15 | /* clearfix-hack */ 16 | .page-list-ext { 17 | *zoom: 1; 18 | } 19 | .page-list-ext:before, .page-list-ext:after { 20 | display: table; 21 | line-height: 0; 22 | content: ""; 23 | } 24 | .page-list-ext:after { 25 | clear: both; 26 | } 27 | .page-list-ext .page-list-ext-item { 28 | clear: both; 29 | margin: 10px 0 30px 0; 30 | } 31 | .page-list-ext .page-list-ext-image { 32 | float: left; 33 | display: inline; 34 | margin: 5px 15px 15px 0; 35 | } 36 | .page-list-ext .page-list-ext-title { 37 | clear: none; 38 | } 39 | -------------------------------------------------------------------------------- /html/static/css/print.min.css: -------------------------------------------------------------------------------- 1 | h1,h2,h3,h4,h5,h6,img{page-break-inside:avoid;page-break-after:avoid}a:link,a:visited,body{color:#000}@page{size:A4 landscape;margin:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#ckepop,#comments,#comments-div,#footer,#gplusone,#header,#menus,#nav-below,#respond,#rss_border,#search,#sidebar,#sidebar-border,.add-info,.close-sidebar,.commentlist,.copyright,.navigation,.post-info-bottom,.post-info-top,.post-nav,.post_info_bootom,.post_info_top,.related_post,.related_post_title,.trackbacks-pingbacks,.wp_codebox_hide,.wp_codebox_msgheader,.yarpp-related{display:none}body,html{width:210mm;height:297mm}body{width:100%;height:100%;margin:0;padding:0;background:#fff}#main,.postcontent{margin:0;padding-right:1in;width:210mm;min-height:297mm;font-size:1.25em}#content,.postcontent{text-align:left;font-size:14px;line-height:135%;width:auto;margin:0;float:none}h3{margin-left:10px;margin-bottom:0;padding-bottom:0}blockquote,pre,table{page-break-inside:avoid}dl,ol,ul{page-break-before:avoid}img.centered{display:block;margin-left:auto;margin-right:auto}img.left,img.right{padding:4px;display:inline}img.right{margin:0 0 2px 7px}img.left{margin:0 7px 2px 0}.right{float:right}.left{float:left}h1{font-size:22px}h2{font-size:18px}h3{font-size:16px}h4{font-size:14px}h5{font-size:13px}h6{font-size:12px}.post_title_h2{font-size:22px;font-weight:700;text-decoration:none}h2.title{text-align:center}.entry{line-height:30px}.latex_cor,.latex_def,.latex_examp,.latex_lem,.latex_prob,.latex_prop,.latex_rem,.latex_thm{display:block;text-align:left;margin:20px 5px;padding:10px 5px 25px 15px;background:#eee;font-style:italic}.post_content ol,.post_content ul{margin:0 0 1em 2em}.post_content ul{list-style-type:disc}.post_content ul ul{list-style-type:circle}.post_content ul ul ul{list-style-type:square}.post_content ol{list-style-type:decimal}.post_content ol ol{list-style-type:lower-alpha}.post_content ol ol ol{list-style-type:lower-roman} 2 | -------------------------------------------------------------------------------- /html/static/css/public.css: -------------------------------------------------------------------------------- 1 | /** 2 | * The files in /assets are unmodified. 3 | * This file contains 4 | * - resets, in an attempt to ensure sliders display properly in all themes 5 | * - modifications to the default sliders CSS 6 | */ 7 | 8 | /* general resets */ 9 | .metaslider { 10 | position: relative; 11 | z-index: 0; 12 | } 13 | 14 | .metaslider .caption { 15 | padding: 5px 10px; 16 | word-wrap: break-word; 17 | } 18 | 19 | .metaslider .caption-wrap { 20 | position: absolute; 21 | bottom: 0; 22 | left: 0; 23 | background: black; 24 | color: white; 25 | opacity: 0.7; 26 | margin: 0; 27 | display: block; 28 | width: 100%; 29 | line-height: 1.4em; 30 | } 31 | 32 | .metaslider img { 33 | height: auto; 34 | padding: 0; 35 | margin: 0; 36 | -moz-user-select: none; 37 | } 38 | 39 | .metaslider a { 40 | outline: none; 41 | } 42 | 43 | .metaslider .theme-default .nivoSlider { 44 | -webkit-box-shadow: 0 0 0; 45 | -moz-box-shadow: 0 0 0; 46 | box-shadow: 0 0 0; 47 | } 48 | 49 | .metaslider.ms-left { 50 | float: left; 51 | margin: 0 20px 20px 0; 52 | } 53 | 54 | .metaslider.ms-right { 55 | float: right; 56 | margin: 0 0 20px 20px; 57 | } 58 | 59 | .metaslider li:before, 60 | .metaslider li:after { 61 | content: "" !important; 62 | display: none !important; 63 | bottom: auto !important; 64 | margin: 0 !important; 65 | } 66 | 67 | .metaslider .caption-wrap .caption img { 68 | width: auto; 69 | } 70 | 71 | /** quick resets **/ 72 | .article .metaslider ul, 73 | .article .metaslider ol, 74 | .article .metaslider li, 75 | .article .metaslider img, 76 | .art-article .metaslider ul, 77 | .art-article .metaslider ol, 78 | .art-article .metaslider li, 79 | .art-article .metaslider img, 80 | #widgets .metaslider ul, 81 | #widgets .metaslider ol, 82 | #widgets .metaslider li, 83 | #widgets .metaslider img, 84 | .entry .metaslider ul, 85 | .entry .metaslider ol, 86 | .entry .metaslider li, 87 | .entry .metaslider img, 88 | #content .metaslider ul, 89 | #content .metaslider ol, 90 | #content .metaslider li, 91 | #content .metaslider img, 92 | .entry-content .metaslider ul, 93 | .entry-content .metaslider ol, 94 | .entry-content .metaslider li, 95 | .entry-content .metaslider img, 96 | .metaslider .flexslider ul, 97 | .metaslider .flexslider .slides li, 98 | .metaslider .flexslider .slides ul, 99 | .metaslider .flexslider .slides ol, 100 | .metaslider .flexslider .flex-direction-nav, 101 | .metaslider .flexslider .flex-direction-nav li, 102 | *[class*='-article'] .metaslider img { 103 | border: 0; 104 | margin: 0; 105 | list-style-type: none; 106 | list-style: none; 107 | padding: 0; 108 | line-height: normal; 109 | max-width: none; 110 | max-height: none; 111 | } 112 | 113 | .metaslider .slides img { 114 | width: 100%; 115 | display: block; 116 | } -------------------------------------------------------------------------------- /html/static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /html/static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /html/static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /html/static/fonts/monaco-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/fonts/monaco-webfont.eot -------------------------------------------------------------------------------- /html/static/fonts/monaco-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/fonts/monaco-webfont.ttf -------------------------------------------------------------------------------- /html/static/fonts/monaco-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/fonts/monaco-webfont.woff -------------------------------------------------------------------------------- /html/static/images/28af17f471ec4e668c9947c4760bb7c0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/28af17f471ec4e668c9947c4760bb7c0.gif -------------------------------------------------------------------------------- /html/static/images/5b9c6a52505a47da9e041b61226317ce.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/5b9c6a52505a47da9e041b61226317ce.gif -------------------------------------------------------------------------------- /html/static/images/arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/arrows.png -------------------------------------------------------------------------------- /html/static/images/bullets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/bullets.png -------------------------------------------------------------------------------- /html/static/images/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/buttons.png -------------------------------------------------------------------------------- /html/static/images/crayon_tinymce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/crayon_tinymce.png -------------------------------------------------------------------------------- /html/static/images/docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/docs.png -------------------------------------------------------------------------------- /html/static/images/donate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/donate.png -------------------------------------------------------------------------------- /html/static/images/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/github.png -------------------------------------------------------------------------------- /html/static/images/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/google.png -------------------------------------------------------------------------------- /html/static/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/loading.gif -------------------------------------------------------------------------------- /html/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/logo.png -------------------------------------------------------------------------------- /html/static/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/pause.png -------------------------------------------------------------------------------- /html/static/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/play.png -------------------------------------------------------------------------------- /html/static/images/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/twitter.png -------------------------------------------------------------------------------- /html/static/images/weixin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/weixin.gif -------------------------------------------------------------------------------- /html/static/images/wordpress-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stormsha/HTML/81758225419322be83a9e981186edf09bdee142b/html/static/images/wordpress-blue.png -------------------------------------------------------------------------------- /html/static/js/crayon.min.js: -------------------------------------------------------------------------------- 1 | var jQueryCrayon=jQuery;(function(a){CrayonUtil=new function(){var c=this;var b=null;c.init=function(){b=CrayonSyntaxSettings;c.initGET()};c.addPrefixToID=function(d){return d.replace(/^([#.])?(.*)$/,"$1"+b.prefix+"$2")};c.removePrefixFromID=function(e){var d=new RegExp("^[#.]?"+b.prefix,"i");return e.replace(d,"")};c.cssElem=function(d){return a(c.addPrefixToID(d))};c.setDefault=function(e,f){return(typeof e=="undefined")?f:e};c.setMax=function(e,d){return e<=d?e:d};c.setMin=function(d,e){return d>=e?d:e};c.setRange=function(e,f,d){return c.setMax(c.setMin(e,f),d)};c.getExt=function(e){if(e.indexOf(".")==-1){return undefined}var d=e.split(".");if(d.length){d=d[d.length-1]}else{d=""}return d};c.initGET=function(){window.currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;window.currentDir=window.currentURL.substring(0,window.currentURL.lastIndexOf("/"));function d(e){e=e.split("+").join(" ");var h={},g,f=/[?&]?([^=]+)=([^&]*)/g;while(g=f.exec(e)){h[decodeURIComponent(g[1])]=decodeURIComponent(g[2])}return h}window.GET=d(document.location.search)};c.getAJAX=function(d,e){d.version=b.version;a.get(b.ajaxurl,d,e)};c.postAJAX=function(d,e){d.version=b.version;a.post(b.ajaxurl,d,e)};c.reload=function(){var d="?";for(var e in window.GET){d+=e+"="+window.GET[e]+"&"}window.location=window.currentURL+d};c.escape=function(d){if(typeof encodeURIComponent=="function"){return encodeURIComponent(d)}else{if(typeof escape!="function"){return escape(d)}else{return d}}};c.log=function(d){if(typeof console!="undefined"&&b.debug){console.log(d)}};c.decode_html=function(d){return String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};c.encode_html=function(d){return String(d).replace(/&/g,"&").replace(//g,">")};c.getReadableColor=function(g,f){f=a.extend({amount:0.5,xMulti:1,yMulti:1.5,normalizeHue:[20,180],normalizeHueXMulti:1/2.5,normalizeHueYMulti:1},f);var d=tinycolor(g);var e=d.toHsv();var i={x:e.s,y:1-e.v};i.x*=f.xMulti;i.y*=f.yMulti;if(f.normalizeHue&&e.h>f.normalizeHue[0]&&e.h":">"};return this.replace(/[&<>]/g,function(c){return b[c]||c})};String.prototype.linkify=function(b){b=typeof b!="undefined"?b:"";return this.replace(/(http(s)?:\/\/(\S)+)/gmi,'$1')};String.prototype.toTitleCase=function(){var b=this.split(/\s+/);var c="";a.each(b,function(e,d){if(d!=""){c+=d.slice(0,1).toUpperCase()+d.slice(1,d.length);if(e!=b.length-1&&b[e+1]!=""){c+=" "}}});return c}})(jQueryCrayon);jqueryPopup=Object();jqueryPopup.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0,data:null,event:"click"};(function(a){popupWindow=function(d,c,f,b){f=typeof f!=="undefined"?f:null;b=typeof b!=="undefined"?b:null;if(typeof d=="string"){d=jQuery(d)}if(!(d instanceof jQuery)){return false}var e=jQuery.extend({},jqueryPopup.defaultSettings,c||{});d.handler=jQuery(d).bind(e.event,function(){if(f){f()}var g="height="+e.height+",width="+e.width+",toolbar="+e.toolbar+",scrollbars="+e.scrollbars+",status="+e.status+",resizable="+e.resizable+",location="+e.location+",menuBar="+e.menubar;e.windowName=e.windowName||jQuery(this).attr("name");var h=jQuery(this).attr("href");if(!e.windowURL&&!(h=="#")&&!(h=="")){e.windowURL=jQuery(this).attr("href")}var i,j;var k=null;if(e.centerBrowser){if(typeof window.screenY=="undefined"){i=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(e.height/2)));j=window.screenLeft+((((document.body.offsetWidth+20)/2)-(e.width/2)))}else{i=window.screenY+(((window.outerHeight/2)-(e.height/2)));j=window.screenX+(((window.outerWidth/2)-(e.width/2)))}k=window.open(e.windowURL,e.windowName,g+",left="+j+",top="+i)}else{if(e.centerScreen){i=(screen.height-e.height)/2;j=(screen.width-e.width)/2;k=window.open(e.windowURL,e.windowName,g+",left="+j+",top="+i)}else{k=window.open(e.windowURL,e.windowName,g+",left="+e.left+",top="+e.top)}}if(k!=null){k.focus();if(e.data){k.document.write(e.data)}}if(b){b()}});return e};popdownWindow=function(b,c){if(typeof c=="undefined"){c="click"}b=jQuery(b);if(!(b instanceof jQuery)){return false}b.unbind(c,b.handler)}})(jQueryCrayon);(function(f){f.fn.exists=function(){return this.length!==0};f.fn.style=function(B,E,A){var D=this.get(0);if(typeof D=="undefined"){return}var C=D.style;if(typeof B!="undefined"){if(typeof E!="undefined"){A=typeof A!="undefined"?A:"";if(typeof C.setProperty!="undefined"){C.setProperty(B,E,A)}else{C[B]=E}}else{return C[B]}}else{return C}};var d="crayon-pressed";var a="";var n="div.crayon-syntax";var e=".crayon-toolbar";var c=".crayon-info";var w=".crayon-plain";var o=".crayon-main";var m=".crayon-table";var v=".crayon-loading";var h=".crayon-code";var p=".crayon-title";var l=".crayon-tools";var b=".crayon-nums";var j=".crayon-num";var q=".crayon-line";var g="crayon-wrapped";var s=".crayon-nums-content";var u=".crayon-nums-button";var k=".crayon-wrap-button";var i=".crayon-expand-button";var t="crayon-expanded crayon-toolbar-visible";var y="crayon-placeholder";var x=".crayon-popup-button";var r=".crayon-copy-button";var z=".crayon-plain-button";CrayonSyntax=new function(){var I=this;var N=new Object();var ag;var H;var G=0;var Z;I.init=function(){if(typeof N=="undefined"){N=new Object()}ag=CrayonSyntaxSettings;H=CrayonSyntaxStrings;f(n).each(function(){I.process(this)})};I.process=function(aD,aE){aD=f(aD);var ar=aD.attr("id");if(ar=="crayon-"){ar+=X()}aD.attr("id",ar);CrayonUtil.log(ar);if(typeof aE=="undefined"){aE=false}if(!aE&&!aa(ar)){return}var au=aD.find(e);var aC=aD.find(c);var ap=aD.find(w);var aq=aD.find(o);var aB=aD.find(m);var aj=aD.find(h);var aG=aD.find(p);var aA=aD.find(l);var ay=aD.find(b);var av=aD.find(s);var az=aD.find(u);var am=aD.find(k);var ao=aD.find(i);var aF=aD.find(x);var at=aD.find(r);var al=aD.find(z);N[ar]=aD;N[ar].toolbar=au;N[ar].plain=ap;N[ar].info=aC;N[ar].main=aq;N[ar].table=aB;N[ar].code=aj;N[ar].title=aG;N[ar].tools=aA;N[ar].nums=ay;N[ar].nums_content=av;N[ar].numsButton=az;N[ar].wrapButton=am;N[ar].expandButton=ao;N[ar].popup_button=aF;N[ar].copy_button=at;N[ar].plainButton=al;N[ar].numsVisible=true;N[ar].wrapped=false;N[ar].plainVisible=false;N[ar].toolbar_delay=0;N[ar].time=1;f(w).css("z-index",0);var aw=aq.style();N[ar].mainStyle={height:aw&&aw.height||"","max-height":aw&&aw.maxHeight||"","min-height":aw&&aw.minHeight||"",width:aw&&aw.width||"","max-width":aw&&aw.maxWidth||"","min-width":aw&&aw.minWidth||""};N[ar].mainHeightAuto=N[ar].mainStyle.height==""&&N[ar].mainStyle["max-height"]=="";var ak;var ax=0;N[ar].loading=true;N[ar].scrollBlockFix=false;az.click(function(){CrayonSyntax.toggleNums(ar)});am.click(function(){CrayonSyntax.toggleWrap(ar)});ao.click(function(){CrayonSyntax.toggleExpand(ar)});al.click(function(){CrayonSyntax.togglePlain(ar)});at.click(function(){CrayonSyntax.copyPlain(ar)});B(ar);var an=function(){if(ay.filter('[data-settings~="hide"]').length!=0){av.ready(function(){CrayonUtil.log("function"+ar);CrayonSyntax.toggleNums(ar,true,true)})}else{ac(ar)}if(typeof N[ar].expanded=="undefined"){if(Math.abs(N[ar].main.outerWidth()-N[ar].table.outerWidth())<10){N[ar].expandButton.hide()}else{N[ar].expandButton.show()}}if(ax==5){clearInterval(ak);N[ar].loading=false}ax++};ak=setInterval(an,300);C(ar);f(j,N[ar]).each(function(){var aJ=f(this).attr("data-line");var aI=f("#"+aJ);var aH=aI.style("height");if(aH){aI.attr("data-height",aH)}});aq.css("position","relative");aq.css("z-index",1);Z=(aD.filter('[data-settings~="touchscreen"]').length!=0);if(!Z){aq.click(function(){A(ar,"",false)});ap.click(function(){A(ar,"",false)});aC.click(function(){A(ar,"",false)})}if(aD.filter('[data-settings~="no-popup"]').length==0){N[ar].popup_settings=popupWindow(aF,{height:screen.height-200,width:screen.width-100,top:75,left:50,scrollbars:1,windowURL:"",data:""},function(){F(ar)},function(){})}ap.css("opacity",0);N[ar].toolbarVisible=true;N[ar].hasOneLine=aB.outerHeight()
'+I.removeCssInline(I.getHtmlString(ak))+"
"};I.minimize=function(al){var ak=f('
');N[al].tools.append(ak);N[al].origTitle=N[al].title.html();if(!N[al].origTitle){N[al].title.html(H.minimize)}var aj="crayon-minimized";var ai=function(){N[al].toolbarPreventHide=false;ak.remove();N[al].removeClass(aj);N[al].title.html(N[al].origTitle);var am=N[al].toolbar;if(am.filter('[data-settings~="never-show"]').length!=0){am.remove()}};N[al].toolbar.click(ai);ak.click(ai);N[al].addClass(aj);N[al].toolbarPreventHide=true;T(al,undefined,undefined,0)};I.getHtmlString=function(ai){return f("
").append(ai.clone()).remove().html()};I.removeCssInline=function(ak){var aj=/style\s*=\s*"([^"]+)"/gmi;var ai=null;while((ai=aj.exec(ak))!=null){var al=ai[1];al=al.replace(/\b(?:width|height)\s*:[^;]+;/gmi,"");ak=ak.sliceReplace(ai.index,ai.index+ai[0].length,'style="'+al+'"')}return ak};I.getAllCSS=function(){var ak="";var aj=f('link[rel="stylesheet"]');var ai=[];if(aj.length==1){ai=aj}else{ai=aj.filter('[href*="crayon-syntax-highlighter"], [href*="min/"]')}ai.each(function(){var al=I.getHtmlString(f(this));ak+=al});return ak};I.copyPlain=function(ak,al){if(typeof N[ak]=="undefined"){return aa(ak)}var aj=N[ak].plain;I.togglePlain(ak,true,true);T(ak,true);var ai=N[ak].mac?"\u2318":"CTRL";var am=H.copy;am=am.replace(/%s/,ai+"+C");am=am.replace(/%s/,ai+"+V");A(ak,am);return false};var A=function(aj,al,ai){if(typeof N[aj]=="undefined"){return aa(aj)}var ak=N[aj].info;if(typeof al=="undefined"){al=""}if(typeof ai=="undefined"){ai=true}if(L(ak)&&ai){ak.html("
"+al+"
");ak.css("margin-top",-ak.outerHeight());ak.show();Q(aj,ak,true);setTimeout(function(){Q(aj,ak,false)},5000)}if(!ai){Q(aj,ak,false)}};var B=function(ai){if(window.devicePixelRatio>1){var aj=f(".crayon-button-icon",N[ai].toolbar);aj.each(function(){var al=f(this).css("background-image");var ak=al.replace(/\.(?=[^\.]+$)/g,"@2x.");f(this).css("background-size","48px 128px");f(this).css("background-image",ak)})}};var L=function(ai){var aj="-"+ai.outerHeight()+"px";if(ai.css("margin-top")==aj||ai.css("display")=="none"){return true}else{return false}};var Q=function(al,ak,aj,an,am,ap){var ai=function(){if(ap){ap(al,ak)}};var ao="-"+ak.outerHeight()+"px";if(typeof aj=="undefined"){if(L(ak)){aj=true}else{aj=false}}if(typeof an=="undefined"){an=100}if(an==false){an=false}if(typeof am=="undefined"){am=0}ak.stop(true);if(aj==true){ak.show();ak.animate({marginTop:0},ah(an,al),ai)}else{if(aj==false){if(ak.css("margin-top")=="0px"&&am){ak.delay(am)}ak.animate({marginTop:ao},ah(an,al),function(){ak.hide();ai()})}}};I.togglePlain=function(al,am,aj){if(typeof N[al]=="undefined"){return aa(al)}var ai=N[al].main;var ak=N[al].plain;if((ai.is(":animated")||ak.is(":animated"))&&typeof am=="undefined"){return}ae(al);var ao,an;if(typeof am!="undefined"){if(am){ao=ai;an=ak}else{ao=ak;an=ai}}else{if(ai.css("z-index")==1){ao=ai;an=ak}else{ao=ak;an=ai}}N[al].plainVisible=(an==ak);N[al].top=ao.scrollTop();N[al].left=ao.scrollLeft();N[al].scrollChanged=false;C(al);ao.stop(true);ao.fadeTo(ah(500,al),0,function(){ao.css("z-index",0)});an.stop(true);an.fadeTo(ah(500,al),1,function(){an.css("z-index",1);if(an==ak){if(aj){ak.select()}else{}}an.scrollTop(N[al].top+1);an.scrollTop(N[al].top);an.scrollLeft(N[al].left+1);an.scrollLeft(N[al].left)});an.scrollTop(N[al].top);an.scrollLeft(N[al].left);ab(al);T(al,false);return false};I.toggleNums=function(am,al,ai){if(typeof N[am]=="undefined"){aa(am);return false}if(N[am].table.is(":animated")){return false}var ao=Math.round(N[am].nums_content.outerWidth()+1);var an="-"+ao+"px";var ak;if(typeof al!="undefined"){ak=false}else{ak=(N[am].table.css("margin-left")==an)}var aj;if(ak){aj="0px";N[am].numsVisible=true}else{N[am].table.css("margin-left","0px");N[am].numsVisible=false;aj=an}if(typeof ai!="undefined"){N[am].table.css("margin-left",aj);ac(am);return false}var ap=(N[am].table.outerWidth()+J(N[am].table.css("margin-left"))>N[am].main.outerWidth());var aq=(N[am].table.outerHeight()>N[am].main.outerHeight());if(!ap&&!aq){N[am].main.css("overflow","hidden")}N[am].table.animate({marginLeft:aj},ah(200,am),function(){if(typeof N[am]!="undefined"){ac(am);if(!ap&&!aq){N[am].main.css("overflow","auto")}}});return false};I.toggleWrap=function(ai){N[ai].wrapped=!N[ai].wrapped;Y(ai)};I.toggleExpand=function(ai){var aj=!CrayonUtil.setDefault(N[ai].expanded,false);D(ai,aj)};var Y=function(ai,aj){aj=CrayonUtil.setDefault(aj,true);if(N[ai].wrapped){N[ai].addClass(g)}else{N[ai].removeClass(g)}E(ai);if(!N[ai].expanded&&aj){V(ai)}N[ai].wrapTimes=0;clearInterval(N[ai].wrapTimer);N[ai].wrapTimer=setInterval(function(){if(N[ai].is(":visible")){O(ai);N[ai].wrapTimes++;if(N[ai].wrapTimes==5){clearInterval(N[ai].wrapTimer)}}},200)};var ad=function(ai){if(typeof N[ai]=="undefined"){aa(ai);return false}};var J=function(aj){if(typeof aj!="string"){return 0}var ai=aj.replace(/[^-0-9]/g,"");if(ai.length==0){return 0}else{return parseInt(ai)}};var ac=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].numsVisible=="undefined"){return}if(N[ai].numsVisible){N[ai].numsButton.removeClass(a);N[ai].numsButton.addClass(d)}else{N[ai].numsButton.removeClass(d);N[ai].numsButton.addClass(a)}};var E=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].wrapped=="undefined"){return}if(N[ai].wrapped){N[ai].wrapButton.removeClass(a);N[ai].wrapButton.addClass(d)}else{N[ai].wrapButton.removeClass(d);N[ai].wrapButton.addClass(a)}};var W=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].expanded=="undefined"){return}if(N[ai].expanded){N[ai].expandButton.removeClass(a);N[ai].expandButton.addClass(d)}else{N[ai].expandButton.removeClass(d);N[ai].expandButton.addClass(a)}};var ab=function(ai){if(typeof N[ai]=="undefined"||typeof N[ai].plainVisible=="undefined"){return}if(N[ai].plainVisible){N[ai].plainButton.removeClass(a);N[ai].plainButton.addClass(d)}else{N[ai].plainButton.removeClass(d);N[ai].plainButton.addClass(a)}};var T=function(aj,ai,al,ak){if(typeof N[aj]=="undefined"){return aa(aj)}else{if(!N[aj].toolbarMouseover){return}else{if(ai==false&&N[aj].toolbarPreventHide){return}else{if(Z){return}}}}var am=N[aj].toolbar;if(typeof ak=="undefined"){ak=N[aj].toolbar_delay}Q(aj,am,ai,al,ak,function(){N[aj].toolbarVisible=ai})};var R=function(ak,ai){var aj=f.extend({},ak);aj.width+=ai.width;aj.height+=ai.height;return aj};var P=function(ak,ai){var aj=f.extend({},ak);aj.width-=ai.width;aj.height-=ai.height;return aj};var U=function(ai){if(typeof N[ai].initialSize=="undefined"){N[ai].toolbarHeight=N[ai].toolbar.outerHeight();N[ai].innerSize={width:N[ai].width(),height:N[ai].height()};N[ai].outerSize={width:N[ai].outerWidth(),height:N[ai].outerHeight()};N[ai].borderSize=P(N[ai].outerSize,N[ai].innerSize);N[ai].initialSize={width:N[ai].main.outerWidth(),height:N[ai].main.outerHeight()};N[ai].initialSize.height+=N[ai].toolbarHeight;N[ai].initialOuterSize=R(N[ai].initialSize,N[ai].borderSize);N[ai].finalSize={width:N[ai].table.outerWidth(),height:N[ai].table.outerHeight()};N[ai].finalSize.height+=N[ai].toolbarHeight;N[ai].finalSize.width=CrayonUtil.setMin(N[ai].finalSize.width,N[ai].initialSize.width);N[ai].finalSize.height=CrayonUtil.setMin(N[ai].finalSize.height,N[ai].initialSize.height);N[ai].diffSize=P(N[ai].finalSize,N[ai].initialSize);N[ai].finalOuterSize=R(N[ai].finalSize,N[ai].borderSize);N[ai].initialSize.height+=N[ai].toolbar.outerHeight()}};var D=function(al,ao){if(typeof N[al]=="undefined"){return aa(al)}if(typeof ao=="undefined"){return}var aj=N[al].main;var aq=N[al].plain;if(ao){if(typeof N[al].expanded=="undefined"){U(al);N[al].expandTime=CrayonUtil.setRange(N[al].diffSize.width/3,300,800);N[al].expanded=false;var ap=N[al].finalOuterSize;N[al].placeholder=f("
");N[al].placeholder.addClass(y);N[al].placeholder.css(ap);N[al].before(N[al].placeholder);N[al].placeholder.css("margin",N[al].css("margin"));f(window).bind("resize",K)}var am={height:"auto","min-height":"none","max-height":"none"};var ai={width:"auto","min-width":"none","max-width":"none"};N[al].outerWidth(N[al].outerWidth());N[al].css({"min-width":"none","max-width":"none"});var an={width:N[al].finalOuterSize.width};if(!N[al].mainHeightAuto&&!N[al].hasOneLine){an.height=N[al].finalOuterSize.height;N[al].outerHeight(N[al].outerHeight())}aj.css(am);aj.css(ai);N[al].stop(true);N[al].animate(an,ah(N[al].expandTime,al),function(){N[al].expanded=true;W(al)});N[al].placeholder.show();f("body").prepend(N[al]);N[al].addClass(t);K()}else{var ar=N[al].initialOuterSize;var ak=N[al].toolbar_delay;if(ar){N[al].stop(true);if(!N[al].expanded){N[al].delay(ak)}var an={width:ar.width};if(!N[al].mainHeightAuto&&!N[al].hasOneLine){an.height=ar.height}N[al].animate(an,ah(N[al].expandTime,al),function(){af(al)})}else{setTimeout(function(){af(al)},ak)}N[al].placeholder.hide();N[al].placeholder.before(N[al]);N[al].css({left:"auto",top:"auto"});N[al].removeClass(t)}ae(al);if(ao){Y(al,false)}};var K=function(){for(uid in N){if(N[uid].hasClass(t)){N[uid].css(N[uid].placeholder.offset())}}};var af=function(ai){N[ai].expanded=false;V(ai);W(ai);if(N[ai].wrapped){Y(ai)}};var M=function(al,aj,am){if(typeof N[al]=="undefined"){return aa(al)}if(typeof aj=="undefined"||am||N[al].expanded){return}var ai=N[al].main;var ak=N[al].plain;if(aj){ai.css("overflow","auto");ak.css("overflow","auto");if(typeof N[al].top!="undefined"){visible=(ai.css("z-index")==1?ai:ak);visible.scrollTop(N[al].top-1);visible.scrollTop(N[al].top);visible.scrollLeft(N[al].left-1);visible.scrollLeft(N[al].left)}}else{visible=(ai.css("z-index")==1?ai:ak);N[al].top=visible.scrollTop();N[al].left=visible.scrollLeft();ai.css("overflow","hidden");ak.css("overflow","hidden")}N[al].scrollChanged=true;C(al)};var C=function(ai){N[ai].table.style("width","100%","important");var aj=setTimeout(function(){N[ai].table.style("width","");clearInterval(aj)},10)};var V=function(ak){var aj=N[ak].main;var ai=N[ak].mainStyle;aj.css(ai);N[ak].css("height","auto");N[ak].css("width",ai.width);N[ak].css("max-width",ai["max-width"]);N[ak].css("min-width",ai["min-width"])};var ae=function(ai){N[ai].plain.outerHeight(N[ai].main.outerHeight())};var O=function(ai){f(j,N[ai]).each(function(){var al=f(this).attr("data-line");var ak=f("#"+al);var aj=null;if(N[ai].wrapped){ak.css("height","");aj=ak.outerHeight();aj=aj?aj:""}else{aj=ak.attr("data-height");aj=aj?aj:"";ak.css("height",aj)}f(this).css("height",aj)})};var ah=function(ai,aj){if(ai=="fast"){ai=200}else{if(ai=="slow"){ai=600}else{if(!S(ai)){ai=parseInt(ai);if(isNaN(ai)){return 0}}}}return ai*N[aj].time};var S=function(ai){return typeof ai=="number"}};f(document).ready(function(){CrayonSyntax.init()})})(jQueryCrayon); -------------------------------------------------------------------------------- /html/static/js/html5.js: -------------------------------------------------------------------------------- 1 | (function(a,b){function h(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function i(){var a=l.elements;return typeof a=="string"?a.split(" "):a}function j(a){var b={},c=a.createElement,f=a.createDocumentFragment,g=f();a.createElement=function(a){if(!l.shivMethods)return c(a);var f;return b[a]?f=b[a].cloneNode():e.test(a)?f=(b[a]=c(a)).cloneNode():f=c(a),f.canHaveChildren&&!d.test(a)?g.appendChild(f):f},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(a){return c(a),g.createElement(a),'c("'+a+'")'})+");return n}")(l,g)}function k(a){var b;return a.documentShived?a:(l.shivCSS&&!f&&(b=!!h(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),g||(b=!j(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g;(function(){var c=b.createElement("a");c.innerHTML="",f="hidden"in c,f&&typeof injectElementWithStyles=="function"&&injectElementWithStyles("#modernizr{}",function(b){b.hidden=!0,f=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).display=="none"}),g=c.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var l={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:k};a.html5=l,k(b)})(this,document) -------------------------------------------------------------------------------- /html/static/js/jquery.fitvids.js: -------------------------------------------------------------------------------- 1 | /*global jQuery */ 2 | /*jshint browser:true */ 3 | /*! 4 | * FitVids 1.1 5 | * 6 | * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 7 | * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 8 | * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 9 | * 10 | */ 11 | 12 | (function( $ ){ 13 | 14 | 'use strict'; 15 | 16 | $.fn.fitVids = function( options ) { 17 | var settings = { 18 | customSelector: null, 19 | ignore: null 20 | }; 21 | 22 | if(!document.getElementById('fit-vids-style')) { 23 | // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js 24 | var head = document.head || document.getElementsByTagName('head')[0]; 25 | var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; 26 | var div = document.createElement("div"); 27 | div.innerHTML = '

x

'; 28 | head.appendChild(div.childNodes[1]); 29 | } 30 | 31 | if ( options ) { 32 | $.extend( settings, options ); 33 | } 34 | 35 | return this.each(function(){ 36 | var selectors = [ 37 | 'iframe[src*="player.vimeo.com"]', 38 | 'iframe[src*="youtube.com"]', 39 | 'iframe[src*="youtube-nocookie.com"]', 40 | 'iframe[src*="kickstarter.com"][src*="video.html"]', 41 | 'object', 42 | 'embed' 43 | ]; 44 | 45 | if (settings.customSelector) { 46 | selectors.push(settings.customSelector); 47 | } 48 | 49 | var ignoreList = '.fitvidsignore'; 50 | 51 | if(settings.ignore) { 52 | ignoreList = ignoreList + ', ' + settings.ignore; 53 | } 54 | 55 | var $allVideos = $(this).find(selectors.join(',')); 56 | $allVideos = $allVideos.not('object object'); // SwfObj conflict patch 57 | $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. 58 | 59 | $allVideos.each(function(){ 60 | var $this = $(this); 61 | if($this.parents(ignoreList).length > 0) { 62 | return; // Disable FitVids on this video. 63 | } 64 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 65 | if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) 66 | { 67 | $this.attr('height', 9); 68 | $this.attr('width', 16); 69 | } 70 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 71 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 72 | aspectRatio = height / width; 73 | if(!$this.attr('id')){ 74 | var videoID = 'fitvid' + Math.floor(Math.random()*999999); 75 | $this.attr('id', videoID); 76 | } 77 | $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); 78 | $this.removeAttr('height').removeAttr('width'); 79 | }); 80 | }); 81 | }; 82 | // Works with either jQuery or Zepto 83 | })( window.jQuery || window.Zepto ); -------------------------------------------------------------------------------- /html/static/js/jquery.nivo.slider.pack.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery Nivo Slider v3.2 3 | * http://nivo.dev7studios.com 4 | * 5 | * Copyright 2012, Dev7studios 6 | * Free to use and abuse under the MIT license. 7 | * http://www.opensource.org/licenses/mit-license.php 8 | * 9 | * Meta Slider modifications: caption taken from 'data-title' attribute instead of 'title' attribute. 10 | */ 11 | 12 | (function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('
'));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("data-title")!=""&&i.currentImage.attr("data-title")!=undefined){var r=i.currentImage.attr("data-title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('
');s.after(i.controlNavEl);for(var l=0;l')}else{i.controlNavEl.append(''+(l+1)+"")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s
').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('
').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o
').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('
').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x=0&&T0){for(;u=l.shift();)u&&u();_[e]=null}t&&t()}if(u(m,e))t&&t();else if(u(_,e))_[e]=_[e]||[],_[e].push(t);else{_[e]=[];var o=n.getElementsByTagName("head")[0],a=n.createElement("script");a.type="text/javascript",a.charset="utf-8",a.src=e,a.setAttribute("_md_","_anymoore_"+e),o.appendChild(a),s(t)&&(n.addEventListener?a.addEventListener("load",r,!1):a.onreadystatechange=function(){/loaded|complete/.test(a.readyState)&&(a.onreadystatechange=null,r())})}}function r(n){var t=null;if("undefined"!=typeof e._CLOUDA_HASHMAP_.res){var r=e._CLOUDA_HASHMAP_.res[n]||{};t=r.pkg?r.pkg:r.src||n}return t=".js"!==t.slice(-3)?t+".js":t,w="http:"===window.location.protocol?"http://apps.bdimg.com/cloudaapi":"https://openapi.baidu.com/cloudaapi",-1!==t.indexOf("http://")||-1!==t.indexOf("https://")?t:t=w+t}function o(e,n){var o=i(e,"weak")||{};if(u(o,"exports"))return void n(e);var a=null;if("undefined"!=typeof r)a=r(e);else{var s=l(e);a=".js"!==s.slice(-3)?s+".js":s}a&&t(a,function(){n(e)})}function a(e){var n=[];if(e&&e.length>0)for(var t=0,r=e.length;r>t;t++)"require"!==e[t]&&"exports"!==e[t]&&"module"!==e[t]&&n.push(e[t]);return n}function i(e,n){var n=n||"strong";if(!e||!u(y,e))return"strong"!==n?{}:(d('%c_moduleMap中不存在该模块: "'+e+'"',"color:red"),!1);var t=y[e];return u(t,"alias")&&(t=y[t.alias]),t}function l(e){var n=[];if(-1!==e.indexOf("://"))return e;n=e.split("/"),e=[];for(var t=0,r=n.length;r>t;t++)"."!==n[t]&&(".."===n[t]?e.length>=2&&e.pop():e.length&&""===n[t]||e.push(n[t]));return e=e.join("/")}function u(e,n){return g.hasOwnProperty.call(e,n)}function s(e){return"[object Function]"===h.call(e)}function f(e){return"[object Array]"===h.call(e)}function c(e){return"[object Object]"===h.call(e)}function d(){if(b.debug){var n=Array.prototype.slice;e.console&&e.console.log.apply(console,n.call(arguments))}}var p,v,g=Object.prototype,h=g.toString,y={},m={},_={},x=[],j=0,b={debug:1,ts:0},w="";("undefined"==typeof e._define_||"undefined"==typeof e._require_)&&(v=function(e,n,t){if(!u(y,e)){if(s(e)||f(e)||c(e)){var r="_anonymous_mod_"+j++;1===arguments.length?(t=e,n=null):2===arguments.length&&(t=n,n=e),e=r}else s(n)&&2===arguments.length&&(t=n,n=null);y[e]={id:e,deps:n,factory:t},x.push(e)}},p=function(e,n){function t(e){var n=i(e)||{},t=[],l=0;if(u(n,"deps")&&n.deps&&(t=a(n.deps),l=t.length),l>0){f+=l-1;for(var s=0;l>s;s++){var c=t[s];o(c,arguments.callee)}}else--f<=0&&r()}function r(){if(x.length>0)for(var t=null;t=x.shift();)t&&p.sync(t);for(var r=[],o=0;s>o;o++)r.push(p.sync(e[o]));n&&n.apply(void 0,r),r=null}if("string"==typeof e&&(e=[e]),1===e.length&&1===arguments.length)return p.sync(e.join(""));var l=a(e),s=l.length,f=s;if(s)for(var c=0;s>c;c++){var d=l[c];o(d,t)}else r()},p.sync=function(e){var n,t,r,o=[];if(!u(y,e))throw new Error('Required unknown module, id: "'+e+'"');if(n=i(e)||{},u(n,"exports"))return n.exports;if(n.exports=t={},r=n.deps)for(var a=r.length,l=0;a>l;l++){var f=r[l];o.push("require"===f?p:"module"===f?n:"exports"===f?t:p.sync(f))}if(c(n.factory))n.exports=n.factory;else if(s(n.factory)){var d=n.factory.apply(void 0,o);void 0!==d&&d!==t&&(n.exports=d)}return n.exports},e._define_=v,e._require_=p,"undefined"==typeof e.clouda&&(e.clouda={}),e.clouda.define=v,e.clouda.require=p,v.amd={},v.version="0.9.0")}(window,document); 3 | ;!function(win,doc){function execApiStack(modules){var modulesLen=modules.length;if(modulesLen)for(var stackIndex=0;modulesLen>stackIndex;stackIndex++)eval(modules[stackIndex].func).apply(null,modules[stackIndex].arg)}function initApiStack(modules){for(var api_tmp,type,i=modules.length-1;i>=0;i--){clouda.device||(clouda.device={}),clouda.mbaas||(clouda.mbaas={}),clouda.lego||(clouda.lego={}),api_tmp=device_apis[modules[i]]?device_apis[modules[i]]:!1;var legoApiTmp=lego_apis[modules[i]]?lego_apis[modules[i]]:!1;if(api_tmp?type="device":legoApiTmp?(type="lego",api_tmp=legoApiTmp):(type="mbaas",api_tmp=mbaas_apis[modules[i]]?mbaas_apis[modules[i]]:!1),"undefined"==typeof eval("clouda."+type+"['"+modules[i]+"']")&&api_tmp){eval("clouda."+type+"['"+modules[i]+"']={}");for(var f_str,j=0,len=api_tmp.length;len>j;j++)f_str="function(){API_STACK.push({func:'clouda."+type+'["'+modules[i]+'"]["'+api_tmp[j]+"\"]',arg:arguments});}",eval("clouda."+type+"['"+modules[i]+"']['"+api_tmp[j]+"'] ="+f_str)}}}function getPathArr(e){for(var t,a=window._CLOUDA_HASHMAP_.res,o=[],i=0,n=e.length;n>i;i++)t=e[i],a["device/"+t]?o.push("device/"+t):a["mbaas/"+t]?o.push("mbaas/"+t):a["lego/"+t]?o.push("lego/"+t):a["ui/"+t]&&o.push("ui/"+t);return o}if("object"==typeof win){"undefined"==typeof win.clouda&&(win.clouda={}),win.Blend&&win.Blend.ui&&(clouda.ui=Blend.ui),win.Blend=win.blend=clouda;var device_apis={accelerometer:["get","startListen","stopListen"],activity:["start","checkSupport"],battery:["get","startListen","stopListen","checkSupport"],compass:["get","startListen","stopListen"],connection:["get","checkSupport"],contact:["find","insert","update","remove","count","getCursor"],device:["getImei","getSysVersion","getDeviceModelName","getScreenSize","checkSupport"],fs:["post","checkSupport","download","remove","removeAll","getMd5","unzip","getSurplusSize","read","getInfo"],geolocation:["get","startListen","stopListen","checkSupport"],globalization:["getPreferredLanguage","dateToString","stringToDate","getDatePattern","getDateNames","isDayLightSavingsTime","getFirstDayOfWeek","numberToString","getNumberPattern","getCurrencyPattern","getlocale","checkSupport"],gyro:["get","startListen","stopListen"],localStorage:["set","get","remove","count","empty"],media:["captureMedia","operateMedia","checkSupport"],notification:["alert","confirm","beep","vibrate","prompt","startLoad","stopLoad","startProgress","updateProgress","stopProgress"],qr:["startCapture","checkSupport"],screen:["captureScreen","shareImage","shareScreen"],orientation:["setOrientation","checkSupport"],keyboard:["startListenKeyboard","stopListenKeyboard"],database:["get","set","remove","clear"],cache:["set","remove"],interceptor:["set","getUrlList"]},mbaas_apis={account:["login","closeLoginDialog","checkSupport","bdLogin"],app:["followSite","checkFollow","checkSupport"],pay:["init","doPay","checkSupport"],alipay:["doThirdPay","checkSupport"],socialshare:["callShare","checkSupport","UCShare"],push:["registerUnicast","unregisterUnicast","registerMulticast","unregisterMulticast","getUniqueId","isBind","checkSupport"],vtt:["init","showDialog"],tts:["say"],subscribe:["follow","checkFollow"],feedback:["addFeedback","getFeedback"],player:["play"],consult:["openConsult"]},lego_apis={smartBar:["show","hide","setViewItems","setShowViewItem","setTheme","adjustPanel"],monitor:["create","click","error","send","sendSpeed"],o2oSmartBar:["show","hide","setData"],"boostNativeSmartBar_v2.0":["show","hide"],"boostNativeSmartBar_v2.1":["show","hide"],"boostNativeSmartBar_v2.2":["show","hide","sendBackgroundPageData"],"boostNativeSmartBar_v2.3":["show","hide","sendBackgroundPageData"]},blendui_apis={BlendUI:["ready"],BlendWebUI:["ready"]};win.cloudaapiInitCount||(win.cloudaapiInitCount={},cloudaapiInitCount.lightInit=0,cloudaapiInitCount.load=0),win.hasOpenJS||(win.hasOpenJS=!1);var o2oUAReg=/BaiduRuntimeO2OZone\/([\d\.]+)/i,o2oVersion=navigator.userAgent.match(o2oUAReg)?navigator.userAgent.match(o2oUAReg)[1]:"0",API_STACK=[];if("function"!=typeof clouda.lightapp&&(clouda.lightapp=function(e,t){clouda.lightapp.ak=e;var a=["activity","battery","connection","device","fs","geolocation","globalization","media","qr","account","app","pay"];clouda.device&&clouda.mbaas&&clouda.mbaas.pay?"function"==typeof t&&t():clouda.require(["/s/api-latest"],function(){"function"==typeof t&&t();var e=API_STACK.length;if(e){execApiStack(API_STACK);for(var o={},i=0;ii;i++){var c=API_STACK[i].func;o[c.split(".")[2]]||n.push(API_STACK[i])}API_STACK=n,o=null,n=null}}),initApiStack(a)}),"function"!=typeof clouda.lightInit){var defautAPI=["monitor","smartBar"];initApiStack(defautAPI),clouda.lightInit=function(e,t){e.ak&&(clouda.lightapp.ak=e.ak);var a=e.module||[],o=!1;if(a.length>0){for(var i=0,n=a.length;n>i;i++)if("vtt_tts"==a[i])a.push("vtt"),a.push("tts");else if("blendui"==a[i]){var c=/BlendUI/i;a[i]=c.test(navigator.userAgent)?"BlendUI":"BlendWebUI"}else("subscribe"==a[i]||"pay"==a[i])&&(o=!0);initApiStack(a)}cloudaapiInitCount.lightInit+=1;var r=["lib/helper","lib/utils","lib/moplus","lego/monitor"];o2oVersion>="2.2"&&r.push("lib/o2o"),clouda.require(r,function(){function e(){clouda.require(getPathArr(a),function(){if(cloudaapiInitCount.load+=1,"function"==typeof t&&t(),API_STACK.length&&cloudaapiInitCount.lightInit===cloudaapiInitCount.load&&(execApiStack(API_STACK),API_STACK.length=0),i[n]&&i[n]>0&&clouda.lego.monitor&&clouda.lego.monitor.send){var e=1*new Date-i[n];clouda.lego.monitor.send("comboapi",{dur:e>0?e:1,mods:encodeURIComponent(n)})}})}var i={},n=a.join("|");if(i[n]=1*new Date,!win.hasOpenJS&&o){if("http:"===window.location.protocol)var c="http://static2.searchbox.baidu.com/static/searchbox/openjs/aio.js?v=201502";else var c="https://m.baidu.com/static/searchbox/openjs/aio.js?v=201502";loadScript(c,function(){console.log("openjs loaded"),win.hasOpenJS=!0,e()})}else e()})}}var script=doc.getElementsByName("baidu-tc-cerfication");if(script.length)for(var l=script.length;l--;)if(script[l].getAttribute("data-appid")){clouda.lightapp.appid=script[l].getAttribute("data-appid");break}var loadScript=function(e,t){var a=document.createElement("script");a.setAttribute("src",e),document.head.appendChild(a),a.onload=function(){t&&t(a)}};!function(){clouda.envs||(clouda.envs={}),(navigator.userAgent.match(/BaiduRuntimeO2OZone/i)||"undefined"!=typeof BLightApp)&&(clouda.envs.zhidahao=1),navigator.userAgent.match(/baiduboxapp/i)&&(clouda.envs.kuang=1,navigator.userAgent.match(/light/i)&&(clouda.envs.zhidahao=1))}(),clouda.ready=function(e){return"function"!=typeof e?void console.error("clouda.ready need a callback function"):void(clouda.STATUS&&1==clouda.STATUS.SUCCESS?e():document.addEventListener("runtimeready",function(){e()}))}}}(window,document); 4 | ;!function(){function a(){o||(setTimeout(function(){for(var a=0,e=b.length;e>a;a++)try{b[a]()}catch(c){console.error("callBack exe error",c.stack)}b=[]},1),o=!0)}function e(e){if("complete"==document.readyState||"interactive"==document.readyState)try{e(),a()}catch(c){console.error("callBack exe error",c.stack)}else b.push(e)}function c(a,e,c){d(a[e],function(){1>=c-e&&callBackFn&&callBackFn()})}function d(a,e,d){if("[object Array]"!=Object.prototype.toString.apply(a)){var f=document.createElement("script");f.onload=function(){e&&e()},f.onerror=function(){e&&e(new Error("加载失败"))},f.src=a,f.async="async",d&&d.defer&&(f.defer="defer"),f.type="text/javascript",f.charset="utf-8",document.head.appendChild(f)}else for(var b=(a.length,0),o=a.length;o>b;b++)c(a[b],b,o)}function f(a,e,c){if(null!==a&&"undefined"!=a||null!==e&&"undefined"!==e){clouda.lego.smartBar._cacheAppCallBackFnName=l,window[l]=function(a){a&&0===a.error_code?(clouda.lego.smartBar._cacheAppData=a,clouda.lego.smartBar._cacheAppState="loadEnd",clouda.lightapp.ak=a.app_info.api_key,c&&c(a)):clouda.lego.smartBar._cacheAppState="loadError"},clouda.lego.smartBar._cacheAppState="loadStart";var f=localStorage.getItem("xnSmartBarCacheKey_"+a),b={};f&&(b.defer=!0);var o=t;a?(o+="old"===clouda.lego.smartBar.whichAPI?"?m_code="+a:"&m_code="+a,clouda.lego.smartBar.loadDataType="m_code"):e&&(o+="old"===clouda.lego.smartBar.whichAPI?"?app_id="+e:"&app_id="+e,clouda.lego.smartBar.loadDataType="app_id"),d(o+"&from=lightapp&callback="+l,function(a){clouda.lego.smartBar._cacheAppState=a?"loadError":"loadEnd",setTimeout(function(){delete window[l]},2e3)},b)}}var b=[],o=!1;window.addEventListener("DOMContentLoaded",function(){a()}),window.addEventListener("load",function(){a()}),"undefined"!=typeof clouda&&(clouda.lego||(clouda.lego={}),clouda.lego.smartBar||(clouda.lego.smartBar={})),clouda.lego.smartBar._smartBarCSSELID="xnSmartBarCacheCSSID";var l="xnBBBBBCallBackFn"+parseInt(1e5*Math.random()+1e3,10);clouda.lego.smartBar.whichAPI="new";var t="//m.baidu.com/navbarapp_api?do=get";"old"===clouda.lego.smartBar.whichAPI&&(t="//m.baidu.com/lightapp/navbar/get"),clouda.lego.appIdList=[2123454,2490867,1953586,5350162,6294364,3492389,2411856,5749572,5430508,3030261,2389466,5081360,3513433,4369669,2387396,5233476,6289639,4552454,3372687,6169549,4875362,5256896,5577490,6546154,4779811,5494744,2130642,6646844,5901307,2130645,2615211,4809590,1019536,6404184,4372613,5817373,5064247,3589836,6357206,4929950,5513199,5388039,5043106,5710936,5194138,3406137,5365268,2344625,2069028,5102684,6613064,6616414,2007309,2299346,3070534,6429613,6215420,2143484,5707747,2383704,5382981,4956518,4303093,6124617,4997255,1638467,5427765,5198790,4523809,6489306,5666791,5013708,5193267,6674996,6485111,2021142,5690716,6608086,5088085,5156134,2337603,6071156,6557543,5411405,6391757,4776430,5227562,2496967,5176097,5174939,6196749,6447758,5576119,6445208,3875268,3319706,5721472,5825724,6588619,6735123],clouda.lego.mcodeDict={e00ab880947deae29b4d7e40:1,f1898b0e21da3e2d7e316ecf:1,"7928a1522e05e2349bd9ac69":1,f700da3476435c17aebbae0f:1,"0355543f318008c37bdf7c26":1,6417053:1,"8249a165930aa3d9494cab5c":1,af17bc76a50b8852450963eb:1,abad6dcd140e1d49313af8db:1,c8ab8fc7fe9c51f8c2d819cf:1,"000cd7d65546b1bae0347781":1,"420901dc5debff340b9a70cb":1,"34927d330c23c3342133e564":1,"102640bbaf5407211f368900":1,e221d1c7fb52942c3c2a5849:1,f945601a2e37e4121617a7d4:1,cac3b4fcd9a7da506fdc2521:1,db132d476b5aac421618a293:1,dd6293c00b54e940d0e00fd1:1,"05474db5b2698122a1cb42a8":1,d080a1c506a91a3ad503f9c3:1,"0967822052a813f3f961c686":1,dbc58fbd1591beea3c276b3f:1,"74dc122651d815c02b7bdc34":1,c0b6640cd5e161b9c9400e58:1,bda3fed8359d800918648003:1,ee07ad10bc5af4083373f6c1:1,"4eec58dca307b86d0f43d2ae":1,dcbe66f1e3e03300fc1c661d:1,"384bf9ef113cb416e5b0be9c":1,f36ba1a6ed40374151cb3035:1,a531d4a78f29d521b13e0041:1,"6584795318fa4c4326c0d385":1,"01c94f4ff3e2a3187afb3ac9":1,"5da5b83aa60c89c3831d15ed":1,"77203ff2f537c5de0149ff00":1,"05cfd85866b1971a9bfbea89":1,d001ed4115d73e2951f95d9b:1,"143620a2b964e01f3dc3730b":1,"9ae8efe64aeff399a3211781":1,"70c2962b770946548a1383d9":1,ff18da941948ee15e3ed05ad:1,"4335019100eeaa12c7403fb0":1,"62f6c92f56d703333fd3e6d2":1,"3866a1fa47c6ce0fa94bc90a":1,"97552b4da9493930190761f1":1,"5b73b04720549e128b714643":1,"6372702284464bdc7f7b2669":1,bdc151f6a3e3904b6933caae:1,"83962a8e18b3cc03b5bb48c1":1,c5bd8a0e10a2b026011352ee:1,"326bee93ca88723b5122db46":1,"9da0456c01372e439de39351":1,fec6cb28af02efd8894586bf:1,"1ecbe6a2eac6ad3e33ea01b5":1,f92d5001f31295432482447c:1,"8353c30d3d07ac421718a253":1,"87f0d1cfa91940341f6cee3e":1,"833bfe4d1be3187b93eddd33":1,"133e663fdf9475c61456a884":1,"1a8a788a513329e0f925b187":1,"93ade966faf865f00bfcfd40":1,"642ce84078c55d33002dcb06":1,"74b1b23ff113fb559630e879":1,"08354437447b363018076149":1,e7cedfe3a2569e19c3150483:1,"1f7143098362c32bed34e4d0":1,"62dd0b41a24f3b1e68d31e6a":1,f714d4d6add48f011ee8b3f8:1,"47985c311ddeda11c91f72d7":1,"7e192f0d3ac8cbe88dd54ca5":1,"8118e572f415c0faf00a2a7a":1,"641be7ff44013fccf7cbcca3":1,cc528fddba0a88bb61c6af33:1,"4f48bc39c3cc72b9c9400e3a":1,"29e9325d5aa089ed1187ec7a":1,fa464f2695f066717e295cdc:1,"27d249c2de514890ba191b11":1,"298fc17b961e3c1e69d31e96":1,a7fb3f348ab7d0cb4505cd3e:1,e54a6f78a1bddafbe6f3ebb4:1,c2c6a9dad4d9a020f3399533:1,"546daf16fc3ecc1781f9b8af":1,"0515d7ce66c9b0ed354fdeac":1,"1f65ba0122424f224276c4d9":1,"3a194a137892f6bb2b4d4903":1,a70c2eb6fba52056dd29a936:1,a31d200cc81a1ef4baea6a5d:1,"69ce8bc5727c1e3708ccc3d7":1,"0200ce41c19d3d3151386f7f":1,cb49a2bb3de03cccf7cbcc11:1,"79b825fa9e0bc3dfd74a4bf8":1,"047ab52847f818f3f861c661":1,ed214842bc57339eb91909e9:1,ed54a62ddf5f0a0f070065b4:1,"922bb207c699be35e7818ec6":1,b94eb11376fc79089ec55046:1,"8adf50f16e1a08e206f3cfd6":1,cb10f1a4336309a80b580b1e:1,"41e816ad35733a18c334a3e8":1,"429635a50c42276cc755efaf":1,"8202c01525a85833002dcb54":1,"851660d03ec13c07a052628d":1,"837251fb33832317fe8ca04c":1,"8c09c1c7ccb48fed354fde99":1,"57943b0fa22581ea03306058":1,"47756e594963285870e8744c":1,b9f71e8fc560f834caede3e3:1,cf3cbec244716f052fe2ce6e:1,e1058c3aec4a67445661ba2d:1,"7f22f949562ba410f15024d2":1,e32453bbf181fc1f3dc3737a:1,"1b172e33091e3e877834edfd":1,"099a3bc3aed9f4e29b4d7e37":1,"11af00fe673aec99a2211770":1,b419ad796e7f6b7b92edddd5:1,b02caf5696481382b4124508:1,cd03e45e48be20548a13838c:1,"8f1a22ed147ca8bae134775e":1,"4ccd56c9ce2095cbfee843cc":1,"97f63cdffaab2100fc1c661e":1,bbbe67306fcc71f1c812a673:1,fb7ef86b1f9a8a30a31ae999:1,c06cab4f7f816df00bfcfd54:1,"4830640f6445a99f27f46963":1,"4fe80e16a398b15dc834e278":1,"4f60d14adae13cf3ff0fc844":1,"2ba47c6a1551b4cab22f9f8a":1,"27415328305abed96917ad18":1,"70acd24059ef8e659b183939":1,"475b5f52287d8d128a7146fc":1,"154500eb3c88a7e2a0e2d557":1,fc950b674dcffeed1087ec36:1,"6fd8a03ecaf27fb9c9400e65":1,ff141adad7320417fe8ca033:1,"61d74209547c342d7f316e06":1,"2f43a009fcfbaf187afb3a82":1,"1388adbae7c3376cc755ef20":1,d23f2e29da726a4c942094ad:1,"5b5c6f17803e49c61456a8b0":1,"0390dd4a0e8429439ce393fd":1,daa73f6fff6025e894e8bc4f:1,"1bebdd1be6fe8be191ba7626":1,"07a94eb66578993e32ea0109":1,a73544eac276e803b5bb488c:1,"18a97a8c86447d7dadd88560":1,b901529d4c1121a80a580b56:1,"89acf8eafe11735547295534":1,"1f36d4b3947b35fb4b74d0af":1,"7a9d3a3cbd694233012dcb7f":1},clouda.lego._initSmartBar=function(a,c){e(function(){if(!clouda.lego.smartBar._cacheAppState){if(c&&clouda.lego.appIdList&&-1!==clouda.lego.appIdList.indexOf(c))return void(clouda.lego.monitor&&clouda.lego.monitor.send&&clouda.lego.monitor.send("diyEv",{name:"LIGHTAPP_FILTER_LIGHTAPP_APPID",value:c}));if(a&&clouda.lego.mcodeDict&&1===clouda.lego.mcodeDict[a])return void(clouda.lego.monitor&&clouda.lego.monitor.send&&clouda.lego.monitor.send("diyEv",{name:"LIGHTAPP_FILTER_LIGHTAPP_MCODE",value:a}));clouda.lego.mAppId=a,f(a,c),clouda.lightInit({ak:null,module:["smartBar","app","push","socialshare"]})}})},clouda.lightapp.appid&&(clouda.lego.monitor&&clouda.lego.monitor.create&&clouda.lego.monitor.create(clouda.lightapp.appid,0,1,!0),clouda.lego._initSmartBar(null,clouda.lightapp.appid))}(); 5 | ;void function(t,e){function n(t){var e=String(window.document.location.href),n=new RegExp("(^|)"+t+"=([^&]*)(&|$)","gi").exec(e);return n?n[2]:0}function i(t,n,i){i=i||15;var o=new Date;o.setTime((new Date).getTime()+1e3*i);try{e.cookie=t+"="+escape(n)+";path=/;expires="+o.toGMTString()}catch(a){}}function o(t){var n=e.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));return null!==n?unescape(n[2]):null}function a(t,e){for(var n=0;e;){if((e.nodeName||e.tagName).toLowerCase()===t.toLowerCase())return e;if(n>=4)return null;n++,e=e.parentNode}return null}function r(){var t=n("bd_ts"),a=0,r=e.referrer,s=+new Date,d=o("bd_hash"),c=o("bd_st");if(c){try{i("bd_st","",-1),c=JSON.parse(c.substr(1,c.length-2))}catch(_){c={}}c.r&&r.replace(/#.*/,"").slice(-50)!=c.r||(a=c.s)}else r.indexOf("baidu.com")>-1&&t>0&&7==String(t).length&&d!=t&&(i("bd_hash",t,30),a=parseInt((s+"").slice(0,6)+t,10));return s-a>=2e4&&(a=0),a}function s(t,e){for(var n in t)n&&(e[n]=t[n]);return e}window.bd||(window.bd={}),window.bd._qdc={_v:1,_timing:{},_random:Math.random(),_st:r(),_is_send:!1,_opt:{sample:.5,log_path:"http:"===window.location.protocol?"http://static.tieba.baidu.com/tb/opms/img/st.gif":"https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK/tb/opms/img/st.gif",items:["lt"]},_check:function(){for(var t=this._opt.items,e=this._timing,n=!0,i=t.length-1;i>=0;i--)e.hasOwnProperty(t[i])||(n=!1);n&&this.send()},init:function(t){s(t,this._opt),t&&t.app_id&&"undefined"!=typeof clouda&&(clouda.lego||(clouda.lego={}),clouda.lego._initSmartBar&&clouda.lego._initSmartBar(t.app_id))},mark:function(t,e){this._st>0&&(this._timing[t]=e||+new Date-this._st,this._check())},first_screen:function(){var t=document.getElementsByTagName("img"),e=+new Date,n=[],i=this;this._setFS=function(){for(var t=i._opt.fsHeight||document.documentElement.clientHeight,o=0;o0&&t>d&&(e=s>e?s:e)}i._timing.fs=e-i._st};for(var o=function(){this.removeEventListener&&this.removeEventListener("load",o,!1),n.push({img:this,time:+new Date})},a=0;a0&&!this._is_send){this._is_send=!0;var t=this._timing,e=[];for(var n in t)e.push(n+"="+t[n]);e.push("_t="+1*new Date);var i=document.createElement("img");i.src=this._opt.log_path+"?type=bdapp&v="+this._v+"&app_id="+this._opt.app_id+"&"+e.join("&")}}},e.addEventListener("DOMContentLoaded",function(){bd._qdc.mark("drt")},!1),t.addEventListener("load",function(){"function"==typeof bd._qdc._setFS&&bd._qdc._setFS(),bd._qdc.mark("lt")}),e.addEventListener("click",function(t){t=t||window.event;var n=t.target||t.srcElement,o=a("a",n);if(o){var r=o.getAttribute("href");/^#|javascript:/.test(r)||i("bd_st",'({"s":'+ +new Date+',"r":"'+e.URL.replace(/#.*/,"").slice(-50)+'"})')}},!1),bd._qdc.mark("ht")}(window,document); -------------------------------------------------------------------------------- /html/static/js/main.js: -------------------------------------------------------------------------------- 1 | jQuery.fn.wait = function (func, times, interval) { 2 | var _times = times || -1, //100次 3 | _interval = interval || 20, //20毫秒每次 4 | _self = this, 5 | _selector = this.selector, //选择器 6 | _iIntervalID; //定时器id 7 | if( this.length ){ //如果已经获取到了,就直接执行函数 8 | func && func.call(this); 9 | } else { 10 | _iIntervalID = setInterval(function() { 11 | if(!_times) { //是0就退出 12 | clearInterval(_iIntervalID); 13 | } 14 | _times <= 0 || _times--; //如果是正数就 -- 15 | 16 | _self = $(_selector); //再次选择 17 | if( _self.length ) { //判断是否取到 18 | func && func.call(_self); 19 | clearInterval(_iIntervalID); 20 | } 21 | }, _interval); 22 | } 23 | return this; 24 | } 25 | 26 | $(document).ready(function(){ 27 | 28 | $('#SOHU_MAIN .head-img-gw img').wait(function(){ 29 | var imgs = new Array(); 30 | imgs[0] = 'http://qiniu.cuiqingcai.com/wp-content/uploads/2015/05/20150525111154.jpg'; 31 | imgs[1] = 'http://qiniu.cuiqingcai.com/wp-content/uploads/2015/05/20150525111447.jpg'; 32 | imgs[2] = 'http://qiniu.cuiqingcai.com/wp-content/uploads/2015/05/20150525112058.jpg'; 33 | imgs[3] = 'http://qiniu.cuiqingcai.com/wp-content/uploads/2015/05/20150525112112.jpg'; 34 | imgs[4] = 'http://qiniu.cuiqingcai.com/wp-content/uploads/2015/05/20150525112129.jpg'; 35 | imgs[5] = 'http://qiniu.cuiqingcai.com/wp-content/uploads/2015/05/20150525112155.jpg'; 36 | 37 | 38 | $('.head-img-gw img[src*="avatar"]').each(function(){ 39 | var rand = Math.floor(Math.random()*imgs.length); 40 | $(this).attr("src",imgs[rand]); 41 | }); 42 | }); 43 | $('#SOHUCS #SOHU_MAIN .section-cbox-w .post-default-b').wait(function(){ 44 | setTimeout(function() { 45 | $('#SOHU_MAIN .section-cbox-w .post-default-b').css('border', '1px solid #ccd4d9'); 46 | }, 200); 47 | }); 48 | 49 | }); 50 | 51 | $(function(){ 52 | // $('a').on('click', function(){ 53 | // console.log($("#iframeu2027169_0").contents().html()); 54 | // console.log($("#iframeu1959939_0").contents().find('.container a:first-child').attr('href')); 55 | // $('#iframeu1959939_0').contents().find('.container a:first-child').click(); 56 | // }); 57 | 58 | }); 59 | 60 | -------------------------------------------------------------------------------- /html/static/js/postviews-cache.js: -------------------------------------------------------------------------------- 1 | jQuery.ajax({type:"GET",url:viewsCacheL10n.admin_ajax_url,data:"postviews_id="+viewsCacheL10n.post_id+"&action=postviews",cache:!1}); -------------------------------------------------------------------------------- /html/static/js/slider.js: -------------------------------------------------------------------------------- 1 | jQuery.fn.wowSlider=function(F){var N=jQuery;var m=this;var i=m.get(0);F=N.extend({effect:function(){this.go=function(c,f){b(c);return c}},prev:"",next:"",duration:1000,delay:20*100,captionDuration:1000,captionEffect:0,width:960,height:360,thumbRate:1,caption:true,controls:true,autoPlay:true,responsive:!!document.addEventListener,stopOnHover:0,preventCopy:1},F);var a=N(".ws_images",m);var S=a.find("ul");function b(c){S.css({left:-c+"00%"})}N("
").css({width:"100%",visibility:"hidden","font-size":0,"line-height":0}).append(a.find("li:first img:first").clone().css({width:"100%"})).prependTo(a);S.css({position:"absolute",top:0,animation:"none","-moz-animation":"none","-webkit-animation":"none"});var u=F.images&&(new wowsliderPreloader(this,F));var j=a.find("li");var J=j.length;function E(c){return((c||0)+J)%J}var A=navigator.userAgent;if((/MSIE/.test(A)&&parseInt(/MSIE\s+([\d\.]+)/.exec(A)[1],10)<8)||(/Safari/.test(A))){var ab=Math.pow(10,Math.ceil(Math.LOG10E*Math.log(J)));S.css({width:ab+"00%"});j.css({width:100/ab+"%"})}else{S.css({width:J+"00%",display:"table"});j.css({display:"table-cell","float":"none",width:"auto"})}var H=F.onBeforeStep||function(c){return c+1};F.startSlide=E(isNaN(F.startSlide)?H(-1,J):F.startSlide);if(u){u.load(F.startSlide,function(){})}b(F.startSlide);var P;if(F.preventCopy&&!/iPhone/.test(navigator.platform)){P=N('
').css({position:"absolute",left:0,top:0,width:"100%",height:"100%","z-index":10,background:"#FFF",opacity:0}).appendTo(m).find("A").get(0)}var g=[];j.each(function(c){var am=N(">img:first,>a:first,>div:first",this).get(0);var an=N("
");for(var f=0;fa>img",this).get(0)||N(">*",this).get(0)});g=N(g);g.css("visibility","visible");if(typeof F.effect=="string"){F.effect=window["ws_"+F.effect]}var aa=new F.effect(F,g,a);var I=F.startSlide;function l(am,f,c){if(isNaN(am)){am=H(I,J)}am=E(am);if(I==am){return}if(u){u.load(am,function(){v(am,f,c)})}else{v(am,f,c)}}function ai(am){var f="";for(var c=0;c20)||(Math.abs(c)>20)){ak(am,I+((f+c)>0?1:-1),f/20,c/20);return 1}return 0},0,0,function(){var c=N("A",j.get(I)).get(0);if(c){var f=document.createEvent("HTMLEvents");f.initEvent("click",true,true);c.dispatchEvent(f)}})}var o=m.find(".ws_bullets");var U=m.find(".ws_thumbs");function s(f){if(o.length){ad(f)}if(U.length){Q(f)}if(P){var c=N("A",j.get(f)).get(0);if(c){P.setAttribute("href",c.href);P.setAttribute("target",c.target);P.style.display="block"}else{P.style.display="none"}}if(F.responsive){w()}}var ag=F.autoPlay;function y(){if(ag){ag=0;setTimeout(function(){m.trigger(N.Event("stop",{}))},F.duration)}}function ae(){if(!ag&&F.autoPlay){ag=1;m.trigger(N.Event("start",{}))}}function z(){r();y()}var q;var K=false;function L(c){r();if(F.autoPlay){q=setTimeout(function(){if(!K){l()}},F.delay+(c?0:F.duration));ae()}else{y()}}function r(){if(q){clearTimeout(q)}q=null}function ak(an,am,f,c){r();an.preventDefault();l(am,f,c);L();if(k){M.play()}}if(F.controls){var B=N(''+F.next+"");var aj=N(''+F.prev+"");m.append(B);m.append(aj);B.bind("click",function(c){ak(c,I+1)});aj.bind("click",function(c){ak(c,I-1)});if(/iPhone/.test(navigator.platform)){aj.get(0).addEventListener("touchend",function(c){ak(c,I-1)},false);B.get(0).addEventListener("touchend",function(c){ak(c,I+1)},false)}}var Y=F.thumbRate;var O;function e(){m.find(".ws_bullets a,.ws_thumbs a").click(function(aA){ak(aA,N(this).index())});if(U.length){U.hover(function(){O=1},function(){O=0});var au=U.find(">div");U.css({overflow:"hidden"});var ap;var av;var ax;var am=m.find(".ws_thumbs");am.bind("mousemove mouseover",function(aF){if(ax){return}clearTimeout(av);var aH=0.2;for(var aE=0;aE<2;aE++){var aI=U[aE?"width":"height"](),aD=au[aE?"width":"height"](),aA=aI-aD;if(aA<0){var aB,aC,aG=(aF[aE?"pageX":"pageY"]-U.offset()[aE?"left":"top"])/aI;if(ap==aG){return}ap=aG;au.stop(true);if(Y>0){if((aG>aH)&&(aG<1-aH)){return}aB=aG<0.5?0:aA-1;aC=Y*Math.abs(au.position()[aE?"left":"top"]-aB)/(Math.abs(aG-0.5)-aH)}else{aB=aA*Math.min(Math.max((aG-aH)/(1-2*aH),0),1);aC=-Y*aD/2}au.animate(aE?{left:aB}:{top:aB},aC,Y>0?"linear":"easeOutCubic")}else{au.css(aE?"left":"top",aE?aA/2:0)}}});am.mouseout(function(aA){av=setTimeout(function(){au.stop()},100)});U.trigger("mousemove");var aq,ar;ac(au.get(0),function(aC,aB,aA){au.css("left",Math.min(Math.max(aq-aB,U.width()-au.width()),0));au.css("top",Math.min(Math.max(ar-aA,U.height()-au.height()),0));aC.preventDefault();return false},function(aA){aq=parseFloat(au.css("left"))||0;ar=parseFloat(au.css("top"))||0;return false});m.find(".ws_thumbs a").each(function(aA,aB){ac(aB,0,0,function(aC){ax=1},function(aC){ak(aC,N(aB).index())})})}if(o.length){var az=o.find(">div");var aw=N("a",o);var an=aw.find("IMG");if(an.length){var ao=N('
').appendTo(az);var f=N("
").css({width:an.length+1+"00%"}).appendTo(N("
").appendTo(ao));an.appendTo(f);N("").appendTo(ao);var c=-1;function at(aC){if(aC<0){aC=0}if(u){u.loadTtip(aC)}N(aw.get(c)).removeClass("ws_overbull");N(aw.get(aC)).addClass("ws_overbull");ao.show();var aD={left:aw.get(aC).offsetLeft-ao.width()/2,"margin-top":aw.get(aC).offsetTop-aw.get(0).offsetTop+"px","margin-bottom":-aw.get(aC).offsetTop+aw.get(aw.length-1).offsetTop+"px"};var aB=an.get(aC);var aA={left:-aB.offsetLeft+(N(aB).outerWidth(true)-N(aB).outerWidth())/2};if(c<0){ao.css(aD);f.css(aA)}else{if(!document.all){aD.opacity=1}ao.stop().animate(aD,"fast");f.stop().animate(aA,"fast")}c=aC}aw.hover(function(){at(N(this).index())});var ay;az.hover(function(){if(ay){clearTimeout(ay);ay=0}at(c)},function(){aw.removeClass("ws_overbull");if(document.all){if(!ay){ay=setTimeout(function(){ao.hide();ay=0},400)}}else{ao.stop().animate({opacity:0},{duration:"fast",complete:function(){ao.hide()}})}});az.click(function(aA){ak(aA,N(aA.target).index())})}}}function Q(c){N("A",U).each(function(ao){if(ao==c){var am=N(this);am.addClass("ws_selthumb");if(!O){var f=U.find(">div"),an=am.position()||{},ap=f.position()||{};f.stop(true).animate({left:-Math.max(Math.min(an.left,-ap.left),an.left+am.width()-U.width()),top:-Math.max(Math.min(an.top,0),an.top+am.height()-U.height())})}}else{N(this).removeClass("ws_selthumb")}})}function ad(c){N("A",o).each(function(f){if(f==c){N(this).addClass("ws_selbull")}else{N(this).removeClass("ws_selbull")}})}if(F.caption){$caption=N("");m.append($caption);$caption.bind("mouseover",function(c){r()});$caption.bind("mouseout",function(c){L()})}var D=function(){if(this.filters){this.style.removeAttribute("filter")}};var V={none:function(f,c){c.show()},fade:function(am,c,f){c.fadeIn(f,D)},array:function(am,c,f){p(c,am[Math.floor(Math.random()*am.length)],0.5,"easeOutElastic1",f)},move:function(am,c,f){V.array([{left1:"100%",top2:"100%"},{left1:"80%",left2:"-50%"},{top1:"-100%",top2:"100%",distance:0.7,easing:"easeOutBack"},{top1:"-80%",top2:"-80%",distance:0.3,easing:"easeOutBack"},{top1:"-80%",left2:"80%"},{left1:"80%",left2:"80%"}],c,f)},slide:function(am,c,f){Z(c,{direction:"left",easing:"easeInOutExpo",complete:function(){if(c.get(0).filters){c.get(0).style.removeAttribute("filter")}},duration:f})}};V[0]=V.slide;function G(f){var an=N("img",f).attr("title");var am=N(f).data("descr");if(!an.replace(/\s+/g,"")){an=""}var c=N(".ws-title",m);c.stop(1,1).stop(1,1).fadeOut(F.captionDuration/3,function(){if(an||am){c.html((an?""+an+"":"")+(am?"
"+am+"
":""));var ao=F.captionEffect;(V[N.type(ao)]||V[ao]||V[0])(ao,c,F.captionDuration)}})}function R(ao,f){var ap,am=document.defaultView;if(am&&am.getComputedStyle){var an=am.getComputedStyle(ao,"");if(an){ap=an.getPropertyValue(f)}}else{var c=f.replace(/\-\w/g,function(aq){return aq.charAt(1).toUpperCase()});if(ao.currentStyle){ap=ao.currentStyle[c]}else{ap=ao.style[c]}}return ap}function C(an,am,aq){var ap="padding-left|padding-right|border-left-width|border-right-width".split("|");var ao=0;for(var f=0;fspan,>div").get();N(an).css({position:"relative",visibility:"hidden"});ao.show();for(var f in at){if(/\%/.test(at[f])){at[f]=parseInt(at[f])/100;var ar=ao.offset()[/left/.test(f)?"left":"top"];var au=/left/.test(f)?"width":"height";if(at[f]<0){at[f]*=ar}else{at[f]*=m[au]()-ao[au]()-ar}}}N(an[0]).css({left:(at.left1||0)+"px",top:(at.top1||0)+"px"});N(an[1]).css({left:(at.left2||0)+"px",top:(at.top2||0)+"px"});var am=at.duration||am;function ap(av){var aw=N(an[av]).css("opacity");N(an[av]).css({visibility:"visible"}).css({opacity:0}).animate({opacity:aw},am,"easeOutCirc").animate({top:0,left:0},{duration:am,easing:(at.easing||aq),queue:false})}ap(0);setTimeout(function(){ap(1)},am*(at.distance||c))}function Z(ar,av){var au={position:0,top:0,left:0,bottom:0,right:0};for(var am in au){au[am]=ar.get(0).style[am]}ar.show();var aq={width:C(ar.get(0),1,1),height:x(ar.get(0),1,1),"float":ar.css("float"),overflow:"hidden",opacity:0};for(var am in au){aq[am]=au[am]||R(ar.get(0),am)}var f=N("
").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});ar.wrap(f);f=ar.parent();if(ar.css("position")=="static"){f.css({position:"relative"});ar.css({position:"relative"})}else{N.extend(aq,{position:ar.css("position"),zIndex:ar.css("z-index")});ar.css({position:"absolute",top:0,left:0,right:"auto",bottom:"auto"})}f.css(aq).show();var at=av.direction||"left";var an=(at=="up"||at=="down")?"top":"left";var ao=(at=="up"||at=="left");var c=av.distance||(an=="top"?ar.outerHeight(true):ar.outerWidth(true));ar.css(an,ao?(isNaN(c)?"-"+c:-c):c);var ap={};ap[an]=(ao?"+=":"-=")+c;f.animate({opacity:1},{duration:av.duration,easing:av.easing});ar.animate(ap,{queue:false,duration:av.duration,easing:av.easing,complete:function(){ar.css(au);ar.parent().replaceWith(ar);if(av.complete){av.complete()}}})}if(o.length||U.length){e()}s(I);if(F.caption){G(j[I])}if(F.stopOnHover){this.bind("mouseover",function(c){r();K=true});this.bind("mouseout",function(c){L();K=false})}L(1);var M=m.find("audio").get(0),k=F.autoPlay;if(M){if(window.Audio&&M.canPlayType&&M.canPlayType("audio/mp3")){M.loop="loop";if(F.autoPlay){M.autoplay="autoplay";setTimeout(function(){M.play()},100)}}else{M=M.src;var X=M.substring(0,M.length-/[^\\\/]+$/.exec(M)[0].length);var n="wsSound"+Math.round(Math.random()*9999);N("
").appendTo(m).get(0).id=n;var t="wsSL"+Math.round(Math.random()*9999);window[t]={onInit:function(){}};swfobject.createSWF({data:X+"player_mp3_js.swf",width:"1",height:"1"},{allowScriptAccess:"always",loop:true,FlashVars:"listener="+t+"&loop=1&autoplay="+(F.autoPlay?1:0)+"&mp3="+M},n);M=0}m.bind("stop",function(){k=false;if(M){M.pause()}else{N(n).SetVariable("method:pause","")}});m.bind("start",function(){if(M){M.play()}else{N(n).SetVariable("method:play","")}})}i.wsStart=l;i.wsStop=z;if(F.playPause){var h=N('');if(F.autoPlay){h.addClass("ws_pause")}else{h.addClass("ws_play")}h.click(function(){F.autoPlay=!F.autoPlay;if(!F.autoPlay){i.wsStop();h.removeClass("ws_pause");h.addClass("ws_play")}else{L();h.removeClass("ws_play");h.addClass("ws_pause")}return false});this.append(h)}function w(){m.css("fontSize",Math.max(Math.min((m.width()/F.width)||1,1)*10,6))}if(F.responsive){N(w);N(window).on("load resize",w)}return this};jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeOutElastic1:function(k,l,i,h,g){var f=Math.PI/2;var m=1.70158;var e=0;var j=h;if(l==0){return i}if((l/=g)==1){return i+h}if(!e){e=g*0.3}if(jn)?"255,255,255,0.8":"0,0,0,.0")+")"}var f;this.go=function(s,p){function m(K,z,A,y,x,I,J,G,F){K.parent().css("perspective",b);var E=K.width(),C=K.height();var H=c(K.children().get(1));H.css({transform:"rotateY(0deg) rotateX(0deg)",boxShadow:i(E,C,0,0)});var B=c(K.children().get(0));B.css({opacity:1,transform:"rotateY("+I+"deg) rotateX("+x+"deg)",boxShadow:i(E,C,x,I)});if(h){K.css({transform:"translateZ(-"+z+"px)"})}var D=setTimeout(function(){var w="all "+k.duration+"ms cubic-bezier(0.645, 0.045, 0.355, 1.000)";H.css({transition:w,boxShadow:i(E,C,J,G),transform:"rotateX("+J+"deg) rotateY("+G+"deg)"});B.css({transition:w,boxShadow:i(E,C,0,0),transform:"rotateY(0deg) rotateX(0deg)"});D=setTimeout(F,k.duration)},20);return{stop:function(){clearTimeout(D);F()}}}if(d){if(f){f.stop()}var u=a.width(),q=a.height();var v=c('
').css(fullContCSS).css({transformStyle:"preserve-3d",perspective:h?"none":b,zIndex:8}).appendTo(a.parent());var o={left:[u/2,u/2,0,0,90,0,-90],right:[u/2,-u/2,0,0,-90,0,90],down:[q/2,0,-q/2,90,0,-90,0],up:[q/2,0,q/2,-90,0,90,0]}[k.direction||["left","right","down","up"][Math.floor(Math.random()*4)]];c("
").css(fullContCSS).appendTo(v).css({backgroundImage:"url("+g.get(s).src+")",transformOrigin:"50% 50% -"+o[0]+"px"});c("
").css(fullContCSS).appendTo(v).css({backgroundImage:"url("+g.get(p).src+")",transformOrigin:"50% 50% -"+o[0]+"px"});e.hide();f=new m(v,o[0],o[1],o[2],o[3],o[4],o[5],o[6],function(){e.css({left:-s+"00%"}).show();v.remove();f=0})}else{var l=c("
").css({position:"absolute",display:"none",zIndex:2,width:"100%",height:"100%"}).appendTo(a);l.stop(1,1);var n=(!!((s-p+1)%g.length)^k.revers?"left":"right");var t=c(g[p]).clone().css({position:"absolute",left:"0%",right:"auto",top:0,width:"100%",height:"100%"}).appendTo(l).css(n,0);var r=c(g[s]).clone().css({position:"absolute",left:"100%",right:"auto",top:0,width:"0%",height:"100%"}).appendTo(l).show();l.css({left:"auto",right:"auto",top:0}).css(n,0).show();e.hide();r.animate({width:"100%",left:0},k.duration,"easeInOutExpo",function(){c(this).remove()});t.animate({width:0},k.duration,"easeInOutExpo",function(){e.css({left:-s+"00%"}).show();l.remove()})}return s}}; 3 | jQuery("#wowslider-container1").wowSlider({effect:"cube",prev:"",next:"",duration:20*100,delay:20*100,width:716,height:297,autoPlay:true,playPause:true,stopOnHover:false,loop:false,bullets:0,caption:true,captionEffect:"slide",controls:true,onBeforeStep:0,images:0}); -------------------------------------------------------------------------------- /html/static/js/wp-embed.min.js: -------------------------------------------------------------------------------- 1 | !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); -------------------------------------------------------------------------------- /html/templates/donate.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 赞助作者 | 静觅 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 77 | 78 | 79 | 84 | 85 | 94 | 95 | 96 | 97 | 98 | 101 | 102 | 103 | 104 |
152 | 153 |
154 |
155 | 投稿    登录
156 |
  《Python3网络爬虫开发实战》赠书活动正在进行中!详情请戳赠书活动!欢迎参与!非常感谢!
157 |
158 | 159 |
160 | 161 | 162 | 169 |
170 |
171 |

172 |

173 |

如果您喜欢我的文章,感觉我的文章对您有帮助,不妨动动您的金手指给予小额赞助,予人玫瑰,手有余香,不胜感激。

174 |

175 |

赞助方式一

176 |

手机支付宝扫一扫

177 |

1424922459123

178 |

赞助方式二

179 |

网页支付宝

180 |

181 |

cqc@cuiqingcai.com
182 |

183 |
184 |
185 |
186 |
187 |

188 |
189 |
190 | 191 |

赞助方式三

192 |

微信扫一扫

193 |
194 |
195 |
    196 |
  • 197 | 198 |

    199 |

  • 200 |
  • 201 | 202 |

    203 |

  • 204 |
  • 205 | 206 |

    207 |

  • 208 |
  • 209 | 210 |

    211 |

  • 212 |
  • 213 | 214 |

    215 |

  • 216 |
217 |
218 |
219 |
220 | 微信支付 221 |
222 |

223 |
224 |
225 | 305 |
306 |
307 |
308 | 309 |
310 |
311 |
312 |
313 | 发表我的评论
314 | 取消评论 315 |
316 | 317 |
318 |
319 | 320 |
321 | 322 |
323 | 324 |
325 | 表情 326 | 327 |
328 |
329 | 330 |
331 |

Hi,您需要填写昵称和邮箱!

332 |
    333 |
  • 昵称 (必填)
  • 334 |
  • 邮箱 (必填)
  • 335 |
  • 网址
  • 336 |
337 |
338 |
339 | 340 | 341 |
342 |
343 |
344 |
345 | (1521)个小伙伴在吐槽 346 |
347 |
    348 |
  1. always a big fan of linking to bloggers that I love but really don't get a great deal of link appreciate from
  2. 349 |
  3. below youll locate the link to some sites that we feel it is best to visit
  4. 350 |
  5. Usually posts some quite exciting stuff like this. If youre new to this site.
    Google2019-02-18 17:26 (3小时前)回复
  6. 351 |
  7. just beneath, are quite a few entirely not related web sites to ours, on the other hand, they're surely worth going over
  8. 352 |
  9. although web sites we backlink to beneath are considerably not associated to ours, we really feel they're truly worth a go by means of, so have a look
  10. 353 |
  11. very few websites that come about to be in depth beneath, from our point of view are undoubtedly nicely worth checking out
  12. 354 |
355 |
356 | 357 | 1 358 | 359 | 100 360 | 101 361 | 102
362 |
363 | 364 |
365 | 366 |
367 |
368 | 377 |
378 | 379 | 384 | 385 | 386 | 387 | 388 | 392 | 396 | 404 | 419 | 420 | 421 | 422 | 423 | 424 | -------------------------------------------------------------------------------- /html/templates/message.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 给我留言 | 静觅 10 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 75 | 76 | 77 | 82 | 83 | 92 | 93 | 94 | 95 | 96 | 99 | 100 | 101 | 102 |
150 | 151 |
152 |
153 | 投稿    登录
154 |
  《Python3网络爬虫开发实战》赠书活动正在进行中!详情请戳赠书活动!欢迎参与!非常感谢!
155 |
156 | 157 |
158 | 159 | 160 | 167 |
168 |
169 |
170 |
171 | 172 |
173 |
174 |
175 |
176 | 发表我的评论
177 | 取消评论 178 |
179 | 180 |
181 |
182 | 183 |
184 | 185 |
186 | 187 |
188 | 表情 189 | 190 |
191 |
192 | 193 |
194 |

Hi,您需要填写昵称和邮箱!

195 |
    196 |
  • 昵称 (必填)
  • 197 |
  • 邮箱 (必填)
  • 198 |
  • 网址
  • 199 |
200 |
201 |
202 | 203 | 204 |
205 |
206 |
207 |
208 | (386)个小伙伴在吐槽 209 |
210 |
    211 |
  1. Propecia Utilidad Acheter Kamagra Grenoble generic levitra on line Keflex Seismic Pipe Loop Canadian Rx Without A Script
    Lescymn2019-02-18 12:48 (8小时前)回复
  2. 212 |
  3. medicamentos que tengan sildenafil http://viagrabs.com/ generic for viagra
    buy viagra2019-02-16 08:59 (2天前)回复
  4. 213 |
214 |
215 | 216 | 1 217 | 218 | 24 219 | 25 220 | 26
221 |
222 | 223 |
224 | 225 |
226 |
227 | 236 |
237 | 238 | 243 | 244 | 245 | 246 | 247 | 251 | 255 | 263 | 278 | 279 | 280 | 281 | 282 | 283 | -------------------------------------------------------------------------------- /html/templates/project.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 项目合作 | 静觅 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 77 | 78 | 79 | 84 | 85 | 94 | 95 | 96 | 97 | 98 | 101 | 102 | 103 | 104 |
152 | 153 |
154 |
155 | 投稿    登录
156 |
  《Python3网络爬虫开发实战》赠书活动正在进行中!详情请戳赠书活动!欢迎参与!非常感谢!
157 |
158 | 159 |
160 | 161 | 162 | 169 |
170 |

承接各种个人&团队项目,范围包括但不限于爬虫、Web 开发、App 开发、小程序开发、数据分析、机器学习、其他软件开发等方向,价格可谈,淘宝担保,如有意向合作可以加我微信,并注明您的称呼+商务合作,谢谢!

171 |

172 |
173 | 174 |
175 | 176 |
177 |
178 | 187 |
188 | 189 | 194 | 195 | 196 | 197 | 198 | 202 | 206 | 214 | 229 | 230 | 231 | 232 | 233 | 234 | -------------------------------------------------------------------------------- /html/templates/question.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 提问交流 | 静觅 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 77 | 78 | 79 | 84 | 85 | 94 | 95 | 96 | 97 | 98 | 101 | 102 | 103 | 104 |
152 | 153 |
154 |
155 | 投稿    登录
156 |
  《Python3网络爬虫开发实战》赠书活动正在进行中!详情请戳赠书活动!欢迎参与!非常感谢!
157 |
158 | 159 |
160 | 161 | 162 | 169 |
170 |
171 |
172 |
173 |
174 |
175 |

很多朋友会通过各种途径咨询我我问题,有的通过邮件,有的在公众号留言,有的微博知乎私信,很多情况下我并不能及时查看到消息,另外由于个人精力有限也并没有那么多余力一一为大家解答,为此我开通了一个圈子,作为一个统一的交流问答平台,我会每天定时抽出时间为大家解答相关问题,同时也会为大家分享一些技术及行业资讯,欢迎朋友们的加入~

176 |

177 |
178 |
179 |
180 |
181 |
182 |
183 | 184 |
185 | 186 |
187 |
188 | 197 |
198 | 199 | 204 | 205 | 206 | 207 | 208 | 212 | 216 | 224 | 239 | 240 | 241 | 242 | -------------------------------------------------------------------------------- /html/templates/wp-login.html: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | 8 | 9 | 10 | 登录 ‹ 静觅 — WordPress 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 |

基于WordPress

19 | 20 |
21 |

22 | 24 |

25 |

26 | 28 |

29 |

30 |

31 | 32 | 33 | 34 |

35 |
36 | 37 | 40 | 41 | 54 | 55 |

← 返回到静觅

56 | 57 |
58 | 59 | 60 |
61 | 62 | 63 | --------------------------------------------------------------------------------