├── 2014 └── 05 │ └── 07 │ ├── abc │ └── index.html │ └── hello-world │ └── index.html ├── CNAME ├── archives ├── 2014 │ ├── 05 │ │ └── index.html │ └── index.html └── index.html ├── categories └── 日志 │ ├── index.html │ └── 第一天 │ └── index.html ├── css ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff ├── images │ └── banner.jpg └── style.css ├── fancybox ├── blank.gif ├── fancybox_loading.gif ├── fancybox_loading@2x.gif ├── fancybox_overlay.png ├── fancybox_sprite.png ├── fancybox_sprite@2x.png ├── helpers │ ├── fancybox_buttons.png │ ├── jquery.fancybox-buttons.css │ ├── jquery.fancybox-buttons.js │ ├── jquery.fancybox-media.js │ ├── jquery.fancybox-thumbs.css │ └── jquery.fancybox-thumbs.js ├── jquery.fancybox.css ├── jquery.fancybox.js └── jquery.fancybox.pack.js ├── images └── fens.me.png ├── index.html ├── js └── script.js └── tags ├── 开始 └── index.html ├── 我 └── index.html └── 日记 └── index.html /2014/05/07/abc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 新的开始 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 |
39 | 73 |
74 |
75 | 85 |
86 | 87 | 88 |
89 | 90 | 91 |

92 | 新的开始 93 |

94 | 95 | 96 |
97 | 98 |
99 | 100 |

这是新的开始,我用hexo创建了第一篇文章。

101 |

通过下面的命令,就可以创建新文章

102 |
1
103 | 2
104 | 
D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
105 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
106 | 
107 | 108 |

感觉非常好。

109 |

引用

110 |

Every interaction is both precious and an opportunity to delight.

111 |
112 | 113 | 114 |

代码块

115 |
.compactUnderscore.js
1
116 | 2
117 | 
.compact([0, 1, false, 2, ‘’, 3]);
118 | => [1, 2, 3]
119 | 
120 | 121 | 122 |

链接

123 | 粉丝日志 124 | 125 | 126 |

图片

127 | 128 | 129 | 130 | 131 | 132 | 133 |
134 | 141 |
142 | 143 | 144 | 153 | 154 | 155 |
156 | 157 |
158 | 159 | 217 | 218 |
219 |
220 | 221 |
222 | 226 |
227 |
228 |
229 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 |
247 | 248 | -------------------------------------------------------------------------------- /2014/05/07/hello-world/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Hello World | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 | 63 |
64 |
114 | 115 |
116 | 117 | 175 | 176 |
177 |
178 | 179 |
180 | 184 |
185 |
186 |
187 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 |
205 | 206 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | blog.52u.me -------------------------------------------------------------------------------- /archives/2014/05/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Archives: 2014/5 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 | 63 |
64 |
65 | 66 |
67 | 77 |
78 | 79 | 80 |
81 | 82 | 83 |

84 | 新的开始 85 |

86 | 87 | 88 |
89 | 90 |
91 | 92 |

这是新的开始,我用hexo创建了第一篇文章。

93 |

通过下面的命令,就可以创建新文章

94 |
1
 95 | 2
 96 | 
D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
 97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
 98 | 
99 | 100 |

感觉非常好。

101 |

引用

102 |

Every interaction is both precious and an opportunity to delight.

103 |
104 | 105 | 106 |

代码块

107 |
.compactUnderscore.js
1
108 | 2
109 | 
.compact([0, 1, false, 2, ‘’, 3]);
110 | => [1, 2, 3]
111 | 
112 | 113 | 114 |

链接

115 | 粉丝日志 116 | 117 | 118 |

图片

119 | 120 | 121 | 122 | 123 | 124 | 125 |
126 | 133 |
134 | 135 |
136 | 137 | 138 | 139 |
140 | 146 |
147 | 148 | 149 |
150 | 151 | 152 |

153 | Hello World 154 |

155 | 156 | 157 |
158 | 159 |
160 | 161 |

Welcome to Hexo! This is your very first post. Check documentation to learn how to use.

162 | 163 | 164 |
165 |
166 | Share 167 | 168 | 169 |
170 |
171 | 172 |
173 | 174 | 175 | 176 | 177 |
178 | 179 | 237 | 238 |
239 |
240 | 241 |
242 | 246 |
247 |
248 |
249 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 |
267 | 268 | -------------------------------------------------------------------------------- /archives/2014/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Archives: 2014 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 | 63 |
64 |
65 | 66 |
67 | 77 |
78 | 79 | 80 |
81 | 82 | 83 |

84 | 新的开始 85 |

86 | 87 | 88 |
89 | 90 |
91 | 92 |

这是新的开始,我用hexo创建了第一篇文章。

93 |

通过下面的命令,就可以创建新文章

94 |
1
 95 | 2
 96 | 
D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
 97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
 98 | 
99 | 100 |

感觉非常好。

101 |

引用

102 |

Every interaction is both precious and an opportunity to delight.

103 |
104 | 105 | 106 |

代码块

107 |
.compactUnderscore.js
1
108 | 2
109 | 
.compact([0, 1, false, 2, ‘’, 3]);
110 | => [1, 2, 3]
111 | 
112 | 113 | 114 |

链接

115 | 粉丝日志 116 | 117 | 118 |

图片

119 | 120 | 121 | 122 | 123 | 124 | 125 |
126 | 133 |
134 | 135 |
136 | 137 | 138 | 139 |
140 | 146 |
147 | 148 | 149 |
150 | 151 | 152 |

153 | Hello World 154 |

155 | 156 | 157 |
158 | 159 |
160 | 161 |

Welcome to Hexo! This is your very first post. Check documentation to learn how to use.

162 | 163 | 164 |
165 |
166 | Share 167 | 168 | 169 |
170 |
171 | 172 |
173 | 174 | 175 | 176 | 177 |
178 | 179 | 237 | 238 |
239 |
240 | 241 |
242 | 246 |
247 |
248 |
249 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 |
267 | 268 | -------------------------------------------------------------------------------- /archives/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Archives | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 | 63 |
64 |
65 | 66 |
67 | 77 |
78 | 79 | 80 |
81 | 82 | 83 |

84 | 新的开始 85 |

86 | 87 | 88 |
89 | 90 |
91 | 92 |

这是新的开始,我用hexo创建了第一篇文章。

93 |

通过下面的命令,就可以创建新文章

94 |
1
 95 | 2
 96 | 
D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
 97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
 98 | 
99 | 100 |

感觉非常好。

101 |

引用

102 |

Every interaction is both precious and an opportunity to delight.

103 |
104 | 105 | 106 |

代码块

107 |
.compactUnderscore.js
1
108 | 2
109 | 
.compact([0, 1, false, 2, ‘’, 3]);
110 | => [1, 2, 3]
111 | 
112 | 113 | 114 |

链接

115 | 粉丝日志 116 | 117 | 118 |

图片

119 | 120 | 121 | 122 | 123 | 124 | 125 |
126 | 133 |
134 | 135 |
136 | 137 | 138 | 139 |
140 | 146 |
147 | 148 | 149 |
150 | 151 | 152 |

153 | Hello World 154 |

155 | 156 | 157 |
158 | 159 |
160 | 161 |

Welcome to Hexo! This is your very first post. Check documentation to learn how to use.

162 | 163 | 164 |
165 |
166 | Share 167 | 168 | 169 |
170 |
171 | 172 |
173 | 174 | 175 | 176 | 177 |
178 | 179 | 237 | 238 |
239 |
240 | 241 |
242 | 246 |
247 |
248 |
249 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 |
267 | 268 | -------------------------------------------------------------------------------- /categories/日志/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Category: 日志 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 | 63 |
64 |
65 | 66 |
67 | 77 |
78 | 79 | 80 |
81 | 82 | 83 |

84 | 新的开始 85 |

86 | 87 | 88 |
89 | 90 |
91 | 92 |

这是新的开始,我用hexo创建了第一篇文章。

93 |

通过下面的命令,就可以创建新文章

94 |
1
 95 | 2
 96 | 
D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
 97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
 98 | 
99 | 100 |

感觉非常好。

101 |

引用

102 |

Every interaction is both precious and an opportunity to delight.

103 |
104 | 105 | 106 |

代码块

107 |
.compactUnderscore.js
1
108 | 2
109 | 
.compact([0, 1, false, 2, ‘’, 3]);
110 | => [1, 2, 3]
111 | 
112 | 113 | 114 |

链接

115 | 粉丝日志 116 | 117 | 118 |

图片

119 | 120 | 121 | 122 | 123 | 124 | 125 |
126 | 133 |
134 | 135 |
136 | 137 | 138 | 139 | 140 |
141 | 142 | 200 | 201 |
202 |
203 | 204 |
205 | 209 |
210 |
211 |
212 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 |
230 | 231 | -------------------------------------------------------------------------------- /categories/日志/第一天/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Category: 第一天 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 | 63 |
64 |
65 | 66 |
67 | 77 |
78 | 79 | 80 |
81 | 82 | 83 |

84 | 新的开始 85 |

86 | 87 | 88 |
89 | 90 |
91 | 92 |

这是新的开始,我用hexo创建了第一篇文章。

93 |

通过下面的命令,就可以创建新文章

94 |
1
 95 | 2
 96 | 
D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
 97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
 98 | 
99 | 100 |

感觉非常好。

101 |

引用

102 |

Every interaction is both precious and an opportunity to delight.

103 |
104 | 105 | 106 |

代码块

107 |
.compactUnderscore.js
1
108 | 2
109 | 
.compact([0, 1, false, 2, ‘’, 3]);
110 | => [1, 2, 3]
111 | 
112 | 113 | 114 |

链接

115 | 粉丝日志 116 | 117 | 118 |

图片

119 | 120 | 121 | 122 | 123 | 124 | 125 |
126 | 133 |
134 | 135 |
136 | 137 | 138 | 139 | 140 |
141 | 142 | 200 | 201 |
202 |
203 | 204 |
205 | 209 |
210 |
211 |
212 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 |
230 | 231 | -------------------------------------------------------------------------------- /css/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/css/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /css/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/css/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /css/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/css/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /css/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/css/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /css/images/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/css/images/banner.jpg -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | zoom: 1; 3 | width: 100%; 4 | } 5 | body:before, 6 | body:after { 7 | content: ""; 8 | display: table; 9 | } 10 | body:after { 11 | clear: both; 12 | } 13 | html, 14 | body, 15 | div, 16 | span, 17 | applet, 18 | object, 19 | iframe, 20 | h1, 21 | h2, 22 | h3, 23 | h4, 24 | h5, 25 | h6, 26 | p, 27 | blockquote, 28 | pre, 29 | a, 30 | abbr, 31 | acronym, 32 | address, 33 | big, 34 | cite, 35 | code, 36 | del, 37 | dfn, 38 | em, 39 | img, 40 | ins, 41 | kbd, 42 | q, 43 | s, 44 | samp, 45 | small, 46 | strike, 47 | strong, 48 | sub, 49 | sup, 50 | tt, 51 | var, 52 | dl, 53 | dt, 54 | dd, 55 | ol, 56 | ul, 57 | li, 58 | fieldset, 59 | form, 60 | label, 61 | legend, 62 | table, 63 | caption, 64 | tbody, 65 | tfoot, 66 | thead, 67 | tr, 68 | th, 69 | td { 70 | margin: 0; 71 | padding: 0; 72 | border: 0; 73 | outline: 0; 74 | font-weight: inherit; 75 | font-style: inherit; 76 | font-family: inherit; 77 | font-size: 100%; 78 | vertical-align: baseline; 79 | } 80 | body { 81 | line-height: 1; 82 | color: #000; 83 | background: #fff; 84 | } 85 | ol, 86 | ul { 87 | list-style: none; 88 | } 89 | table { 90 | border-collapse: separate; 91 | border-spacing: 0; 92 | vertical-align: middle; 93 | } 94 | caption, 95 | th, 96 | td { 97 | text-align: left; 98 | font-weight: normal; 99 | vertical-align: middle; 100 | } 101 | a img { 102 | border: none; 103 | } 104 | input, 105 | button { 106 | margin: 0; 107 | padding: 0; 108 | } 109 | input::-moz-focus-inner, 110 | button::-moz-focus-inner { 111 | border: 0; 112 | padding: 0; 113 | } 114 | @font-face { 115 | font-family: FontAwesome; 116 | font-style: normal; 117 | font-weight: normal; 118 | src: url("fonts/fontawesome-webfont.eot?v=#4.0.3"); 119 | src: url("fonts/fontawesome-webfont.eot?#iefix&v=#4.0.3") format("embedded-opentype"), url("fonts/fontawesome-webfont.woff?v=#4.0.3") format("woff"), url("fonts/fontawesome-webfont.ttf?v=#4.0.3") format("truetype"), url("fonts/fontawesome-webfont.svg#fontawesomeregular?v=#4.0.3") format("svg"); 120 | } 121 | html, 122 | body, 123 | #container { 124 | height: 100%; 125 | } 126 | body { 127 | background: #eee; 128 | font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif; 129 | } 130 | .outer { 131 | zoom: 1; 132 | max-width: 1220px; 133 | margin: 0 auto; 134 | padding: 0 20px; 135 | } 136 | .outer:before, 137 | .outer:after { 138 | content: ""; 139 | display: table; 140 | } 141 | .outer:after { 142 | clear: both; 143 | } 144 | .inner { 145 | display: inline; 146 | float: left; 147 | width: 98.3333333333333%; 148 | margin: 0 0.8333333333333%; 149 | } 150 | .left, 151 | .alignleft { 152 | float: left; 153 | } 154 | .right, 155 | .alignright { 156 | float: right; 157 | } 158 | .clear { 159 | clear: both; 160 | } 161 | #container { 162 | position: relative; 163 | } 164 | .mobile-nav-on { 165 | overflow: hidden; 166 | } 167 | #wrap { 168 | height: 100%; 169 | width: 100%; 170 | position: absolute; 171 | top: 0; 172 | left: 0; 173 | -webkit-transition: 0.2s ease-out; 174 | -moz-transition: 0.2s ease-out; 175 | -o-transition: 0.2s ease-out; 176 | -ms-transition: 0.2s ease-out; 177 | transition: 0.2s ease-out; 178 | z-index: 1; 179 | background: #eee; 180 | } 181 | .mobile-nav-on #wrap { 182 | left: 280px; 183 | } 184 | @media screen and (min-width: 768px) { 185 | #main { 186 | display: inline; 187 | float: left; 188 | width: 73.3333333333333%; 189 | margin: 0 0.8333333333333%; 190 | } 191 | } 192 | .article-date, 193 | .article-category-link, 194 | .archive-year, 195 | .widget-title { 196 | text-decoration: none; 197 | text-transform: uppercase; 198 | letter-spacing: 2px; 199 | color: #999; 200 | margin-bottom: 1em; 201 | margin-left: 5px; 202 | line-height: 1em; 203 | text-shadow: 0 1px #fff; 204 | font-weight: bold; 205 | } 206 | .article-inner, 207 | .archive-article-inner { 208 | background: #fff; 209 | -webkit-box-shadow: 1px 2px 3px #ddd; 210 | box-shadow: 1px 2px 3px #ddd; 211 | border: 1px solid #ddd; 212 | -webkit-border-radius: 3px; 213 | border-radius: 3px; 214 | } 215 | .article-entry h1, 216 | .widget h1 { 217 | font-size: 2em; 218 | } 219 | .article-entry h2, 220 | .widget h2 { 221 | font-size: 1.5em; 222 | } 223 | .article-entry h3, 224 | .widget h3 { 225 | font-size: 1.3em; 226 | } 227 | .article-entry h4, 228 | .widget h4 { 229 | font-size: 1.2em; 230 | } 231 | .article-entry h5, 232 | .widget h5 { 233 | font-size: 1em; 234 | } 235 | .article-entry h6, 236 | .widget h6 { 237 | font-size: 1em; 238 | color: #999; 239 | } 240 | .article-entry hr, 241 | .widget hr { 242 | border: 1px dashed #ddd; 243 | } 244 | .article-entry strong, 245 | .widget strong { 246 | font-weight: bold; 247 | } 248 | .article-entry em, 249 | .widget em, 250 | .article-entry cite, 251 | .widget cite { 252 | font-style: italic; 253 | } 254 | .article-entry sup, 255 | .widget sup, 256 | .article-entry sub, 257 | .widget sub { 258 | font-size: 0.75em; 259 | line-height: 0; 260 | position: relative; 261 | vertical-align: baseline; 262 | } 263 | .article-entry sup, 264 | .widget sup { 265 | top: -0.5em; 266 | } 267 | .article-entry sub, 268 | .widget sub { 269 | bottom: -0.2em; 270 | } 271 | .article-entry small, 272 | .widget small { 273 | font-size: 0.85em; 274 | } 275 | .article-entry acronym, 276 | .widget acronym, 277 | .article-entry abbr, 278 | .widget abbr { 279 | border-bottom: 1px dotted; 280 | } 281 | .article-entry ul, 282 | .widget ul, 283 | .article-entry ol, 284 | .widget ol, 285 | .article-entry dl, 286 | .widget dl { 287 | margin: 0 20px; 288 | line-height: 1.6em; 289 | } 290 | .article-entry ul ul, 291 | .widget ul ul, 292 | .article-entry ol ul, 293 | .widget ol ul, 294 | .article-entry ul ol, 295 | .widget ul ol, 296 | .article-entry ol ol, 297 | .widget ol ol { 298 | margin-top: 0; 299 | margin-bottom: 0; 300 | } 301 | .article-entry ul, 302 | .widget ul { 303 | list-style: disc; 304 | } 305 | .article-entry ol, 306 | .widget ol { 307 | list-style: decimal; 308 | } 309 | .article-entry dt, 310 | .widget dt { 311 | font-weight: bold; 312 | } 313 | #header { 314 | height: 300px; 315 | position: relative; 316 | border-bottom: 1px solid #ddd; 317 | } 318 | #header:before, 319 | #header:after { 320 | content: ""; 321 | position: absolute; 322 | left: 0; 323 | right: 0; 324 | height: 40px; 325 | } 326 | #header:before { 327 | top: 0; 328 | background: -webkit-linear-gradient(rgba(0,0,0,0.2), transparent); 329 | background: -moz-linear-gradient(rgba(0,0,0,0.2), transparent); 330 | background: -o-linear-gradient(rgba(0,0,0,0.2), transparent); 331 | background: -ms-linear-gradient(rgba(0,0,0,0.2), transparent); 332 | background: linear-gradient(rgba(0,0,0,0.2), transparent); 333 | } 334 | #header:after { 335 | bottom: 0; 336 | background: -webkit-linear-gradient(transparent, rgba(0,0,0,0.2)); 337 | background: -moz-linear-gradient(transparent, rgba(0,0,0,0.2)); 338 | background: -o-linear-gradient(transparent, rgba(0,0,0,0.2)); 339 | background: -ms-linear-gradient(transparent, rgba(0,0,0,0.2)); 340 | background: linear-gradient(transparent, rgba(0,0,0,0.2)); 341 | } 342 | #header-outer { 343 | height: 100%; 344 | position: relative; 345 | } 346 | #header-inner { 347 | position: relative; 348 | overflow: hidden; 349 | } 350 | #banner { 351 | position: absolute; 352 | top: 0; 353 | left: 0; 354 | width: 100%; 355 | height: 100%; 356 | background: url("images/banner.jpg") center #000; 357 | -webkit-background-size: cover; 358 | -moz-background-size: cover; 359 | background-size: cover; 360 | z-index: -1; 361 | } 362 | #header-title { 363 | text-align: center; 364 | height: 40px; 365 | position: absolute; 366 | top: 50%; 367 | left: 0; 368 | margin-top: -20px; 369 | } 370 | #logo, 371 | #subtitle { 372 | text-decoration: none; 373 | color: #fff; 374 | font-weight: 300; 375 | text-shadow: 0 1px 4px rgba(0,0,0,0.3); 376 | } 377 | #logo { 378 | font-size: 40px; 379 | line-height: 40px; 380 | letter-spacing: 2px; 381 | } 382 | #subtitle { 383 | font-size: 16px; 384 | line-height: 16px; 385 | letter-spacing: 1px; 386 | } 387 | #subtitle-wrap { 388 | margin-top: 16px; 389 | } 390 | #main-nav { 391 | float: left; 392 | margin-left: -15px; 393 | } 394 | .nav-icon, 395 | .main-nav-link { 396 | float: left; 397 | color: #fff; 398 | opacity: 0.6; 399 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; 400 | filter: alpha(opacity=60); 401 | text-decoration: none; 402 | text-shadow: 0 1px rgba(0,0,0,0.2); 403 | -webkit-transition: opacity 0.2s; 404 | -moz-transition: opacity 0.2s; 405 | -o-transition: opacity 0.2s; 406 | -ms-transition: opacity 0.2s; 407 | transition: opacity 0.2s; 408 | display: block; 409 | padding: 20px 15px; 410 | } 411 | .nav-icon:hover, 412 | .main-nav-link:hover { 413 | opacity: 1; 414 | -ms-filter: none; 415 | filter: none; 416 | } 417 | .nav-icon { 418 | font-family: FontAwesome; 419 | text-align: center; 420 | font-size: 14px; 421 | width: 14px; 422 | height: 14px; 423 | padding: 20px 15px; 424 | position: relative; 425 | cursor: pointer; 426 | } 427 | .main-nav-link { 428 | font-weight: 300; 429 | letter-spacing: 1px; 430 | } 431 | @media screen and (max-width: 479px) { 432 | .main-nav-link { 433 | display: none; 434 | } 435 | } 436 | #main-nav-toggle { 437 | display: none; 438 | } 439 | #main-nav-toggle:before { 440 | content: "\f0c9"; 441 | } 442 | @media screen and (max-width: 479px) { 443 | #main-nav-toggle { 444 | display: block; 445 | } 446 | } 447 | #sub-nav { 448 | float: right; 449 | margin-right: -15px; 450 | } 451 | #nav-rss-link:before { 452 | content: "\f09e"; 453 | } 454 | #nav-search-btn:before { 455 | content: "\f002"; 456 | } 457 | #search-form-wrap { 458 | position: absolute; 459 | top: 15px; 460 | width: 150px; 461 | height: 30px; 462 | right: -150px; 463 | opacity: 0; 464 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; 465 | filter: alpha(opacity=0); 466 | -webkit-transition: 0.2s ease-out; 467 | -moz-transition: 0.2s ease-out; 468 | -o-transition: 0.2s ease-out; 469 | -ms-transition: 0.2s ease-out; 470 | transition: 0.2s ease-out; 471 | } 472 | #search-form-wrap.on { 473 | opacity: 1; 474 | -ms-filter: none; 475 | filter: none; 476 | right: 0; 477 | } 478 | @media screen and (max-width: 479px) { 479 | #search-form-wrap { 480 | width: 100%; 481 | right: -100%; 482 | } 483 | } 484 | .search-form { 485 | position: absolute; 486 | top: 0; 487 | left: 0; 488 | right: 0; 489 | background: #fff; 490 | padding: 5px 15px; 491 | -webkit-border-radius: 15px; 492 | border-radius: 15px; 493 | -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.3); 494 | box-shadow: 0 0 10px rgba(0,0,0,0.3); 495 | } 496 | .search-form-input { 497 | border: none; 498 | background: none; 499 | color: #555; 500 | width: 100%; 501 | font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif; 502 | outline: none; 503 | } 504 | .search-form-input::-webkit-search-results-decoration, 505 | .search-form-input::-webkit-search-cancel-button { 506 | -webkit-appearance: none; 507 | } 508 | .search-form-submit { 509 | position: absolute; 510 | top: 50%; 511 | right: 10px; 512 | margin-top: -7px; 513 | font: 13px FontAwesome; 514 | border: none; 515 | background: none; 516 | color: #bbb; 517 | cursor: pointer; 518 | } 519 | .search-form-submit:hover, 520 | .search-form-submit:focus { 521 | color: #777; 522 | } 523 | .article { 524 | margin: 50px 0; 525 | } 526 | .article-inner { 527 | overflow: hidden; 528 | } 529 | .article-meta { 530 | zoom: 1; 531 | } 532 | .article-meta:before, 533 | .article-meta:after { 534 | content: ""; 535 | display: table; 536 | } 537 | .article-meta:after { 538 | clear: both; 539 | } 540 | .article-date { 541 | float: left; 542 | } 543 | .article-category { 544 | float: left; 545 | line-height: 1em; 546 | color: #ccc; 547 | text-shadow: 0 1px #fff; 548 | margin-left: 8px; 549 | } 550 | .article-category:before { 551 | content: "\2022"; 552 | } 553 | .article-category-link { 554 | margin: 0 12px 1em; 555 | } 556 | .article-header { 557 | padding: 20px 20px 0; 558 | } 559 | .article-title { 560 | text-decoration: none; 561 | font-size: 2em; 562 | font-weight: bold; 563 | color: #555; 564 | line-height: 1.1em; 565 | -webkit-transition: color 0.2s; 566 | -moz-transition: color 0.2s; 567 | -o-transition: color 0.2s; 568 | -ms-transition: color 0.2s; 569 | transition: color 0.2s; 570 | } 571 | a.article-title:hover { 572 | color: #258fb8; 573 | } 574 | .article-entry { 575 | zoom: 1; 576 | color: #555; 577 | padding: 0 20px; 578 | } 579 | .article-entry:before, 580 | .article-entry:after { 581 | content: ""; 582 | display: table; 583 | } 584 | .article-entry:after { 585 | clear: both; 586 | } 587 | .article-entry p, 588 | .article-entry table { 589 | line-height: 1.6em; 590 | margin: 1.6em 0; 591 | } 592 | .article-entry h1, 593 | .article-entry h2, 594 | .article-entry h3, 595 | .article-entry h4, 596 | .article-entry h5, 597 | .article-entry h6 { 598 | font-weight: bold; 599 | } 600 | .article-entry h1, 601 | .article-entry h2, 602 | .article-entry h3, 603 | .article-entry h4, 604 | .article-entry h5, 605 | .article-entry h6 { 606 | line-height: 1.1em; 607 | margin: 1.1em 0; 608 | } 609 | .article-entry a { 610 | color: #258fb8; 611 | text-decoration: none; 612 | } 613 | .article-entry a:hover { 614 | text-decoration: underline; 615 | } 616 | .article-entry ul, 617 | .article-entry ol, 618 | .article-entry dl { 619 | margin-top: 1.6em; 620 | margin-bottom: 1.6em; 621 | } 622 | .article-entry img, 623 | .article-entry video { 624 | max-width: 100%; 625 | height: auto; 626 | display: block; 627 | margin: auto; 628 | } 629 | .article-entry iframe { 630 | border: none; 631 | } 632 | .article-entry table { 633 | width: 100%; 634 | border-collapse: collapse; 635 | border-spacing: 0; 636 | } 637 | .article-entry th { 638 | font-weight: bold; 639 | border-bottom: 3px solid #ddd; 640 | padding-bottom: 0.5em; 641 | } 642 | .article-entry td { 643 | border-bottom: 1px solid #ddd; 644 | padding: 10px 0; 645 | } 646 | .article-entry blockquote { 647 | font-family: Georgia, "Times New Roman", serif; 648 | font-size: 1.4em; 649 | margin: 1.6em 20px; 650 | text-align: center; 651 | } 652 | .article-entry blockquote footer { 653 | font-size: 14px; 654 | margin: 1.6em 0; 655 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 656 | } 657 | .article-entry blockquote footer cite:before { 658 | content: "—"; 659 | padding: 0 0.5em; 660 | } 661 | .article-entry .pullquote { 662 | text-align: left; 663 | width: 45%; 664 | margin: 0; 665 | } 666 | .article-entry .pullquote.left { 667 | margin-left: 0.5em; 668 | margin-right: 1em; 669 | } 670 | .article-entry .pullquote.right { 671 | margin-right: 0.5em; 672 | margin-left: 1em; 673 | } 674 | .article-entry .caption { 675 | color: #999; 676 | display: block; 677 | font-size: 0.9em; 678 | margin-top: 0.5em; 679 | position: relative; 680 | text-align: center; 681 | } 682 | .article-entry .video-container { 683 | position: relative; 684 | padding-top: 56.25%; 685 | height: 0; 686 | overflow: hidden; 687 | } 688 | .article-entry .video-container iframe, 689 | .article-entry .video-container object, 690 | .article-entry .video-container embed { 691 | position: absolute; 692 | top: 0; 693 | left: 0; 694 | width: 100%; 695 | height: 100%; 696 | margin-top: 0; 697 | } 698 | .article-more-link a { 699 | display: inline-block; 700 | line-height: 1em; 701 | padding: 6px 15px; 702 | -webkit-border-radius: 15px; 703 | border-radius: 15px; 704 | background: #eee; 705 | color: #999; 706 | text-shadow: 0 1px #fff; 707 | text-decoration: none; 708 | } 709 | .article-more-link a:hover { 710 | background: #258fb8; 711 | color: #fff; 712 | text-decoration: none; 713 | text-shadow: 0 1px #1e7293; 714 | } 715 | .article-footer { 716 | zoom: 1; 717 | font-size: 0.85em; 718 | line-height: 1.6em; 719 | border-top: 1px solid #ddd; 720 | padding-top: 1.6em; 721 | margin: 0 20px 20px; 722 | } 723 | .article-footer:before, 724 | .article-footer:after { 725 | content: ""; 726 | display: table; 727 | } 728 | .article-footer:after { 729 | clear: both; 730 | } 731 | .article-footer a { 732 | color: #999; 733 | text-decoration: none; 734 | } 735 | .article-footer a:hover { 736 | color: #555; 737 | } 738 | .article-tag-list-item { 739 | float: left; 740 | margin-right: 10px; 741 | } 742 | .article-tag-list-link:before { 743 | content: "#"; 744 | } 745 | .article-comment-link { 746 | float: right; 747 | } 748 | .article-comment-link:before { 749 | content: "\f075"; 750 | font-family: FontAwesome; 751 | padding-right: 8px; 752 | } 753 | .article-share-link { 754 | cursor: pointer; 755 | float: right; 756 | margin-left: 20px; 757 | } 758 | .article-share-link:before { 759 | content: "\f064"; 760 | font-family: FontAwesome; 761 | padding-right: 6px; 762 | } 763 | #article-nav { 764 | zoom: 1; 765 | position: relative; 766 | } 767 | #article-nav:before, 768 | #article-nav:after { 769 | content: ""; 770 | display: table; 771 | } 772 | #article-nav:after { 773 | clear: both; 774 | } 775 | @media screen and (min-width: 768px) { 776 | #article-nav { 777 | margin: 50px 0; 778 | } 779 | #article-nav:before { 780 | width: 8px; 781 | height: 8px; 782 | position: absolute; 783 | top: 50%; 784 | left: 50%; 785 | margin-top: -4px; 786 | margin-left: -4px; 787 | content: ""; 788 | -webkit-border-radius: 50%; 789 | border-radius: 50%; 790 | background: #ddd; 791 | -webkit-box-shadow: 0 1px 2px #fff; 792 | box-shadow: 0 1px 2px #fff; 793 | } 794 | } 795 | .article-nav-link-wrap { 796 | text-decoration: none; 797 | text-shadow: 0 1px #fff; 798 | color: #999; 799 | -webkit-box-sizing: border-box; 800 | -moz-box-sizing: border-box; 801 | box-sizing: border-box; 802 | margin-top: 50px; 803 | text-align: center; 804 | display: block; 805 | } 806 | .article-nav-link-wrap:hover { 807 | color: #555; 808 | } 809 | @media screen and (min-width: 768px) { 810 | .article-nav-link-wrap { 811 | width: 50%; 812 | margin-top: 0; 813 | } 814 | } 815 | @media screen and (min-width: 768px) { 816 | #article-nav-newer { 817 | float: left; 818 | text-align: right; 819 | padding-right: 20px; 820 | } 821 | } 822 | @media screen and (min-width: 768px) { 823 | #article-nav-older { 824 | float: right; 825 | text-align: left; 826 | padding-left: 20px; 827 | } 828 | } 829 | .article-nav-caption { 830 | text-transform: uppercase; 831 | letter-spacing: 2px; 832 | color: #ddd; 833 | line-height: 1em; 834 | font-weight: bold; 835 | } 836 | #article-nav-newer .article-nav-caption { 837 | margin-right: -2px; 838 | } 839 | .article-nav-title { 840 | font-size: 0.85em; 841 | line-height: 1.6em; 842 | margin-top: 0.5em; 843 | } 844 | .article-share-box { 845 | position: absolute; 846 | display: none; 847 | background: #fff; 848 | -webkit-box-shadow: 1px 2px 10px rgba(0,0,0,0.2); 849 | box-shadow: 1px 2px 10px rgba(0,0,0,0.2); 850 | -webkit-border-radius: 3px; 851 | border-radius: 3px; 852 | margin-left: -145px; 853 | overflow: hidden; 854 | z-index: 1; 855 | } 856 | .article-share-box.on { 857 | display: block; 858 | } 859 | .article-share-input { 860 | width: 100%; 861 | background: none; 862 | -webkit-box-sizing: border-box; 863 | -moz-box-sizing: border-box; 864 | box-sizing: border-box; 865 | font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif; 866 | padding: 0 15px; 867 | color: #555; 868 | outline: none; 869 | border: 1px solid #ddd; 870 | -webkit-border-radius: 3px 3px 0 0; 871 | border-radius: 3px 3px 0 0; 872 | height: 36px; 873 | line-height: 36px; 874 | } 875 | .article-share-links { 876 | zoom: 1; 877 | background: #eee; 878 | } 879 | .article-share-links:before, 880 | .article-share-links:after { 881 | content: ""; 882 | display: table; 883 | } 884 | .article-share-links:after { 885 | clear: both; 886 | } 887 | .article-share-twitter, 888 | .article-share-facebook, 889 | .article-share-pinterest, 890 | .article-share-google { 891 | width: 50px; 892 | height: 36px; 893 | display: block; 894 | float: left; 895 | position: relative; 896 | color: #999; 897 | text-shadow: 0 1px #fff; 898 | } 899 | .article-share-twitter:before, 900 | .article-share-facebook:before, 901 | .article-share-pinterest:before, 902 | .article-share-google:before { 903 | font-size: 20px; 904 | font-family: FontAwesome; 905 | width: 20px; 906 | height: 20px; 907 | position: absolute; 908 | top: 50%; 909 | left: 50%; 910 | margin-top: -10px; 911 | margin-left: -10px; 912 | text-align: center; 913 | } 914 | .article-share-twitter:hover, 915 | .article-share-facebook:hover, 916 | .article-share-pinterest:hover, 917 | .article-share-google:hover { 918 | color: #fff; 919 | } 920 | .article-share-twitter:before { 921 | content: "\f099"; 922 | } 923 | .article-share-twitter:hover { 924 | background: #00aced; 925 | text-shadow: 0 1px #008abe; 926 | } 927 | .article-share-facebook:before { 928 | content: "\f09a"; 929 | } 930 | .article-share-facebook:hover { 931 | background: #3b5998; 932 | text-shadow: 0 1px #2f477a; 933 | } 934 | .article-share-pinterest:before { 935 | content: "\f0d2"; 936 | } 937 | .article-share-pinterest:hover { 938 | background: #cb2027; 939 | text-shadow: 0 1px #a21a1f; 940 | } 941 | .article-share-google:before { 942 | content: "\f0d5"; 943 | } 944 | .article-share-google:hover { 945 | background: #dd4b39; 946 | text-shadow: 0 1px #be3221; 947 | } 948 | .article-gallery { 949 | background: #000; 950 | position: relative; 951 | } 952 | .article-gallery-photos { 953 | position: relative; 954 | overflow: hidden; 955 | } 956 | .article-gallery-img { 957 | display: none; 958 | max-width: 100%; 959 | } 960 | .article-gallery-img:first-child { 961 | display: block; 962 | } 963 | .article-gallery-img.loaded { 964 | position: absolute; 965 | display: block; 966 | } 967 | .article-gallery-img img { 968 | display: block; 969 | max-width: 100%; 970 | margin: 0 auto; 971 | } 972 | #comments { 973 | background: #fff; 974 | -webkit-box-shadow: 1px 2px 3px #ddd; 975 | box-shadow: 1px 2px 3px #ddd; 976 | padding: 20px; 977 | border: 1px solid #ddd; 978 | -webkit-border-radius: 3px; 979 | border-radius: 3px; 980 | margin: 50px 0; 981 | } 982 | #comments a { 983 | color: #258fb8; 984 | } 985 | .archives-wrap { 986 | margin: 50px 0; 987 | } 988 | .archives { 989 | zoom: 1; 990 | } 991 | .archives:before, 992 | .archives:after { 993 | content: ""; 994 | display: table; 995 | } 996 | .archives:after { 997 | clear: both; 998 | } 999 | .archive-year-wrap { 1000 | margin-bottom: 1em; 1001 | } 1002 | .archives { 1003 | -webkit-column-gap: 10px; 1004 | -moz-column-gap: 10px; 1005 | column-gap: 10px; 1006 | } 1007 | @media screen and (min-width: 480px) and (max-width: 767px) { 1008 | .archives { 1009 | -webkit-column-count: 2; 1010 | -moz-column-count: 2; 1011 | column-count: 2; 1012 | } 1013 | } 1014 | @media screen and (min-width: 768px) { 1015 | .archives { 1016 | -webkit-column-count: 3; 1017 | -moz-column-count: 3; 1018 | column-count: 3; 1019 | } 1020 | } 1021 | .archive-article { 1022 | -webkit-column-break-inside: avoid; 1023 | page-break-inside: avoid; 1024 | overflow: hidden; 1025 | break-inside: avoid-column; 1026 | } 1027 | .archive-article-inner { 1028 | padding: 10px; 1029 | margin-bottom: 15px; 1030 | } 1031 | .archive-article-title { 1032 | text-decoration: none; 1033 | font-weight: bold; 1034 | color: #555; 1035 | -webkit-transition: color 0.2s; 1036 | -moz-transition: color 0.2s; 1037 | -o-transition: color 0.2s; 1038 | -ms-transition: color 0.2s; 1039 | transition: color 0.2s; 1040 | line-height: 1.6em; 1041 | } 1042 | .archive-article-title:hover { 1043 | color: #258fb8; 1044 | } 1045 | .archive-article-footer { 1046 | margin-top: 1em; 1047 | } 1048 | .archive-article-date { 1049 | color: #999; 1050 | text-decoration: none; 1051 | font-size: 0.85em; 1052 | line-height: 1em; 1053 | margin-bottom: 0.5em; 1054 | display: block; 1055 | } 1056 | #page-nav { 1057 | zoom: 1; 1058 | margin: 50px auto; 1059 | background: #fff; 1060 | -webkit-box-shadow: 1px 2px 3px #ddd; 1061 | box-shadow: 1px 2px 3px #ddd; 1062 | border: 1px solid #ddd; 1063 | -webkit-border-radius: 3px; 1064 | border-radius: 3px; 1065 | text-align: center; 1066 | color: #999; 1067 | overflow: hidden; 1068 | } 1069 | #page-nav:before, 1070 | #page-nav:after { 1071 | content: ""; 1072 | display: table; 1073 | } 1074 | #page-nav:after { 1075 | clear: both; 1076 | } 1077 | #page-nav a, 1078 | #page-nav span { 1079 | padding: 10px 20px; 1080 | } 1081 | #page-nav a { 1082 | color: #999; 1083 | text-decoration: none; 1084 | } 1085 | #page-nav a:hover { 1086 | background: #999; 1087 | color: #fff; 1088 | } 1089 | #page-nav .prev { 1090 | float: left; 1091 | } 1092 | #page-nav .next { 1093 | float: right; 1094 | } 1095 | #page-nav .page-number { 1096 | display: inline-block; 1097 | } 1098 | @media screen and (max-width: 479px) { 1099 | #page-nav .page-number { 1100 | display: none; 1101 | } 1102 | } 1103 | #page-nav .current { 1104 | color: #555; 1105 | font-weight: bold; 1106 | } 1107 | #page-nav .space { 1108 | color: #ddd; 1109 | } 1110 | #footer { 1111 | background: #262a30; 1112 | padding: 50px 0; 1113 | border-top: 1px solid #ddd; 1114 | color: #999; 1115 | } 1116 | #footer a { 1117 | color: #258fb8; 1118 | text-decoration: none; 1119 | } 1120 | #footer a:hover { 1121 | text-decoration: underline; 1122 | } 1123 | #footer-info { 1124 | line-height: 1.6em; 1125 | font-size: 0.85em; 1126 | } 1127 | .article-entry pre, 1128 | .article-entry .highlight { 1129 | background: #2d2d2d; 1130 | margin: 0 -20px; 1131 | padding: 15px 20px; 1132 | border-style: solid; 1133 | border-color: #ddd; 1134 | border-width: 1px 0; 1135 | overflow: auto; 1136 | color: #ccc; 1137 | line-height: 22.400000000000002px; 1138 | } 1139 | .article-entry .highlight .gutter pre, 1140 | .article-entry .gist .gist-file .gist-data .line-numbers { 1141 | color: #666; 1142 | font-size: 0.85em; 1143 | } 1144 | .article-entry pre, 1145 | .article-entry code { 1146 | font-family: "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace; 1147 | } 1148 | .article-entry code { 1149 | background: #eee; 1150 | text-shadow: 0 1px #fff; 1151 | padding: 0 0.3em; 1152 | } 1153 | .article-entry pre code { 1154 | background: none; 1155 | text-shadow: none; 1156 | padding: 0; 1157 | } 1158 | .article-entry .highlight pre { 1159 | border: none; 1160 | margin: 0; 1161 | padding: 0; 1162 | } 1163 | .article-entry .highlight table { 1164 | margin: 0; 1165 | width: auto; 1166 | } 1167 | .article-entry .highlight td { 1168 | border: none; 1169 | padding: 0; 1170 | } 1171 | .article-entry .highlight figcaption { 1172 | zoom: 1; 1173 | font-size: 0.85em; 1174 | color: #999; 1175 | line-height: 1em; 1176 | margin-bottom: 1em; 1177 | } 1178 | .article-entry .highlight figcaption:before, 1179 | .article-entry .highlight figcaption:after { 1180 | content: ""; 1181 | display: table; 1182 | } 1183 | .article-entry .highlight figcaption:after { 1184 | clear: both; 1185 | } 1186 | .article-entry .highlight figcaption a { 1187 | float: right; 1188 | } 1189 | .article-entry .highlight .gutter pre { 1190 | text-align: right; 1191 | padding-right: 20px; 1192 | } 1193 | .article-entry .gist { 1194 | margin: 0 -20px; 1195 | border-style: solid; 1196 | border-color: #ddd; 1197 | border-width: 1px 0; 1198 | background: #2d2d2d; 1199 | padding: 15px 20px 15px 0; 1200 | } 1201 | .article-entry .gist .gist-file { 1202 | border: none; 1203 | font-family: "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace; 1204 | margin: 0; 1205 | } 1206 | .article-entry .gist .gist-file .gist-data { 1207 | background: none; 1208 | border: none; 1209 | } 1210 | .article-entry .gist .gist-file .gist-data .line-numbers { 1211 | background: none; 1212 | border: none; 1213 | padding: 0 20px 0 0; 1214 | } 1215 | .article-entry .gist .gist-file .gist-data .line-data { 1216 | padding: 0 !important; 1217 | } 1218 | .article-entry .gist .gist-file .highlight { 1219 | margin: 0; 1220 | padding: 0; 1221 | border: none; 1222 | } 1223 | .article-entry .gist .gist-file .gist-meta { 1224 | background: #2d2d2d; 1225 | color: #999; 1226 | font: 0.85em "Helvetica Neue", Helvetica, Arial, sans-serif; 1227 | text-shadow: 0 0; 1228 | padding: 0; 1229 | margin-top: 1em; 1230 | margin-left: 20px; 1231 | } 1232 | .article-entry .gist .gist-file .gist-meta a { 1233 | color: #258fb8; 1234 | font-weight: normal; 1235 | } 1236 | .article-entry .gist .gist-file .gist-meta a:hover { 1237 | text-decoration: underline; 1238 | } 1239 | pre .comment, 1240 | pre .title { 1241 | color: #999; 1242 | } 1243 | pre .variable, 1244 | pre .attribute, 1245 | pre .tag, 1246 | pre .regexp, 1247 | pre .ruby .constant, 1248 | pre .xml .tag .title, 1249 | pre .xml .pi, 1250 | pre .xml .doctype, 1251 | pre .html .doctype, 1252 | pre .css .id, 1253 | pre .css .class, 1254 | pre .css .pseudo { 1255 | color: #f2777a; 1256 | } 1257 | pre .number, 1258 | pre .preprocessor, 1259 | pre .built_in, 1260 | pre .literal, 1261 | pre .params, 1262 | pre .constant { 1263 | color: #f99157; 1264 | } 1265 | pre .class, 1266 | pre .ruby .class .title, 1267 | pre .css .rules .attribute { 1268 | color: #9c9; 1269 | } 1270 | pre .string, 1271 | pre .value, 1272 | pre .inheritance, 1273 | pre .header, 1274 | pre .ruby .symbol, 1275 | pre .xml .cdata { 1276 | color: #9c9; 1277 | } 1278 | pre .css .hexcolor { 1279 | color: #6cc; 1280 | } 1281 | pre .function, 1282 | pre .python .decorator, 1283 | pre .python .title, 1284 | pre .ruby .function .title, 1285 | pre .ruby .title .keyword, 1286 | pre .perl .sub, 1287 | pre .javascript .title, 1288 | pre .coffeescript .title { 1289 | color: #69c; 1290 | } 1291 | pre .keyword, 1292 | pre .javascript .function { 1293 | color: #c9c; 1294 | } 1295 | @media screen and (max-width: 479px) { 1296 | #mobile-nav { 1297 | position: absolute; 1298 | top: 0; 1299 | left: 0; 1300 | width: 280px; 1301 | height: 100%; 1302 | background: #191919; 1303 | border-right: 1px solid #fff; 1304 | } 1305 | } 1306 | @media screen and (max-width: 479px) { 1307 | .mobile-nav-link { 1308 | display: block; 1309 | color: #999; 1310 | text-decoration: none; 1311 | padding: 15px 20px; 1312 | font-weight: bold; 1313 | } 1314 | .mobile-nav-link:hover { 1315 | color: #fff; 1316 | } 1317 | } 1318 | @media screen and (min-width: 768px) { 1319 | #sidebar { 1320 | display: inline; 1321 | float: left; 1322 | width: 23.3333333333333%; 1323 | margin: 0 0.8333333333333%; 1324 | } 1325 | } 1326 | .widget-wrap { 1327 | margin: 50px 0; 1328 | } 1329 | .widget { 1330 | color: #777; 1331 | text-shadow: 0 1px #fff; 1332 | background: #ddd; 1333 | -webkit-box-shadow: 0 -1px 4px #ccc inset; 1334 | box-shadow: 0 -1px 4px #ccc inset; 1335 | border: 1px solid #ccc; 1336 | padding: 15px; 1337 | -webkit-border-radius: 3px; 1338 | border-radius: 3px; 1339 | } 1340 | .widget a { 1341 | color: #258fb8; 1342 | text-decoration: none; 1343 | } 1344 | .widget a:hover { 1345 | text-decoration: underline; 1346 | } 1347 | .widget ul ul, 1348 | .widget ol ul, 1349 | .widget dl ul, 1350 | .widget ul ol, 1351 | .widget ol ol, 1352 | .widget dl ol, 1353 | .widget ul dl, 1354 | .widget ol dl, 1355 | .widget dl dl { 1356 | margin-left: 15px; 1357 | list-style: disc; 1358 | } 1359 | .widget { 1360 | line-height: 1.6em; 1361 | word-wrap: break-word; 1362 | font-size: 0.9em; 1363 | } 1364 | .widget ul, 1365 | .widget ol { 1366 | list-style: none; 1367 | margin: 0; 1368 | } 1369 | .widget ul ul, 1370 | .widget ol ul, 1371 | .widget ul ol, 1372 | .widget ol ol { 1373 | margin: 0 20px; 1374 | } 1375 | .widget ul ul, 1376 | .widget ol ul { 1377 | list-style: disc; 1378 | } 1379 | .widget ul ol, 1380 | .widget ol ol { 1381 | list-style: decimal; 1382 | } 1383 | .category-list-count, 1384 | .tag-list-count, 1385 | .archive-list-count { 1386 | padding-left: 5px; 1387 | color: #999; 1388 | font-size: 0.85em; 1389 | } 1390 | .category-list-count:before, 1391 | .tag-list-count:before, 1392 | .archive-list-count:before { 1393 | content: "("; 1394 | } 1395 | .category-list-count:after, 1396 | .tag-list-count:after, 1397 | .archive-list-count:after { 1398 | content: ")"; 1399 | } 1400 | .tagcloud a { 1401 | margin-right: 5px; 1402 | } 1403 | -------------------------------------------------------------------------------- /fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/blank.gif -------------------------------------------------------------------------------- /fancybox/fancybox_loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/fancybox_loading.gif -------------------------------------------------------------------------------- /fancybox/fancybox_loading@2x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/fancybox_loading@2x.gif -------------------------------------------------------------------------------- /fancybox/fancybox_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/fancybox_overlay.png -------------------------------------------------------------------------------- /fancybox/fancybox_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/fancybox_sprite.png -------------------------------------------------------------------------------- /fancybox/fancybox_sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/fancybox_sprite@2x.png -------------------------------------------------------------------------------- /fancybox/helpers/fancybox_buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/fancybox/helpers/fancybox_buttons.png -------------------------------------------------------------------------------- /fancybox/helpers/jquery.fancybox-buttons.css: -------------------------------------------------------------------------------- 1 | #fancybox-buttons { 2 | position: fixed; 3 | left: 0; 4 | width: 100%; 5 | z-index: 8050; 6 | } 7 | 8 | #fancybox-buttons.top { 9 | top: 10px; 10 | } 11 | 12 | #fancybox-buttons.bottom { 13 | bottom: 10px; 14 | } 15 | 16 | #fancybox-buttons ul { 17 | display: block; 18 | width: 166px; 19 | height: 30px; 20 | margin: 0 auto; 21 | padding: 0; 22 | list-style: none; 23 | border: 1px solid #111; 24 | border-radius: 3px; 25 | -webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); 26 | -moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); 27 | box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); 28 | background: rgb(50,50,50); 29 | background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%); 30 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51))); 31 | background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 32 | background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 33 | background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 34 | background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 35 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 ); 36 | } 37 | 38 | #fancybox-buttons ul li { 39 | float: left; 40 | margin: 0; 41 | padding: 0; 42 | } 43 | 44 | #fancybox-buttons a { 45 | display: block; 46 | width: 30px; 47 | height: 30px; 48 | text-indent: -9999px; 49 | background-color: transparent; 50 | background-image: url('fancybox_buttons.png'); 51 | background-repeat: no-repeat; 52 | outline: none; 53 | opacity: 0.8; 54 | } 55 | 56 | #fancybox-buttons a:hover { 57 | opacity: 1; 58 | } 59 | 60 | #fancybox-buttons a.btnPrev { 61 | background-position: 5px 0; 62 | } 63 | 64 | #fancybox-buttons a.btnNext { 65 | background-position: -33px 0; 66 | border-right: 1px solid #3e3e3e; 67 | } 68 | 69 | #fancybox-buttons a.btnPlay { 70 | background-position: 0 -30px; 71 | } 72 | 73 | #fancybox-buttons a.btnPlayOn { 74 | background-position: -30px -30px; 75 | } 76 | 77 | #fancybox-buttons a.btnToggle { 78 | background-position: 3px -60px; 79 | border-left: 1px solid #111; 80 | border-right: 1px solid #3e3e3e; 81 | width: 35px 82 | } 83 | 84 | #fancybox-buttons a.btnToggleOn { 85 | background-position: -27px -60px; 86 | } 87 | 88 | #fancybox-buttons a.btnClose { 89 | border-left: 1px solid #111; 90 | width: 35px; 91 | background-position: -56px 0px; 92 | } 93 | 94 | #fancybox-buttons a.btnDisabled { 95 | opacity : 0.4; 96 | cursor: default; 97 | } -------------------------------------------------------------------------------- /fancybox/helpers/jquery.fancybox-buttons.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Buttons helper for fancyBox 3 | * version: 1.0.5 (Mon, 15 Oct 2012) 4 | * @requires fancyBox v2.0 or later 5 | * 6 | * Usage: 7 | * $(".fancybox").fancybox({ 8 | * helpers : { 9 | * buttons: { 10 | * position : 'top' 11 | * } 12 | * } 13 | * }); 14 | * 15 | */ 16 | ;(function ($) { 17 | //Shortcut for fancyBox object 18 | var F = $.fancybox; 19 | 20 | //Add helper object 21 | F.helpers.buttons = { 22 | defaults : { 23 | skipSingle : false, // disables if gallery contains single image 24 | position : 'top', // 'top' or 'bottom' 25 | tpl : '
' 26 | }, 27 | 28 | list : null, 29 | buttons: null, 30 | 31 | beforeLoad: function (opts, obj) { 32 | //Remove self if gallery do not have at least two items 33 | 34 | if (opts.skipSingle && obj.group.length < 2) { 35 | obj.helpers.buttons = false; 36 | obj.closeBtn = true; 37 | 38 | return; 39 | } 40 | 41 | //Increase top margin to give space for buttons 42 | obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30; 43 | }, 44 | 45 | onPlayStart: function () { 46 | if (this.buttons) { 47 | this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn'); 48 | } 49 | }, 50 | 51 | onPlayEnd: function () { 52 | if (this.buttons) { 53 | this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn'); 54 | } 55 | }, 56 | 57 | afterShow: function (opts, obj) { 58 | var buttons = this.buttons; 59 | 60 | if (!buttons) { 61 | this.list = $(opts.tpl).addClass(opts.position).appendTo('body'); 62 | 63 | buttons = { 64 | prev : this.list.find('.btnPrev').click( F.prev ), 65 | next : this.list.find('.btnNext').click( F.next ), 66 | play : this.list.find('.btnPlay').click( F.play ), 67 | toggle : this.list.find('.btnToggle').click( F.toggle ), 68 | close : this.list.find('.btnClose').click( F.close ) 69 | } 70 | } 71 | 72 | //Prev 73 | if (obj.index > 0 || obj.loop) { 74 | buttons.prev.removeClass('btnDisabled'); 75 | } else { 76 | buttons.prev.addClass('btnDisabled'); 77 | } 78 | 79 | //Next / Play 80 | if (obj.loop || obj.index < obj.group.length - 1) { 81 | buttons.next.removeClass('btnDisabled'); 82 | buttons.play.removeClass('btnDisabled'); 83 | 84 | } else { 85 | buttons.next.addClass('btnDisabled'); 86 | buttons.play.addClass('btnDisabled'); 87 | } 88 | 89 | this.buttons = buttons; 90 | 91 | this.onUpdate(opts, obj); 92 | }, 93 | 94 | onUpdate: function (opts, obj) { 95 | var toggle; 96 | 97 | if (!this.buttons) { 98 | return; 99 | } 100 | 101 | toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn'); 102 | 103 | //Size toggle button 104 | if (obj.canShrink) { 105 | toggle.addClass('btnToggleOn'); 106 | 107 | } else if (!obj.canExpand) { 108 | toggle.addClass('btnDisabled'); 109 | } 110 | }, 111 | 112 | beforeClose: function () { 113 | if (this.list) { 114 | this.list.remove(); 115 | } 116 | 117 | this.list = null; 118 | this.buttons = null; 119 | } 120 | }; 121 | 122 | }(jQuery)); 123 | -------------------------------------------------------------------------------- /fancybox/helpers/jquery.fancybox-media.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Media helper for fancyBox 3 | * version: 1.0.6 (Fri, 14 Jun 2013) 4 | * @requires fancyBox v2.0 or later 5 | * 6 | * Usage: 7 | * $(".fancybox").fancybox({ 8 | * helpers : { 9 | * media: true 10 | * } 11 | * }); 12 | * 13 | * Set custom URL parameters: 14 | * $(".fancybox").fancybox({ 15 | * helpers : { 16 | * media: { 17 | * youtube : { 18 | * params : { 19 | * autoplay : 0 20 | * } 21 | * } 22 | * } 23 | * } 24 | * }); 25 | * 26 | * Or: 27 | * $(".fancybox").fancybox({, 28 | * helpers : { 29 | * media: true 30 | * }, 31 | * youtube : { 32 | * autoplay: 0 33 | * } 34 | * }); 35 | * 36 | * Supports: 37 | * 38 | * Youtube 39 | * http://www.youtube.com/watch?v=opj24KnzrWo 40 | * http://www.youtube.com/embed/opj24KnzrWo 41 | * http://youtu.be/opj24KnzrWo 42 | * http://www.youtube-nocookie.com/embed/opj24KnzrWo 43 | * Vimeo 44 | * http://vimeo.com/40648169 45 | * http://vimeo.com/channels/staffpicks/38843628 46 | * http://vimeo.com/groups/surrealism/videos/36516384 47 | * http://player.vimeo.com/video/45074303 48 | * Metacafe 49 | * http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/ 50 | * http://www.metacafe.com/watch/7635964/ 51 | * Dailymotion 52 | * http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people 53 | * Twitvid 54 | * http://twitvid.com/QY7MD 55 | * Twitpic 56 | * http://twitpic.com/7p93st 57 | * Instagram 58 | * http://instagr.am/p/IejkuUGxQn/ 59 | * http://instagram.com/p/IejkuUGxQn/ 60 | * Google maps 61 | * http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17 62 | * http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16 63 | * http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56 64 | */ 65 | ;(function ($) { 66 | "use strict"; 67 | 68 | //Shortcut for fancyBox object 69 | var F = $.fancybox, 70 | format = function( url, rez, params ) { 71 | params = params || ''; 72 | 73 | if ( $.type( params ) === "object" ) { 74 | params = $.param(params, true); 75 | } 76 | 77 | $.each(rez, function(key, value) { 78 | url = url.replace( '$' + key, value || '' ); 79 | }); 80 | 81 | if (params.length) { 82 | url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params; 83 | } 84 | 85 | return url; 86 | }; 87 | 88 | //Add helper object 89 | F.helpers.media = { 90 | defaults : { 91 | youtube : { 92 | matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i, 93 | params : { 94 | autoplay : 1, 95 | autohide : 1, 96 | fs : 1, 97 | rel : 0, 98 | hd : 1, 99 | wmode : 'opaque', 100 | enablejsapi : 1 101 | }, 102 | type : 'iframe', 103 | url : '//www.youtube.com/embed/$3' 104 | }, 105 | vimeo : { 106 | matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/, 107 | params : { 108 | autoplay : 1, 109 | hd : 1, 110 | show_title : 1, 111 | show_byline : 1, 112 | show_portrait : 0, 113 | fullscreen : 1 114 | }, 115 | type : 'iframe', 116 | url : '//player.vimeo.com/video/$1' 117 | }, 118 | metacafe : { 119 | matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/, 120 | params : { 121 | autoPlay : 'yes' 122 | }, 123 | type : 'swf', 124 | url : function( rez, params, obj ) { 125 | obj.swf.flashVars = 'playerVars=' + $.param( params, true ); 126 | 127 | return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf'; 128 | } 129 | }, 130 | dailymotion : { 131 | matcher : /dailymotion.com\/video\/(.*)\/?(.*)/, 132 | params : { 133 | additionalInfos : 0, 134 | autoStart : 1 135 | }, 136 | type : 'swf', 137 | url : '//www.dailymotion.com/swf/video/$1' 138 | }, 139 | twitvid : { 140 | matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i, 141 | params : { 142 | autoplay : 0 143 | }, 144 | type : 'iframe', 145 | url : '//www.twitvid.com/embed.php?guid=$1' 146 | }, 147 | twitpic : { 148 | matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i, 149 | type : 'image', 150 | url : '//twitpic.com/show/full/$1/' 151 | }, 152 | instagram : { 153 | matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i, 154 | type : 'image', 155 | url : '//$1/p/$2/media/?size=l' 156 | }, 157 | google_maps : { 158 | matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i, 159 | type : 'iframe', 160 | url : function( rez ) { 161 | return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed'); 162 | } 163 | } 164 | }, 165 | 166 | beforeLoad : function(opts, obj) { 167 | var url = obj.href || '', 168 | type = false, 169 | what, 170 | item, 171 | rez, 172 | params; 173 | 174 | for (what in opts) { 175 | if (opts.hasOwnProperty(what)) { 176 | item = opts[ what ]; 177 | rez = url.match( item.matcher ); 178 | 179 | if (rez) { 180 | type = item.type; 181 | params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null)); 182 | 183 | url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params ); 184 | 185 | break; 186 | } 187 | } 188 | } 189 | 190 | if (type) { 191 | obj.href = url; 192 | obj.type = type; 193 | 194 | obj.autoHeight = false; 195 | } 196 | } 197 | }; 198 | 199 | }(jQuery)); -------------------------------------------------------------------------------- /fancybox/helpers/jquery.fancybox-thumbs.css: -------------------------------------------------------------------------------- 1 | #fancybox-thumbs { 2 | position: fixed; 3 | left: 0; 4 | width: 100%; 5 | overflow: hidden; 6 | z-index: 8050; 7 | } 8 | 9 | #fancybox-thumbs.bottom { 10 | bottom: 2px; 11 | } 12 | 13 | #fancybox-thumbs.top { 14 | top: 2px; 15 | } 16 | 17 | #fancybox-thumbs ul { 18 | position: relative; 19 | list-style: none; 20 | margin: 0; 21 | padding: 0; 22 | } 23 | 24 | #fancybox-thumbs ul li { 25 | float: left; 26 | padding: 1px; 27 | opacity: 0.5; 28 | } 29 | 30 | #fancybox-thumbs ul li.active { 31 | opacity: 0.75; 32 | padding: 0; 33 | border: 1px solid #fff; 34 | } 35 | 36 | #fancybox-thumbs ul li:hover { 37 | opacity: 1; 38 | } 39 | 40 | #fancybox-thumbs ul li a { 41 | display: block; 42 | position: relative; 43 | overflow: hidden; 44 | border: 1px solid #222; 45 | background: #111; 46 | outline: none; 47 | } 48 | 49 | #fancybox-thumbs ul li img { 50 | display: block; 51 | position: relative; 52 | border: 0; 53 | padding: 0; 54 | max-width: none; 55 | } -------------------------------------------------------------------------------- /fancybox/helpers/jquery.fancybox-thumbs.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Thumbnail helper for fancyBox 3 | * version: 1.0.7 (Mon, 01 Oct 2012) 4 | * @requires fancyBox v2.0 or later 5 | * 6 | * Usage: 7 | * $(".fancybox").fancybox({ 8 | * helpers : { 9 | * thumbs: { 10 | * width : 50, 11 | * height : 50 12 | * } 13 | * } 14 | * }); 15 | * 16 | */ 17 | ;(function ($) { 18 | //Shortcut for fancyBox object 19 | var F = $.fancybox; 20 | 21 | //Add helper object 22 | F.helpers.thumbs = { 23 | defaults : { 24 | width : 50, // thumbnail width 25 | height : 50, // thumbnail height 26 | position : 'bottom', // 'top' or 'bottom' 27 | source : function ( item ) { // function to obtain the URL of the thumbnail image 28 | var href; 29 | 30 | if (item.element) { 31 | href = $(item.element).find('img').attr('src'); 32 | } 33 | 34 | if (!href && item.type === 'image' && item.href) { 35 | href = item.href; 36 | } 37 | 38 | return href; 39 | } 40 | }, 41 | 42 | wrap : null, 43 | list : null, 44 | width : 0, 45 | 46 | init: function (opts, obj) { 47 | var that = this, 48 | list, 49 | thumbWidth = opts.width, 50 | thumbHeight = opts.height, 51 | thumbSource = opts.source; 52 | 53 | //Build list structure 54 | list = ''; 55 | 56 | for (var n = 0; n < obj.group.length; n++) { 57 | list += '
  • '; 58 | } 59 | 60 | this.wrap = $('
    ').addClass(opts.position).appendTo('body'); 61 | this.list = $('').appendTo(this.wrap); 62 | 63 | //Load each thumbnail 64 | $.each(obj.group, function (i) { 65 | var el = obj.group[ i ], 66 | href = thumbSource( el ); 67 | 68 | if (!href) { 69 | return; 70 | } 71 | 72 | $("").load(function () { 73 | var width = this.width, 74 | height = this.height, 75 | widthRatio, heightRatio, parent; 76 | 77 | if (!that.list || !width || !height) { 78 | return; 79 | } 80 | 81 | //Calculate thumbnail width/height and center it 82 | widthRatio = width / thumbWidth; 83 | heightRatio = height / thumbHeight; 84 | 85 | parent = that.list.children().eq(i).find('a'); 86 | 87 | if (widthRatio >= 1 && heightRatio >= 1) { 88 | if (widthRatio > heightRatio) { 89 | width = Math.floor(width / heightRatio); 90 | height = thumbHeight; 91 | 92 | } else { 93 | width = thumbWidth; 94 | height = Math.floor(height / widthRatio); 95 | } 96 | } 97 | 98 | $(this).css({ 99 | width : width, 100 | height : height, 101 | top : Math.floor(thumbHeight / 2 - height / 2), 102 | left : Math.floor(thumbWidth / 2 - width / 2) 103 | }); 104 | 105 | parent.width(thumbWidth).height(thumbHeight); 106 | 107 | $(this).hide().appendTo(parent).fadeIn(300); 108 | 109 | }) 110 | .attr('src', href) 111 | .attr('title', el.title); 112 | }); 113 | 114 | //Set initial width 115 | this.width = this.list.children().eq(0).outerWidth(true); 116 | 117 | this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))); 118 | }, 119 | 120 | beforeLoad: function (opts, obj) { 121 | //Remove self if gallery do not have at least two items 122 | if (obj.group.length < 2) { 123 | obj.helpers.thumbs = false; 124 | 125 | return; 126 | } 127 | 128 | //Increase bottom margin to give space for thumbs 129 | obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15); 130 | }, 131 | 132 | afterShow: function (opts, obj) { 133 | //Check if exists and create or update list 134 | if (this.list) { 135 | this.onUpdate(opts, obj); 136 | 137 | } else { 138 | this.init(opts, obj); 139 | } 140 | 141 | //Set active element 142 | this.list.children().removeClass('active').eq(obj.index).addClass('active'); 143 | }, 144 | 145 | //Center list 146 | onUpdate: function (opts, obj) { 147 | if (this.list) { 148 | this.list.stop(true).animate({ 149 | 'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)) 150 | }, 150); 151 | } 152 | }, 153 | 154 | beforeClose: function () { 155 | if (this.wrap) { 156 | this.wrap.remove(); 157 | } 158 | 159 | this.wrap = null; 160 | this.list = null; 161 | this.width = 0; 162 | } 163 | } 164 | 165 | }(jQuery)); -------------------------------------------------------------------------------- /fancybox/jquery.fancybox.css: -------------------------------------------------------------------------------- 1 | /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 2 | .fancybox-wrap, 3 | .fancybox-skin, 4 | .fancybox-outer, 5 | .fancybox-inner, 6 | .fancybox-image, 7 | .fancybox-wrap iframe, 8 | .fancybox-wrap object, 9 | .fancybox-nav, 10 | .fancybox-nav span, 11 | .fancybox-tmp 12 | { 13 | padding: 0; 14 | margin: 0; 15 | border: 0; 16 | outline: none; 17 | vertical-align: top; 18 | } 19 | 20 | .fancybox-wrap { 21 | position: absolute; 22 | top: 0; 23 | left: 0; 24 | z-index: 8020; 25 | } 26 | 27 | .fancybox-skin { 28 | position: relative; 29 | background: #f9f9f9; 30 | color: #444; 31 | text-shadow: none; 32 | -webkit-border-radius: 4px; 33 | -moz-border-radius: 4px; 34 | border-radius: 4px; 35 | } 36 | 37 | .fancybox-opened { 38 | z-index: 8030; 39 | } 40 | 41 | .fancybox-opened .fancybox-skin { 42 | -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 43 | -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 44 | box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 45 | } 46 | 47 | .fancybox-outer, .fancybox-inner { 48 | position: relative; 49 | } 50 | 51 | .fancybox-inner { 52 | overflow: hidden; 53 | } 54 | 55 | .fancybox-type-iframe .fancybox-inner { 56 | -webkit-overflow-scrolling: touch; 57 | } 58 | 59 | .fancybox-error { 60 | color: #444; 61 | font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; 62 | margin: 0; 63 | padding: 15px; 64 | white-space: nowrap; 65 | } 66 | 67 | .fancybox-image, .fancybox-iframe { 68 | display: block; 69 | width: 100%; 70 | height: 100%; 71 | } 72 | 73 | .fancybox-image { 74 | max-width: 100%; 75 | max-height: 100%; 76 | } 77 | 78 | #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { 79 | background-image: url(fancybox_sprite.png); 80 | } 81 | 82 | #fancybox-loading { 83 | position: fixed; 84 | top: 50%; 85 | left: 50%; 86 | margin-top: -22px; 87 | margin-left: -22px; 88 | background-position: 0 -108px; 89 | opacity: 0.8; 90 | cursor: pointer; 91 | z-index: 8060; 92 | } 93 | 94 | #fancybox-loading div { 95 | width: 44px; 96 | height: 44px; 97 | background: url(fancybox_loading.gif) center center no-repeat; 98 | } 99 | 100 | .fancybox-close { 101 | position: absolute; 102 | top: -18px; 103 | right: -18px; 104 | width: 36px; 105 | height: 36px; 106 | cursor: pointer; 107 | z-index: 8040; 108 | } 109 | 110 | .fancybox-nav { 111 | position: absolute; 112 | top: 0; 113 | width: 40%; 114 | height: 100%; 115 | cursor: pointer; 116 | text-decoration: none; 117 | background: transparent url(blank.gif); /* helps IE */ 118 | -webkit-tap-highlight-color: rgba(0,0,0,0); 119 | z-index: 8040; 120 | } 121 | 122 | .fancybox-prev { 123 | left: 0; 124 | } 125 | 126 | .fancybox-next { 127 | right: 0; 128 | } 129 | 130 | .fancybox-nav span { 131 | position: absolute; 132 | top: 50%; 133 | width: 36px; 134 | height: 34px; 135 | margin-top: -18px; 136 | cursor: pointer; 137 | z-index: 8040; 138 | visibility: hidden; 139 | } 140 | 141 | .fancybox-prev span { 142 | left: 10px; 143 | background-position: 0 -36px; 144 | } 145 | 146 | .fancybox-next span { 147 | right: 10px; 148 | background-position: 0 -72px; 149 | } 150 | 151 | .fancybox-nav:hover span { 152 | visibility: visible; 153 | } 154 | 155 | .fancybox-tmp { 156 | position: absolute; 157 | top: -99999px; 158 | left: -99999px; 159 | max-width: 99999px; 160 | max-height: 99999px; 161 | overflow: visible !important; 162 | } 163 | 164 | /* Overlay helper */ 165 | 166 | .fancybox-lock { 167 | overflow: visible !important; 168 | width: auto; 169 | } 170 | 171 | .fancybox-lock body { 172 | overflow: hidden !important; 173 | } 174 | 175 | .fancybox-lock-test { 176 | overflow-y: hidden !important; 177 | } 178 | 179 | .fancybox-overlay { 180 | position: absolute; 181 | top: 0; 182 | left: 0; 183 | overflow: hidden; 184 | display: none; 185 | z-index: 8010; 186 | background: url(fancybox_overlay.png); 187 | } 188 | 189 | .fancybox-overlay-fixed { 190 | position: fixed; 191 | bottom: 0; 192 | right: 0; 193 | } 194 | 195 | .fancybox-lock .fancybox-overlay { 196 | overflow: auto; 197 | overflow-y: scroll; 198 | } 199 | 200 | /* Title helper */ 201 | 202 | .fancybox-title { 203 | visibility: hidden; 204 | font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; 205 | position: relative; 206 | text-shadow: none; 207 | z-index: 8050; 208 | } 209 | 210 | .fancybox-opened .fancybox-title { 211 | visibility: visible; 212 | } 213 | 214 | .fancybox-title-float-wrap { 215 | position: absolute; 216 | bottom: 0; 217 | right: 50%; 218 | margin-bottom: -35px; 219 | z-index: 8050; 220 | text-align: center; 221 | } 222 | 223 | .fancybox-title-float-wrap .child { 224 | display: inline-block; 225 | margin-right: -100%; 226 | padding: 2px 20px; 227 | background: transparent; /* Fallback for web browsers that doesn't support RGBa */ 228 | background: rgba(0, 0, 0, 0.8); 229 | -webkit-border-radius: 15px; 230 | -moz-border-radius: 15px; 231 | border-radius: 15px; 232 | text-shadow: 0 1px 2px #222; 233 | color: #FFF; 234 | font-weight: bold; 235 | line-height: 24px; 236 | white-space: nowrap; 237 | } 238 | 239 | .fancybox-title-outside-wrap { 240 | position: relative; 241 | margin-top: 10px; 242 | color: #fff; 243 | } 244 | 245 | .fancybox-title-inside-wrap { 246 | padding-top: 10px; 247 | } 248 | 249 | .fancybox-title-over-wrap { 250 | position: absolute; 251 | bottom: 0; 252 | left: 0; 253 | color: #fff; 254 | padding: 10px; 255 | background: #000; 256 | background: rgba(0, 0, 0, .8); 257 | } 258 | 259 | /*Retina graphics!*/ 260 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 261 | only screen and (min--moz-device-pixel-ratio: 1.5), 262 | only screen and (min-device-pixel-ratio: 1.5){ 263 | 264 | #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { 265 | background-image: url(fancybox_sprite@2x.png); 266 | background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ 267 | } 268 | 269 | #fancybox-loading div { 270 | background-image: url(fancybox_loading@2x.gif); 271 | background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ 272 | } 273 | } -------------------------------------------------------------------------------- /fancybox/jquery.fancybox.pack.js: -------------------------------------------------------------------------------- 1 | /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 2 | (function(s,H,f,w){var K=f("html"),q=f(s),p=f(H),b=f.fancybox=function(){b.open.apply(this,arguments)},J=navigator.userAgent.match(/msie/i),C=null,t=H.createTouch!==w,u=function(a){return a&&a.hasOwnProperty&&a instanceof f},r=function(a){return a&&"string"===f.type(a)},F=function(a){return r(a)&&0
    ',image:'',iframe:'",error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, 6 | openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1, 7 | isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=u(a)?f(a).get():[a]),f.each(a,function(e,c){var l={},g,h,k,n,m;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),u(c)?(l={href:c.data("fancybox-href")||c.attr("href"),title:f("
    ").text(c.data("fancybox-title")||c.attr("title")).html(),isDom:!0,element:c}, 8 | f.metadata&&f.extend(!0,l,c.metadata())):l=c);g=d.href||l.href||(r(c)?c:null);h=d.title!==w?d.title:l.title||"";n=(k=d.content||l.content)?"html":d.type||l.type;!n&&l.isDom&&(n=c.data("fancybox-type"),n||(n=(n=c.prop("class").match(/fancybox\.(\w+)/))?n[1]:null));r(g)&&(n||(b.isImage(g)?n="image":b.isSWF(g)?n="swf":"#"===g.charAt(0)?n="inline":r(c)&&(n="html",k=c)),"ajax"===n&&(m=g.split(/\s+/,2),g=m.shift(),m=m.shift()));k||("inline"===n?g?k=f(r(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):l.isDom&&(k=c): 9 | "html"===n?k=g:n||g||!l.isDom||(n="inline",k=c));f.extend(l,{href:g,type:n,content:k,title:h,selector:m});a[e]=l}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==w&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1===b.trigger("onCancel")||(b.hideLoading(),a&&(b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(), 10 | b.coming=null,b.current||b._afterZoomOut(a)))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(b.isOpen&&!0!==a?(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]()):(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&& 11 | (b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};!0===a||!b.player.isActive&&!1!==a?b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==w&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,l;c&&(l=b._getPosition(d),a&&"scroll"===a.type?(delete l.position,c.stop(!0,!0).animate(l,200)):(c.css(l),e.pos=f.extend({},e.dim,l)))}, 13 | update:function(a){var d=a&&a.originalEvent&&a.originalEvent.type,e=!d||"orientationchange"===d;e&&(clearTimeout(C),C=null);b.isOpen&&!C&&(C=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),C=null)},e&&!t?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,t&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"), 14 | b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
    ').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){27===(a.which||a.keyCode)&&(a.preventDefault(),b.cancel())});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}));b.trigger("onLoading")},getViewport:function(){var a=b.current&& 15 | b.current.locked||!1,d={x:q.scrollLeft(),y:q.scrollTop()};a&&a.length?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=t&&s.innerWidth?s.innerWidth:q.width(),d.h=t&&s.innerHeight?s.innerHeight:q.height());return d},unbindEvents:function(){b.wrap&&u(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");q.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(q.bind("orientationchange.fb"+(t?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c= 16 | e.which||e.keyCode,l=e.target||e.srcElement;if(27===c&&b.coming)return!1;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||l&&(l.type||f(l).is("[contenteditable]"))||f.each(d,function(d,l){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();0!==c&&!k&&1g||0>l)&&b.next(0>g?"up":"right"),d.preventDefault())}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&& 18 | b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)})}p.trigger(a)},isImage:function(a){return r(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return r(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=m(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c, 19 | c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"=== 20 | c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&t&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(t?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))});b.trigger("onReady"); 21 | if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width= 22 | this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming, 23 | d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",t?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);t||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload|| 24 | b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,l,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()); 25 | b.unbindEvents();e=a.content;c=a.type;l=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
    ").html(e).find(a.selector):u(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
    ').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder", 26 | !1)}));break;case "image":e=a.tpl.image.replace(/\{href\}/g,g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}u(e)&&e.parent().is(a.inner)||a.inner.append(e);b.trigger("beforeShow"); 27 | a.inner.css("overflow","yes"===l?"scroll":"no"===l?"hidden":l);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(!b.isOpened)f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();else if(d.prevMethod)b.transitions[d.prevMethod]();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,l=b.skin,g=b.inner,h=b.current,c=h.width,k=h.height,n=h.minWidth,v=h.minHeight,p=h.maxWidth, 28 | q=h.maxHeight,t=h.scrolling,r=h.scrollOutside?h.scrollbarWidth:0,y=h.margin,z=m(y[1]+y[3]),s=m(y[0]+y[2]),w,A,u,D,B,G,C,E,I;e.add(l).add(g).width("auto").height("auto").removeClass("fancybox-tmp");y=m(l.outerWidth(!0)-l.width());w=m(l.outerHeight(!0)-l.height());A=z+y;u=s+w;D=F(c)?(a.w-A)*m(c)/100:c;B=F(k)?(a.h-u)*m(k)/100:k;if("iframe"===h.type){if(I=h.content,h.autoHeight&&1===I.data("ready"))try{I[0].contentWindow.document.location&&(g.width(D).height(9999),G=I.contents().find("body"),r&&G.css("overflow-x", 29 | "hidden"),B=G.outerHeight(!0))}catch(H){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(D),h.autoHeight||g.height(B),h.autoWidth&&(D=g.width()),h.autoHeight&&(B=g.height()),g.removeClass("fancybox-tmp");c=m(D);k=m(B);E=D/B;n=m(F(n)?m(n,"w")-A:n);p=m(F(p)?m(p,"w")-A:p);v=m(F(v)?m(v,"h")-u:v);q=m(F(q)?m(q,"h")-u:q);G=p;C=q;h.fitToView&&(p=Math.min(a.w-A,p),q=Math.min(a.h-u,q));A=a.w-z;s=a.h-s;h.aspectRatio?(c>p&&(c=p,k=m(c/E)),k>q&&(k=q,c=m(k*E)),cA||z>s)&&c>n&&k>v&&!(19p&&(c=p,k=m(c/E)),g.width(c).height(k),e.width(c+y),a=e.width(),z=e.height();else c=Math.max(n,Math.min(c,c-(a-A))),k=Math.max(v,Math.min(k,k-(z-s)));r&&"auto"===t&&kA||z>s)&&c>n&&k>v;c=h.aspectRatio?cv&&k
    ').appendTo(d&&d.lenth?d:"body");this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay", 40 | function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){q.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),q.scrollTop(this.scrollV).scrollLeft(this.scrollH));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%"); 41 | J?(b=Math.max(H.documentElement.offsetWidth,H.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>q.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&this.fixed&&b.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&f("*").filter(function(){return"fixed"=== 42 | f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=q.scrollTop(),this.scrollH=q.scrollLeft(),this.el.addClass("fancybox-lock"),q.scrollTop(this.scrollV).scrollLeft(this.scrollH));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float", 43 | position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(r(e)&&""!==f.trim(e)){d=f('
    '+e+"
    ");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),J&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(m(d.css("margin-bottom")))}d["top"===a.position?"prependTo": 44 | "appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",l=function(g){var h=f(this).blur(),k=d,l,m;g.ctrlKey||g.altKey||g.shiftKey||g.metaKey||h.is(".fancybox-wrap")||(l=a.groupAttr||"data-fancybox-group",m=h.attr(l),m||(l="rel",m=h.get(0)[l]),m&&""!==m&&"nofollow"!==m&&(h=c.length?f(c):e,h=h.filter("["+l+'="'+m+'"]'),k=h.index(this)),a.index=k,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;c&&!1!==a.live?p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')", 45 | "click.fb-start",l):e.unbind("click.fb-start").bind("click.fb-start",l);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===w&&(f.scrollbarWidth=function(){var a=f('
    ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});f.support.fixedPosition===w&&(f.support.fixedPosition=function(){var a=f('
    ').appendTo("body"), 46 | b=20===a[0].offsetTop||15===a[0].offsetTop;a.remove();return b}());f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(s).width();K.addClass("fancybox-lock-test");d=f(s).width();K.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery); -------------------------------------------------------------------------------- /images/fens.me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsspirit/nodejs-hexo/98b22736313bc70b4b3b9b575bb9bf9a8640985d/images/fens.me.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
    28 |
    29 | 63 |
    64 |
    65 | 66 |
    67 | 77 |
    78 | 79 | 80 |
    81 | 82 | 83 |

    84 | 新的开始 85 |

    86 | 87 | 88 |
    89 | 90 |
    91 | 92 |

    这是新的开始,我用hexo创建了第一篇文章。

    93 |

    通过下面的命令,就可以创建新文章

    94 |
    1
     95 | 2
     96 | 
    D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
     97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
     98 | 
    99 | 100 |

    感觉非常好。

    101 |

    引用

    102 |

    Every interaction is both precious and an opportunity to delight.

    103 |
    104 | 105 | 106 |

    代码块

    107 |
    .compactUnderscore.js
    1
    108 | 2
    109 | 
    .compact([0, 1, false, 2, ‘’, 3]);
    110 | => [1, 2, 3]
    111 | 
    112 | 113 | 114 |

    链接

    115 | 粉丝日志 116 | 117 | 118 |

    图片

    119 | 120 | 121 | 122 | 123 | 124 | 125 |
    126 | 133 |
    134 | 135 |
    136 | 137 | 138 | 139 |
    140 | 146 |
    147 | 148 | 149 |
    150 | 151 | 152 |

    153 | Hello World 154 |

    155 | 156 | 157 |
    158 | 159 |
    160 | 161 |

    Welcome to Hexo! This is your very first post. Check documentation to learn how to use.

    162 | 163 | 164 |
    165 |
    166 | Share 167 | 168 | 169 |
    170 |
    171 | 172 |
    173 | 174 | 175 | 176 | 177 |
    178 | 179 | 237 | 238 |
    239 |
    240 | 241 |
    242 | 246 |
    247 |
    248 |
    249 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 |
    267 | 268 | -------------------------------------------------------------------------------- /js/script.js: -------------------------------------------------------------------------------- 1 | (function($){ 2 | // Search 3 | var $searchWrap = $('#search-form-wrap'), 4 | isSearchAnim = false, 5 | searchAnimDuration = 200; 6 | 7 | var startSearchAnim = function(){ 8 | isSearchAnim = true; 9 | }; 10 | 11 | var stopSearchAnim = function(callback){ 12 | setTimeout(function(){ 13 | isSearchAnim = false; 14 | callback && callback(); 15 | }, searchAnimDuration); 16 | }; 17 | 18 | $('#nav-search-btn').on('click', function(){ 19 | if (isSearchAnim) return; 20 | 21 | startSearchAnim(); 22 | $searchWrap.addClass('on'); 23 | stopSearchAnim(function(){ 24 | $('.search-form-input').focus(); 25 | }); 26 | }); 27 | 28 | $('.search-form-input').on('blur', function(){ 29 | startSearchAnim(); 30 | $searchWrap.removeClass('on'); 31 | stopSearchAnim(); 32 | }); 33 | 34 | // Share 35 | $('body').on('click', function(){ 36 | $('.article-share-box.on').removeClass('on'); 37 | }).on('click', '.article-share-link', function(e){ 38 | e.stopPropagation(); 39 | 40 | var $this = $(this), 41 | url = $this.attr('data-url'), 42 | encodedUrl = encodeURIComponent(url), 43 | id = 'article-share-box-' + $this.attr('data-id'), 44 | offset = $this.offset(); 45 | 46 | if ($('#' + id).length){ 47 | var box = $('#' + id); 48 | 49 | if (box.hasClass('on')){ 50 | box.removeClass('on'); 51 | return; 52 | } 53 | } else { 54 | var html = [ 55 | '
    ', 56 | '', 57 | '
    ', 58 | '', 59 | '', 60 | '', 61 | '', 62 | '
    ', 63 | '
    ' 64 | ].join(''); 65 | 66 | var box = $(html); 67 | 68 | $('body').append(box); 69 | } 70 | 71 | $('.article-share-box.on').hide(); 72 | 73 | box.css({ 74 | top: offset.top + 25, 75 | left: offset.left 76 | }).addClass('on'); 77 | }).on('click', '.article-share-box', function(e){ 78 | e.stopPropagation(); 79 | }).on('click', '.article-share-box-input', function(){ 80 | $(this).select(); 81 | }).on('click', '.article-share-box-link', function(e){ 82 | e.preventDefault(); 83 | e.stopPropagation(); 84 | 85 | window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450'); 86 | }); 87 | 88 | // Caption 89 | $('.article-entry').each(function(i){ 90 | $(this).find('img').each(function(){ 91 | if ($(this).parent().hasClass('fancybox')) return; 92 | 93 | var alt = this.alt; 94 | 95 | if (alt) $(this).after('' + alt + ''); 96 | 97 | $(this).wrap(''); 98 | }); 99 | 100 | $(this).find('.fancybox').each(function(){ 101 | $(this).attr('rel', 'article' + i); 102 | }); 103 | }); 104 | 105 | if ($.fancybox){ 106 | $('.fancybox').fancybox(); 107 | } 108 | 109 | // Mobile nav 110 | var $container = $('#container'), 111 | isMobileNavAnim = false, 112 | mobileNavAnimDuration = 200; 113 | 114 | var startMobileNavAnim = function(){ 115 | isMobileNavAnim = true; 116 | }; 117 | 118 | var stopMobileNavAnim = function(){ 119 | setTimeout(function(){ 120 | isMobileNavAnim = false; 121 | }, mobileNavAnimDuration); 122 | } 123 | 124 | $('#main-nav-toggle').on('click', function(){ 125 | if (isMobileNavAnim) return; 126 | 127 | startMobileNavAnim(); 128 | $container.toggleClass('mobile-nav-on'); 129 | stopMobileNavAnim(); 130 | }); 131 | 132 | $('#wrap').on('click', function(){ 133 | if (isMobileNavAnim || !$container.hasClass('mobile-nav-on')) return; 134 | 135 | $container.removeClass('mobile-nav-on'); 136 | }); 137 | })(jQuery); -------------------------------------------------------------------------------- /tags/开始/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tag: 开始 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
    28 |
    29 | 63 |
    64 |
    65 | 66 |
    67 | 77 |
    78 | 79 | 80 |
    81 | 82 | 83 |

    84 | 新的开始 85 |

    86 | 87 | 88 |
    89 | 90 |
    91 | 92 |

    这是新的开始,我用hexo创建了第一篇文章。

    93 |

    通过下面的命令,就可以创建新文章

    94 |
    1
     95 | 2
     96 | 
    D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
     97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
     98 | 
    99 | 100 |

    感觉非常好。

    101 |

    引用

    102 |

    Every interaction is both precious and an opportunity to delight.

    103 |
    104 | 105 | 106 |

    代码块

    107 |
    .compactUnderscore.js
    1
    108 | 2
    109 | 
    .compact([0, 1, false, 2, ‘’, 3]);
    110 | => [1, 2, 3]
    111 | 
    112 | 113 | 114 |

    链接

    115 | 粉丝日志 116 | 117 | 118 |

    图片

    119 | 120 | 121 | 122 | 123 | 124 | 125 |
    126 | 133 |
    134 | 135 |
    136 | 137 | 138 | 139 | 140 |
    141 | 142 | 200 | 201 |
    202 |
    203 | 204 |
    205 | 209 |
    210 |
    211 |
    212 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 |
    230 | 231 | -------------------------------------------------------------------------------- /tags/我/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tag: 我 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
    28 |
    29 | 63 |
    64 |
    65 | 66 |
    67 | 77 |
    78 | 79 | 80 |
    81 | 82 | 83 |

    84 | 新的开始 85 |

    86 | 87 | 88 |
    89 | 90 |
    91 | 92 |

    这是新的开始,我用hexo创建了第一篇文章。

    93 |

    通过下面的命令,就可以创建新文章

    94 |
    1
     95 | 2
     96 | 
    D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
     97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
     98 | 
    99 | 100 |

    感觉非常好。

    101 |

    引用

    102 |

    Every interaction is both precious and an opportunity to delight.

    103 |
    104 | 105 | 106 |

    代码块

    107 |
    .compactUnderscore.js
    1
    108 | 2
    109 | 
    .compact([0, 1, false, 2, ‘’, 3]);
    110 | => [1, 2, 3]
    111 | 
    112 | 113 | 114 |

    链接

    115 | 粉丝日志 116 | 117 | 118 |

    图片

    119 | 120 | 121 | 122 | 123 | 124 | 125 |
    126 | 133 |
    134 | 135 |
    136 | 137 | 138 | 139 | 140 |
    141 | 142 | 200 | 201 |
    202 |
    203 | 204 |
    205 | 209 |
    210 |
    211 |
    212 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 |
    230 | 231 | -------------------------------------------------------------------------------- /tags/日记/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Tag: 日记 | Hexo博客 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
    28 |
    29 | 63 |
    64 |
    65 | 66 |
    67 | 77 |
    78 | 79 | 80 |
    81 | 82 | 83 |

    84 | 新的开始 85 |

    86 | 87 | 88 |
    89 | 90 |
    91 | 92 |

    这是新的开始,我用hexo创建了第一篇文章。

    93 |

    通过下面的命令,就可以创建新文章

    94 |
    1
     95 | 2
     96 | 
    D:\workspace\javascript\nodejs-hexo>hexo new 新的开始
     97 | [info] File created at D:\workspace\javascript\nodejs-hexo\source\_posts\新的开始.md
     98 | 
    99 | 100 |

    感觉非常好。

    101 |

    引用

    102 |

    Every interaction is both precious and an opportunity to delight.

    103 |
    104 | 105 | 106 |

    代码块

    107 |
    .compactUnderscore.js
    1
    108 | 2
    109 | 
    .compact([0, 1, false, 2, ‘’, 3]);
    110 | => [1, 2, 3]
    111 | 
    112 | 113 | 114 |

    链接

    115 | 粉丝日志 116 | 117 | 118 |

    图片

    119 | 120 | 121 | 122 | 123 | 124 | 125 |
    126 | 133 |
    134 | 135 |
    136 | 137 | 138 | 139 | 140 |
    141 | 142 | 200 | 201 |
    202 |
    203 | 204 |
    205 | 209 |
    210 |
    211 |
    212 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 |
    230 | 231 | --------------------------------------------------------------------------------