├── favicon.ico ├── screenshot.jpg ├── images ├── body-bg.png ├── default.cur ├── favicon.ico ├── pointer.cur ├── index-post-bg2.png ├── index-header-wave.png └── index-header-default-bg.jpg ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff └── fontawesome-webfont.woff2 ├── navigator.php ├── page-footer.php ├── page.php ├── links.php ├── README.md ├── functions.php ├── navigation.php ├── archive.php ├── index.php ├── js ├── highlightjs-line-numbers.js ├── main.js ├── waves.min.js ├── jquery.pjax.js └── highlight.pack.js ├── css ├── atom-one-light.css ├── waves.min.css ├── adapt.css ├── jquery.fancybox.css ├── font-awesome.min.css └── layout.css ├── footer.php ├── header.php ├── archive-page.php ├── post.php └── comments.php /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/favicon.ico -------------------------------------------------------------------------------- /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/screenshot.jpg -------------------------------------------------------------------------------- /images/body-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/body-bg.png -------------------------------------------------------------------------------- /images/default.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/default.cur -------------------------------------------------------------------------------- /images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/favicon.ico -------------------------------------------------------------------------------- /images/pointer.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/pointer.cur -------------------------------------------------------------------------------- /fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /images/index-post-bg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/index-post-bg2.png -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /images/index-header-wave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/index-header-wave.png -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /images/index-header-default-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/machengwei1024/Note-Typecho/HEAD/images/index-header-default-bg.jpg -------------------------------------------------------------------------------- /navigator.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page-footer.php: -------------------------------------------------------------------------------- 1 |
2 | 7 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 2 | need('header.php'); ?> 3 | 4 |
5 |
6 |
7 |

title() ?>

8 |
9 |
10 |
11 |
12 |
13 | content(); ?> 14 |
15 |
16 |
17 |
18 |
19 | need('page-footer.php'); ?> 20 |
21 | need('footer.php'); ?> -------------------------------------------------------------------------------- /links.php: -------------------------------------------------------------------------------- 1 | 8 | need('header.php'); ?> 9 |
10 |
11 |
12 |

title() ?>

13 |
14 |
15 |
16 |
17 | 20 |
21 |
22 |
23 |
24 | need('page-footer.php'); ?> 25 |
26 | need('footer.php'); ?> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [English](https://github.com/WeicMa/Jian/blob/master/README-EN) 2 | 3 | Note正如其名字一样,是一款适合写作、做笔记的博客主题,设计风格来自我的上一款主题 [《Jian》](https://isweic.com/themes-jian) ,也可以理解为《Jian》的升级版、整容版; 4 | 5 | > 注意:此款主题目前 仍然处于开发阶段,所以会不断地增加新功能和优化,如果你在使用此款主题请密切关注此篇文章或Github 6 | 7 | #### 使用注意 8 | 9 | 10 | 本主题提供免费使用,但是: 11 | 12 | * 不能修改任何代码(不包括媒体文件路径和超链接); 13 | * 不能去除底部版权信息 14 | * 转载请注明项目主页; 15 | 16 | 请务必遵守以上几项,这是对作者最起码的尊重; 17 | 18 | 本主题同时也提供收费服务,其实就是卖个不让免费版干的事(收费服务可以魔改和去除页面底部的版权信息以及更新后能及时收到邮件通知); 19 | 20 | 21 | #### 功能和特色 22 | 23 | * 适合写作的设计; 24 | * 炫酷的侧滑导航栏设计; 25 | * 文章页打赏功能; 26 | * 紧凑的按钮设计; 27 | * 响应式设计; 28 | * Pjax技术; 29 | * 代码高亮; 30 | * 又大又长的首页头图; 31 | * 不丰富的社交按钮,只有4个; 32 | * 文章页图片放大功能; 33 | * 支持嵌入第三方评论; 34 | * 支持Ghost、Typecho、Hexo这三个平台; 35 | * Alpha版本,更多功能和优化请期待,谢谢! 36 | 37 | 38 | 39 | #### 更多信息 40 | 41 | 本页面不写任何更新日志,只在[作者博客](https://isweic.com/themes-note/)发布信息 42 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | addInput($logoUrl); 7 | $indexBGUrl = new Typecho_Widget_Helper_Form_Element_Text('indexBGUrl', NULL, NULL, _t('首页头图地址'), _t('在这里填入一个图片的URL地址, 以在网站显示你的首页头图')); 8 | $form->addInput($indexBGUrl); 9 | // 赞助图片链接 10 | $weixinUrl = new Typecho_Widget_Helper_Form_Element_Text('weixinUrl', NULL, NULL, _t('微信图片地址'), _t('在这里填入你微信二维码图片的URL地址, 以在网站文章页的赞助模块里显示你的微信二维码')); 11 | $form->addInput($weixinUrl); 12 | $alipayUrl = new Typecho_Widget_Helper_Form_Element_Text('alipayUrl', NULL, NULL, _t('支付宝图片地址'), _t('在这里填入你支付宝二维码图片的URL地址, 以在网站文章页的赞助模块里显示你的支付宝二维码')); 13 | $form->addInput($alipayUrl); 14 | $qqUrl = new Typecho_Widget_Helper_Form_Element_Text('qqUrl', NULL, NULL, _t('QQ图片地址'), _t('在这里填入你QQ二维码图片的URL地址, 以在网站文章页的赞助模块里显示你的QQ二维码')); 15 | $form->addInput($qqUrl); 16 | //备案号 17 | $socialicp = new Typecho_Widget_Helper_Form_Element_Text('socialicp', NULL, NULL, _t('备案号'), _t('在这里输入备案号')); 18 | $form->addInput($socialicp); 19 | } 20 | -------------------------------------------------------------------------------- /navigation.php: -------------------------------------------------------------------------------- 1 | 33 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 2 | need('header.php'); ?> 3 | 4 |
5 |
6 |
7 | 8 | 9 | have()): ?> 10 | next()): ?> 11 |
12 |
13 |
14 |

title() ?>

15 | 16 |
17 |
18 | excerpt(130, ' ...'); ?> 19 |
20 |
21 |
22 | 23 | 24 |
25 |
26 |
27 |

没有你要找的内容

28 |
29 |
30 |
31 | 32 | need('navigator.php'); ?> 33 |
34 | need('page-footer.php'); ?> 35 |
36 | need('footer.php'); ?> 37 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | need('header.php');?> 13 |
14 | options->indexBGUrl): ?> 15 |
16 | 30 | 31 |
32 | 33 | next()): ?> 34 |
35 |
36 |
37 |

title() ?>

38 | 39 |
40 |
41 | excerpt(120, ' ...'); ?> 42 |
43 |
44 |
45 | 46 | need('navigator.php'); ?> 47 |
48 | need('page-footer.php'); ?> 49 |
50 | need('footer.php'); ?> 51 | -------------------------------------------------------------------------------- /js/highlightjs-line-numbers.js: -------------------------------------------------------------------------------- 1 | (function (w) { 2 | 'use strict'; 3 | 4 | if (typeof w.hljs === 'undefined') { 5 | console.error('highlight.js not detected!'); 6 | } else { 7 | w.hljs.initLineNumbersOnLoad = initLineNumbersOnLoad; 8 | w.hljs.lineNumbersBlock = lineNumbersBlock; 9 | } 10 | 11 | function initLineNumbersOnLoad () { 12 | if (document.readyState === 'complete') { 13 | documentReady(); 14 | } else { 15 | w.addEventListener('DOMContentLoaded', documentReady); 16 | } 17 | } 18 | 19 | function documentReady () { 20 | try { 21 | var blocks = document.querySelectorAll('code.hljs'); 22 | 23 | for (var i in blocks) { 24 | if (blocks.hasOwnProperty(i)) { 25 | lineNumbersBlock(blocks[i]); 26 | } 27 | } 28 | } catch (e) { 29 | console.error('LineNumbers error: ', e); 30 | } 31 | } 32 | 33 | function lineNumbersBlock (element) { 34 | if (typeof element !== 'object') return; 35 | 36 | var parent = element.parentNode; 37 | var lines = getCountLines(parent.textContent); 38 | 39 | if (lines > 1) { 40 | var l = ''; 41 | for (var i = 0; i < lines; i++) { 42 | l += (i + 1) + '\n'; 43 | } 44 | 45 | var linesPanel = document.createElement('code'); 46 | linesPanel.className = 'hljs hljs-line-numbers'; 47 | linesPanel.style.float = 'left'; 48 | linesPanel.textContent = l; 49 | 50 | parent.insertBefore(linesPanel, element); 51 | } 52 | } 53 | 54 | function getCountLines(text) { 55 | if (text.length === 0) return 0; 56 | 57 | var regExp = /\r\n|\r|\n/g; 58 | var lines = text.match(regExp); 59 | lines = lines ? lines.length : 0; 60 | 61 | if (!text[text.length - 1].match(regExp)) { 62 | lines += 1; 63 | } 64 | 65 | return lines; 66 | } 67 | }(window)); -------------------------------------------------------------------------------- /css/atom-one-light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Atom One Light by Daniel Gamage 4 | Original One Light Syntax theme from https://github.com/atom/one-light-syntax 5 | 6 | base: #fafafa 7 | mono-1: #383a42 8 | mono-2: #686b77 9 | mono-3: #a0a1a7 10 | hue-1: #0184bb 11 | hue-2: #4078f2 12 | hue-3: #a626a4 13 | hue-4: #50a14f 14 | hue-5: #e45649 15 | hue-5-2: #c91243 16 | hue-6: #986801 17 | hue-6-2: #c18401 18 | 19 | */ 20 | 21 | .hljs { 22 | display: block; 23 | overflow-x: auto; 24 | padding: 0.5em; 25 | color: #255; 26 | background: #f7f7f7; 27 | /*background: rgb(59, 45, 45);*/ 28 | font-size: 10pt; 29 | } 30 | 31 | .hljs-comment, 32 | .hljs-quote { 33 | color: #a0a1a7; 34 | font-style: italic; 35 | } 36 | 37 | .hljs-doctag, 38 | .hljs-keyword, 39 | .hljs-formula { 40 | color: #a626a4; 41 | } 42 | 43 | .hljs-section, 44 | .hljs-name, 45 | .hljs-selector-tag, 46 | .hljs-deletion, 47 | .hljs-subst { 48 | color: #e45649; 49 | } 50 | 51 | .hljs-literal { 52 | color: #0184bb; 53 | } 54 | 55 | .hljs-string, 56 | .hljs-regexp, 57 | .hljs-addition, 58 | .hljs-attribute, 59 | .hljs-meta-string { 60 | color: #50a14f; 61 | } 62 | 63 | .hljs-built_in, 64 | .hljs-class .hljs-title { 65 | color: #c18401; 66 | } 67 | 68 | .hljs-attr, 69 | .hljs-variable, 70 | .hljs-template-variable, 71 | .hljs-type, 72 | .hljs-selector-class, 73 | .hljs-selector-attr, 74 | .hljs-selector-pseudo, 75 | .hljs-number { 76 | color: #986801; 77 | } 78 | 79 | .hljs-symbol, 80 | .hljs-bullet, 81 | .hljs-link, 82 | .hljs-meta, 83 | .hljs-selector-id, 84 | .hljs-title { 85 | color: #4078f2; 86 | } 87 | 88 | .hljs-emphasis { 89 | font-style: italic; 90 | } 91 | 92 | .hljs-strong { 93 | font-weight: bold; 94 | } 95 | 96 | .hljs-link { 97 | text-decoration: underline; 98 | } 99 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | footer(); ?> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 25 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | <?php $this->archiveTitle(array( 10 | 'category' => _t('分类 %s 下的文章'), 11 | 'search' => _t('包含关键字 %s 的文章'), 12 | 'tag' => _t('标签 %s 下的文章'), 13 | 'author' => _t('%s 发布的文章') 14 | ), '', ' - '); ?><?php $this->options->title(); ?> 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 28 | 29 | header(); ?> 30 | 31 | 32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | need('navigation.php'); ?> 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /archive-page.php: -------------------------------------------------------------------------------- 1 | 8 | need('header.php'); ?> 9 |
10 |
11 |
12 |

title() ?>

13 |
14 |
15 |
16 |
17 |
18 | widget('Widget_Metas_Category_List')->to($categories); ?> 19 | next()): ?> 20 | widget('Widget_Archive@category-' . $categories->mid, 'pageSize=7&type=category', 'mid=' . $categories->mid)->to($posts); ?> 21 |
22 | next()): ?> 23 | sequence): ?> 24 |

name(); ?>

25 | 33 |
34 |
35 | 36 | 37 |
38 | widget('Widget_Metas_Tag_Cloud', 'ignoreZeroCount=1&limit=30')->to($tags); ?> 39 | next()): ?> 40 | name(); ?> 41 | 42 |
43 |
44 |
45 |
46 |
47 |
48 | need('page-footer.php'); ?> 49 |
50 | need('footer.php'); ?> -------------------------------------------------------------------------------- /post.php: -------------------------------------------------------------------------------- 1 | 2 | need('header.php'); ?> 3 | 4 |
5 |
6 |
7 |

title() ?>

8 | 9 |
10 |
11 |
12 |
13 |
14 | content(); ?> 15 |
16 | 19 |
20 |
21 | theNext(' %s',''); ?> 22 |
23 |
24 |
25 | thePrev('%s ',''); ?> 26 |
27 |
28 |
29 |
30 | theNext('上一篇:%s',''); ?> 31 |
32 |
33 | thePrev('下一篇:%s',''); ?> 34 |
35 |
36 | need('comments.php'); ?> 37 |
38 |
39 |
40 |
41 | need('page-footer.php'); ?> 42 |
43 |
44 | 45 | 46 | 47 | 48 |
49 |

如果我的文章对你有帮助,或许可以打赏一下呀!

50 |
51 |
52 | 支付宝 53 |
54 | options->alipayUrl): ?> 55 | 56 | 57 |
58 |
59 |
60 | 微信 61 |
62 | options->weixinUrl): ?> 63 | 64 | 65 |
66 |
67 |
68 | QQ 69 |
70 | options->qqUrl): ?> 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |
79 | 80 | need('footer.php'); ?> 81 | 82 | -------------------------------------------------------------------------------- /js/main.js: -------------------------------------------------------------------------------- 1 | function otherFunction(){ 2 | // 返回顶部按钮 3 | function backTop() { 4 | var GTop = $(document).scrollTop(); 5 | if (GTop > 450) { 6 | $(".backtop-btn").css("display", "block"); 7 | } else { 8 | $(".backtop-btn").css("display", "none"); 9 | } 10 | setTimeout(backTop) 11 | } 12 | backTop(); 13 | $(".backtop-btn").click(function() { 14 | $("html,body").animate({ 15 | scrollTop: 0 16 | }, 17 | 400) 18 | }); 19 | 20 | // 导航栏按钮 21 | $(".navbar-btn").click(function() { 22 | $(this).toggleClass("navbar-btn-open"); 23 | $(".navbar-layout").toggleClass("navbar-layout-open"); 24 | $(".body-layout").toggleClass("body-layout-open"); 25 | $(".mask").fadeToggle(600); 26 | $(".navbar-btn .navbar-btn-line1").toggleClass("navbar-btn-rotate-left"); 27 | $(".navbar-btn .navbar-btn-line2").fadeToggle(100); 28 | $(".navbar-btn .navbar-btn-line3").toggleClass("navbar-btn-rotate-right"); 29 | }); 30 | 31 | // 页面遮罩层 32 | $(".mask").click(function() { 33 | $(".navbar-layout").removeClass("navbar-layout-open"); 34 | $(".body-layout").removeClass("body-layout-open"); 35 | $(".navbar-btn").removeClass("navbar-btn-open"); 36 | $(".mask").fadeOut(400); 37 | // 以下3个是导航栏按钮 38 | $(".navbar-btn .navbar-btn-line1").removeClass("navbar-btn-rotate-left"); 39 | $(".navbar-btn .navbar-btn-line2").fadeIn(100); 40 | $(".navbar-btn .navbar-btn-line3").removeClass("navbar-btn-rotate-right") 41 | }); 42 | 43 | // 首页文章摘要遍历 44 | $(".index-post-layout:odd").addClass('index-post-layout-odd'); 45 | 46 | // 首页文章摘要动画 47 | $(".index-post-layout").each(function (i){ 48 | var classEach = i; 49 | $(".index-post-layout").eq(0).addClass("animated animation-down"); 50 | $(window).scroll(function () { 51 | var index_postTOP = $(".index-post-layout").eq(classEach).offset().top; 52 | if (index_postTOP >= $(window).scrollTop() && index_postTOP < ($(window).scrollTop()+$(window).height())) { 53 | $(".index-post-layout").eq(classEach).addClass("animated animation-down"); 54 | } 55 | }); 56 | }); 57 | 58 | // 文章页打赏 59 | var post_page_donate = $(".post-donate-btn").css("bottom"); 60 | $(".post-donate-btn").click(function(){ 61 | $(".post-donate").toggleClass("post-donate-open"); 62 | $(".mask2").fadeToggle(600); 63 | }) 64 | 65 | $(".mask2").click(function() { 66 | $(".mask2").fadeOut(600); 67 | $(".post-donate").removeClass("post-donate-open"); 68 | }); 69 | 70 | // 文章页打赏盒子居中 71 | var Pwidth = $(window).width(); 72 | var donate_btnW = (Pwidth - 80) / 2; 73 | var donateW = (Pwidth - 890) / 2; 74 | $(".post-donate-btn").css("left",donate_btnW); 75 | $(".post-donate-box").css("left",donateW); 76 | 77 | // 图像查看器插件 78 | $(".post-main-section img").each(function(){ 79 | var imgSrc = $(this).attr('src'); 80 | $(this).wrap(""); 81 | $(this).parent().attr('href',imgSrc); 82 | }) 83 | 84 | // 其他 85 | $(".post-main-section a").attr("target", "_blank"); 86 | $(".post-main-section a").addClass("down-a"); 87 | $(".page-footer a").addClass("down-a"); 88 | $(".links-page-section a").attr("target", "_blank"); 89 | } -------------------------------------------------------------------------------- /css/waves.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Waves v0.7.5 3 | * http://fian.my.id/Waves 4 | * 5 | * Copyright 2014-2016 Alfiana E. Sibuea and other contributors 6 | * Released under the MIT license 7 | * https://github.com/fians/Waves/blob/master/LICENSE 8 | */.waves-effect{position:relative;cursor: url(../images/pointer.cur),pointer;display:inline-block;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.waves-effect .waves-ripple{position:absolute;border-radius:50%;width:100px;height:100px;margin-top:-50px;margin-left:-50px;opacity:0;background:rgba(0,0,0,.2);background:-webkit-radial-gradient(rgba(0,0,0,.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%);background:-o-radial-gradient(rgba(0,0,0,.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%);background:-moz-radial-gradient(rgba(0,0,0,.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%);background:radial-gradient(rgba(0,0,0,.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%);-webkit-transition:all .5s ease-out;-moz-transition:all .5s ease-out;-o-transition:all .5s ease-out;transition:all .5s ease-out;-webkit-transition-property:-webkit-transform,opacity;-moz-transition-property:-moz-transform,opacity;-o-transition-property:-o-transform,opacity;transition-property:transform,opacity;-webkit-transform:scale(0) translate(0,0);-moz-transform:scale(0) translate(0,0);-ms-transform:scale(0) translate(0,0);-o-transform:scale(0) translate(0,0);transform:scale(0) translate(0,0);pointer-events:none}.waves-effect.waves-light .waves-ripple{background:rgba(255,255,255,.4);background:-webkit-radial-gradient(rgba(255,255,255,.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%);background:-o-radial-gradient(rgba(255,255,255,.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%);background:-moz-radial-gradient(rgba(255,255,255,.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%);background:radial-gradient(rgba(255,255,255,.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%)}.waves-effect.waves-classic .waves-ripple{background:rgba(0,0,0,.2)}.waves-effect.waves-classic.waves-light .waves-ripple{background:rgba(255,255,255,.4)}.waves-notransition{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;transition:none!important}.waves-button,.waves-circle{-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(circle,#fff 100%,#000 100%)}.waves-button,.waves-button:hover,.waves-button:visited,.waves-button-input{white-space:nowrap;vertical-align:middle;cursor: url(../images/pointer.cur),pointer;border:none;outline:0;color:inherit;background-color:transparent;font-size:1em;line-height:1em;text-align:center;text-decoration:none;z-index:1}.waves-button{padding:.85em 1.1em;border-radius:.2em}.waves-button-input{margin:0;padding:.85em 1.1em}.waves-input-wrapper{border-radius:.2em;vertical-align:bottom}.waves-input-wrapper.waves-button{padding:0}.waves-input-wrapper .waves-button-input{position:relative;top:0;left:0;z-index:1}.waves-circle{text-align:center;width:2.5em;height:2.5em;line-height:2.5em;border-radius:50%}.waves-float{-webkit-mask-image:none;-webkit-box-shadow:0 1px 1.5px 1px rgba(0,0,0,.12);box-shadow:0 1px 1.5px 1px rgba(0,0,0,.12);-webkit-transition:all 300ms;-moz-transition:all 300ms;-o-transition:all 300ms;transition:all 300ms}.waves-float:active{-webkit-box-shadow:0 8px 20px 1px rgba(0,0,0,.3);box-shadow:0 8px 20px 1px rgba(0,0,0,.3)}.waves-block{display:block} 9 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | authorId) { 6 | if ($comments->authorId == $comments->ownerId) { 7 | $commentClass .= ' comment-by-author'; 8 | } else { 9 | $commentClass .= ' comment-by-user'; 10 | } 11 | } 12 | $commentLevelClass = $comments->levels > 0 ? ' comment-child' : ' comment-parent'; 13 | ?> 14 | 15 |
  • 25 |
    26 |
    27 | gravatar('48', ''); ?> 28 |
    29 |
    30 |
    31 |
    32 | author(); ?> 33 | 34 |
    35 |
    36 | content(); ?> 37 |  reply("Reply"); ?> 38 |
    39 |
    40 |
    41 |
    42 |
    43 | 44 | children) { ?> 45 |
    46 | threadedComments($options); ?> 47 |
    48 | 49 |
  • 50 | 51 | 52 |
    53 |
    54 |
    55 | comments()->to($comments); ?> 56 | have()): ?> 57 |

    commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?>

    58 |
    59 | 60 | listComments(); ?> 61 | 62 | pageNav('«', '»'); ?> 63 | 64 | 65 | 66 | 67 | allow('comment')): ?> 68 |
    69 |
    70 | cancelReply(); ?> 71 |
    72 | 73 |
    74 | user->hasLogin()): ?> 75 |

    user->screenName(); ?>. »

    76 | 77 |
    78 | 79 | 80 | 81 |
    82 | 83 |
    84 | 85 |
    86 |
    87 | 88 |
    89 |
    90 |
    91 | 92 |

    93 | 94 |
    95 | 96 | 116 | -------------------------------------------------------------------------------- /css/adapt.css: -------------------------------------------------------------------------------- 1 | @media screen and (max-width:1000px) { 2 | /* 主页面 */ 3 | .index-header{ 4 | height: 420px; 5 | } 6 | .index-post-abstract{ 7 | width: 90%; 8 | } 9 | /* 文章页 */ 10 | .post-main{ 11 | width: 90%; 12 | margin: 0 auto; 13 | } 14 | .pagination{ 15 | width: 90%; 16 | } 17 | } 18 | @media screen and (max-width:1000px) { 19 | /* 友情链接页面 */ 20 | .links-page{ 21 | text-align: center; 22 | } 23 | .links-page-section .links-btn, 24 | .links-page-section .links2-btn{ 25 | display: inline-block; 26 | margin: 14.8px; 27 | text-align: center; 28 | float: none; 29 | } 30 | .links-page-section .links-btn>img{ 31 | width: 100%; 32 | height: auto; 33 | } 34 | .post-readmore{ 35 | display: none; 36 | } 37 | .post-readmore-min{ 38 | display: block; 39 | } 40 | .comments-info-box>input{ 41 | width: 322px; 42 | display: block; 43 | margin-bottom: 10px; 44 | } 45 | .comments-text>textarea{ 46 | width: 500px; 47 | } 48 | } 49 | @media screen and (max-width:768px) { 50 | /* 主页面 */ 51 | .index-header{ 52 | height: 320px; 53 | } 54 | .index-header-wave{ 55 | display: none; 56 | } 57 | .index-post-abstract{ 58 | width: 90%; 59 | } 60 | /* 文章页 */ 61 | .post-donate{ 62 | display: none; 63 | } 64 | .post-body-layout{ 65 | background: none; 66 | } 67 | .post-readmore{ 68 | display: block; 69 | width: 100%; 70 | border-top: 1px solid #eee; 71 | } 72 | .post-readmore .post-readmore-left, 73 | .post-readmore .post-readmore-right{ 74 | display: block; 75 | padding: 15px 0 0 0; 76 | width: 100%; 77 | vertical-align: top; 78 | /*overflow: hidden;*/ 79 | white-space: nowrap; 80 | } 81 | .post-readmore .post-readmore-right{ 82 | text-align: left; 83 | } 84 | .post-readmore-icon{ 85 | display: none; 86 | } 87 | .post-readmore-text{ 88 | display: inline; 89 | } 90 | .comments-info-box>input{ 91 | width: 322px; 92 | display: block; 93 | margin-bottom: 10px; 94 | } 95 | .comments-text>textarea{ 96 | width: 500px; 97 | } 98 | /* 友情链接页面 */ 99 | .links-page-section .links-btn, 100 | .links-page-section .links2-btn{ 101 | width: 90%; 102 | } 103 | /*Typecho归档页*/ 104 | .archive-categories>ul{ 105 | margin: 0; 106 | padding: 0; 107 | padding-top: 0; 108 | padding-left: 0; 109 | border-left: none; 110 | clear: both; 111 | width: 100%; 112 | } 113 | .archive-categories h3{ 114 | font-weight: 200; 115 | font-size: 15pt; 116 | padding: 10px 0; 117 | padding-right: 10px; 118 | color: #777; 119 | clear: both; 120 | width: 100%; 121 | text-align: left; 122 | } 123 | .archive-categories>ul>li{ 124 | position: relative; 125 | line-height: 38px; 126 | font-size: 11.5pt; 127 | color: #555; 128 | text-align: justify; 129 | } 130 | .archive-categories>ul>li>a{ 131 | font-size: 11.5pt; 132 | color: #555; 133 | text-align: justify; 134 | } 135 | .archive-categories>ul>li:before{ 136 | content: " "; 137 | width: 0; 138 | height: 0; 139 | border: none; 140 | background: none; 141 | border-radius: 0; 142 | position: absolute; 143 | top: 0; 144 | left: 0; 145 | } 146 | } 147 | @media screen and (max-width:571px) { 148 | .comments-info-box>input{ 149 | width: 322px; 150 | display: block; 151 | margin-bottom: 10px; 152 | } 153 | .comments-text>textarea{ 154 | width: 322px; 155 | } 156 | } 157 | @media screen and (max-width:416px) { 158 | .index-header-wave{ 159 | display: none; 160 | } 161 | } 162 | @media screen and (max-width:380px) { 163 | /* 导航栏 */ 164 | .navbar-layout .navbar-header{ 165 | padding: 10px 0; 166 | } 167 | .navbar-layout .navbar-date{ 168 | padding: 10px 0; 169 | } 170 | .navbar-links>ul>li>a{ 171 | font-size: 16px; 172 | padding: 12px 0; 173 | } 174 | /* 主页面 */ 175 | .index-header{ 176 | height: 240px; 177 | } 178 | .index-post-abstract{ 179 | width: 90%; 180 | } 181 | .index-post-layout{ 182 | padding: 30px 0; 183 | } 184 | .index-post-abstract>header{ 185 | text-align: center; 186 | margin-bottom: 35px; 187 | } 188 | .index-post-abstract>header>h2{ 189 | margin-bottom: 15px; 190 | } 191 | .index-post-abstract>header>h2>a, 192 | .index-post-abstract>header>h2>a:link{ 193 | font-size: 25px; 194 | } 195 | .index-post-abstract>header>time{ 196 | font-size: 8pt; 197 | } 198 | .index-post-abstract>section{ 199 | font-size: 11pt; 200 | } 201 | .index-post-abstract>section h1{ 202 | font-size: 23pt; 203 | font-weight: 200; 204 | } 205 | .index-post-abstract>section h2{ 206 | font-size: 20pt; 207 | font-weight: 200; 208 | } 209 | .index-post-abstract>section h3{ 210 | font-size: 18pt; 211 | font-weight: 200; 212 | } 213 | .index-post-abstract>section h4{ 214 | font-size: 16pt; 215 | font-weight: 200; 216 | } 217 | .index-post-abstract>section h5{ 218 | font-size: 14pt; 219 | font-weight: 200; 220 | } 221 | .index-post-abstract>section h6{ 222 | font-size: 13pt; 223 | font-weight: 200; 224 | } 225 | /* 文章页 */ 226 | .post-main { 227 | width: 90%; 228 | margin: 0 auto; 229 | } 230 | .post-header{ 231 | padding: 60px 0; 232 | } 233 | .post-header>h2{ 234 | font-size: 30px; 235 | } 236 | .comments-info-box>input{ 237 | width: 322px; 238 | display: block; 239 | margin-bottom: 10px; 240 | } 241 | .comments-text>textarea{ 242 | width: 322px; 243 | } 244 | } -------------------------------------------------------------------------------- /js/waves.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Waves v0.7.5 3 | * http://fian.my.id/Waves 4 | * 5 | * Copyright 2014-2016 Alfiana E. Sibuea and other contributors 6 | * Released under the MIT license 7 | * https://github.com/fians/Waves/blob/master/LICENSE 8 | */ 9 | !function(a,b){"use strict";"function"==typeof define&&define.amd?define([],function(){return b.apply(a)}):"object"==typeof exports?module.exports=b.call(a):a.Waves=b.call(a)}("object"==typeof global?global:this,function(){"use strict";function a(a){return null!==a&&a===a.window}function b(b){return a(b)?b:9===b.nodeType&&b.defaultView}function c(a){var b=typeof a;return"function"===b||"object"===b&&!!a}function d(a){return c(a)&&a.nodeType>0}function e(a){var b=m.call(a);return"[object String]"===b?l(a):c(a)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(b)&&a.hasOwnProperty("length")?a:d(a)?[a]:[]}function f(a){var c,d,e={top:0,left:0},f=a&&a.ownerDocument;return c=f.documentElement,"undefined"!=typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect()),d=b(f),{top:e.top+d.pageYOffset-c.clientTop,left:e.left+d.pageXOffset-c.clientLeft}}function g(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b+=c+":"+a[c]+";");return b}function h(a,b,c){if(c){c.classList.remove("waves-rippling");var d=c.getAttribute("data-x"),e=c.getAttribute("data-y"),f=c.getAttribute("data-scale"),h=c.getAttribute("data-translate"),i=Date.now()-Number(c.getAttribute("data-hold")),j=350-i;0>j&&(j=0),"mousemove"===a.type&&(j=150);var k="mousemove"===a.type?2500:o.duration;setTimeout(function(){var a={top:e+"px",left:d+"px",opacity:"0","-webkit-transition-duration":k+"ms","-moz-transition-duration":k+"ms","-o-transition-duration":k+"ms","transition-duration":k+"ms","-webkit-transform":f+" "+h,"-moz-transform":f+" "+h,"-ms-transform":f+" "+h,"-o-transform":f+" "+h,transform:f+" "+h};c.setAttribute("style",g(a)),setTimeout(function(){try{b.removeChild(c)}catch(a){return!1}},k)},j)}}function i(a){if(q.allowEvent(a)===!1)return null;for(var b=null,c=a.target||a.srcElement;c.parentElement;){if(!(c instanceof SVGElement)&&c.classList.contains("waves-effect")){b=c;break}c=c.parentElement}return b}function j(a){var b=i(a);if(null!==b){if(b.disabled||b.getAttribute("disabled")||b.classList.contains("disabled"))return;if(q.registerEvent(a),"touchstart"===a.type&&o.delay){var c=!1,d=setTimeout(function(){d=null,o.show(a,b)},o.delay),e=function(e){d&&(clearTimeout(d),d=null,o.show(a,b)),c||(c=!0,o.hide(e,b))},f=function(a){d&&(clearTimeout(d),d=null),e(a)};b.addEventListener("touchmove",f,!1),b.addEventListener("touchend",e,!1),b.addEventListener("touchcancel",e,!1)}else o.show(a,b),n&&(b.addEventListener("touchend",o.hide,!1),b.addEventListener("touchcancel",o.hide,!1)),b.addEventListener("mouseup",o.hide,!1),b.addEventListener("mouseleave",o.hide,!1)}}var k=k||{},l=document.querySelectorAll.bind(document),m=Object.prototype.toString,n="ontouchstart"in window,o={duration:750,delay:200,show:function(a,b,c){if(2===a.button)return!1;b=b||this;var d=document.createElement("div");d.className="waves-ripple waves-rippling",b.appendChild(d);var e=f(b),h=0,i=0;"touches"in a&&a.touches.length?(h=a.touches[0].pageY-e.top,i=a.touches[0].pageX-e.left):(h=a.pageY-e.top,i=a.pageX-e.left),i=i>=0?i:0,h=h>=0?h:0;var j="scale("+b.clientWidth/100*3+")",k="translate(0,0)";c&&(k="translate("+c.x+"px, "+c.y+"px)"),d.setAttribute("data-hold",Date.now()),d.setAttribute("data-x",i),d.setAttribute("data-y",h),d.setAttribute("data-scale",j),d.setAttribute("data-translate",k);var l={top:h+"px",left:i+"px"};d.classList.add("waves-notransition"),d.setAttribute("style",g(l)),d.classList.remove("waves-notransition"),l["-webkit-transform"]=j+" "+k,l["-moz-transform"]=j+" "+k,l["-ms-transform"]=j+" "+k,l["-o-transform"]=j+" "+k,l.transform=j+" "+k,l.opacity="1";var m="mousemove"===a.type?2500:o.duration;l["-webkit-transition-duration"]=m+"ms",l["-moz-transition-duration"]=m+"ms",l["-o-transition-duration"]=m+"ms",l["transition-duration"]=m+"ms",d.setAttribute("style",g(l))},hide:function(a,b){b=b||this;for(var c=b.getElementsByClassName("waves-rippling"),d=0,e=c.length;e>d;d++)h(a,b,c[d])}},p={input:function(a){var b=a.parentNode;if("i"!==b.tagName.toLowerCase()||!b.classList.contains("waves-effect")){var c=document.createElement("i");c.className=a.className+" waves-input-wrapper",a.className="waves-button-input",b.replaceChild(c,a),c.appendChild(a);var d=window.getComputedStyle(a,null),e=d.color,f=d.backgroundColor;c.setAttribute("style","color:"+e+";background:"+f),a.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(a){var b=a.parentNode;if("i"!==b.tagName.toLowerCase()||!b.classList.contains("waves-effect")){var c=document.createElement("i");b.replaceChild(c,a),c.appendChild(a)}}},q={touches:0,allowEvent:function(a){var b=!0;return/^(mousedown|mousemove)$/.test(a.type)&&q.touches&&(b=!1),b},registerEvent:function(a){var b=a.type;"touchstart"===b?q.touches+=1:/^(touchend|touchcancel)$/.test(b)&&setTimeout(function(){q.touches&&(q.touches-=1)},500)}};return k.init=function(a){var b=document.body;a=a||{},"duration"in a&&(o.duration=a.duration),"delay"in a&&(o.delay=a.delay),n&&(b.addEventListener("touchstart",j,!1),b.addEventListener("touchcancel",q.registerEvent,!1),b.addEventListener("touchend",q.registerEvent,!1)),b.addEventListener("mousedown",j,!1)},k.attach=function(a,b){a=e(a),"[object Array]"===m.call(b)&&(b=b.join(" ")),b=b?" "+b:"";for(var c,d,f=0,g=a.length;g>f;f++)c=a[f],d=c.tagName.toLowerCase(),-1!==["input","img"].indexOf(d)&&(p[d](c),c=c.parentElement),-1===c.className.indexOf("waves-effect")&&(c.className+=" waves-effect"+b)},k.ripple=function(a,b){a=e(a);var c=a.length;if(b=b||{},b.wait=b.wait||0,b.position=b.position||null,c)for(var d,g,h,i={},j=0,k={type:"mousedown",button:1},l=function(a,b){return function(){o.hide(a,b)}};c>j;j++)if(d=a[j],g=b.position||{x:d.clientWidth/2,y:d.clientHeight/2},h=f(d),i.x=h.left+g.x,i.y=h.top+g.y,k.pageX=i.x,k.pageY=i.y,o.show(k,d),b.wait>=0&&null!==b.wait){var m={type:"mouseup",button:1};setTimeout(l(m,d),b.wait)}},k.calm=function(a){a=e(a);for(var b={type:"mouseup",button:1},c=0,d=a.length;d>c;c++)o.hide(b,a[c])},k.displayEffect=function(a){k.init(a)},k}); 10 | //# sourceMappingURL=waves.min.js.map -------------------------------------------------------------------------------- /css/jquery.fancybox.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | .fancybox-enabled { 3 | overflow: hidden; } 4 | 5 | .fancybox-enabled body { 6 | overflow: visible; 7 | height: 100%; } 8 | 9 | .fancybox-is-hidden { 10 | position: absolute; 11 | top: -9999px; 12 | left: -9999px; 13 | visibility: hidden; } 14 | 15 | .fancybox-container { 16 | position: fixed; 17 | top: 0; 18 | left: 0; 19 | width: 100%; 20 | height: 100%; 21 | z-index: 99993; 22 | -webkit-tap-highlight-color: transparent; 23 | -webkit-backface-visibility: hidden; 24 | backface-visibility: hidden; 25 | -webkit-transform: translateZ(0); 26 | transform: translateZ(0); } 27 | 28 | /* Make sure that the first one is on the top */ 29 | .fancybox-container ~ .fancybox-container { 30 | z-index: 99992; } 31 | 32 | .fancybox-outer, 33 | .fancybox-inner, 34 | .fancybox-bg, 35 | .fancybox-stage { 36 | position: absolute; 37 | top: 0; 38 | right: 0; 39 | bottom: 0; 40 | left: 0; } 41 | 42 | .fancybox-outer { 43 | overflow-y: auto; 44 | -webkit-overflow-scrolling: touch; } 45 | 46 | .fancybox-bg { 47 | background: #1e1e1e; 48 | opacity: 0; 49 | transition-duration: inherit; 50 | transition-property: opacity; 51 | transition-timing-function: cubic-bezier(0.47, 0, 0.74, 0.71); } 52 | 53 | .fancybox-is-open .fancybox-bg { 54 | opacity: 0.87; 55 | transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); } 56 | 57 | .fancybox-infobar, 58 | .fancybox-toolbar, 59 | .fancybox-caption-wrap { 60 | position: absolute; 61 | direction: ltr; 62 | z-index: 99997; 63 | opacity: 0; 64 | visibility: hidden; 65 | transition: opacity .25s, visibility 0s linear .25s; 66 | box-sizing: border-box; } 67 | 68 | .fancybox-show-infobar .fancybox-infobar, 69 | .fancybox-show-toolbar .fancybox-toolbar, 70 | .fancybox-show-caption .fancybox-caption-wrap { 71 | opacity: 1; 72 | visibility: visible; 73 | transition: opacity .25s, visibility 0s; } 74 | 75 | .fancybox-infobar { 76 | top: 0; 77 | left: 50%; 78 | margin-left: -79px; } 79 | 80 | .fancybox-infobar__body { 81 | display: inline-block; 82 | width: 70px; 83 | line-height: 44px; 84 | font-size: 13px; 85 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 86 | text-align: center; 87 | color: #ddd; 88 | background-color: rgba(30, 30, 30, 0.7); 89 | pointer-events: none; 90 | -webkit-user-select: none; 91 | -moz-user-select: none; 92 | -ms-user-select: none; 93 | user-select: none; 94 | -webkit-touch-callout: none; 95 | -webkit-tap-highlight-color: transparent; 96 | -webkit-font-smoothing: subpixel-antialiased; } 97 | 98 | .fancybox-toolbar { 99 | top: 0; 100 | right: 0; } 101 | 102 | .fancybox-stage { 103 | overflow: hidden; 104 | direction: ltr; 105 | z-index: 99994; 106 | -webkit-transform: translate3d(0, 0, 0); } 107 | 108 | .fancybox-slide { 109 | position: absolute; 110 | top: 0; 111 | left: 0; 112 | width: 100%; 113 | height: 100%; 114 | margin: 0; 115 | padding: 0; 116 | overflow: auto; 117 | outline: none; 118 | white-space: normal; 119 | box-sizing: border-box; 120 | text-align: center; 121 | z-index: 99994; 122 | -webkit-overflow-scrolling: touch; 123 | display: none; 124 | -webkit-backface-visibility: hidden; 125 | backface-visibility: hidden; 126 | transition-property: opacity, -webkit-transform; 127 | transition-property: transform, opacity; 128 | transition-property: transform, opacity, -webkit-transform; 129 | -webkit-transform-style: preserve-3d; 130 | transform-style: preserve-3d; } 131 | 132 | .fancybox-slide::before { 133 | content: ''; 134 | display: inline-block; 135 | vertical-align: middle; 136 | height: 100%; 137 | width: 0; } 138 | 139 | .fancybox-is-sliding .fancybox-slide, 140 | .fancybox-slide--previous, 141 | .fancybox-slide--current, 142 | .fancybox-slide--next { 143 | display: block; } 144 | 145 | .fancybox-slide--image { 146 | overflow: visible; } 147 | 148 | .fancybox-slide--image::before { 149 | display: none; } 150 | 151 | .fancybox-slide--video .fancybox-content, 152 | .fancybox-slide--video iframe { 153 | background: #000; } 154 | 155 | .fancybox-slide--map .fancybox-content, 156 | .fancybox-slide--map iframe { 157 | background: #E5E3DF; } 158 | 159 | .fancybox-slide--next { 160 | z-index: 99995; } 161 | 162 | .fancybox-slide > * { 163 | display: inline-block; 164 | position: relative; 165 | padding: 24px; 166 | margin: 44px 0 44px; 167 | border-width: 0; 168 | vertical-align: middle; 169 | text-align: left; 170 | background-color: #fff; 171 | overflow: auto; 172 | box-sizing: border-box; } 173 | 174 | .fancybox-slide .fancybox-image-wrap { 175 | position: absolute; 176 | top: 0; 177 | left: 0; 178 | margin: 0; 179 | padding: 0; 180 | border: 0; 181 | z-index: 99995; 182 | background: transparent; 183 | cursor: default; 184 | overflow: visible; 185 | -webkit-transform-origin: top left; 186 | -ms-transform-origin: top left; 187 | transform-origin: top left; 188 | background-size: 100% 100%; 189 | background-repeat: no-repeat; 190 | -webkit-backface-visibility: hidden; 191 | backface-visibility: hidden; } 192 | 193 | .fancybox-can-zoomOut .fancybox-image-wrap { 194 | cursor: -webkit-zoom-out; 195 | cursor: zoom-out; } 196 | 197 | .fancybox-can-zoomIn .fancybox-image-wrap { 198 | cursor: -webkit-zoom-in; 199 | cursor: zoom-in; } 200 | 201 | .fancybox-can-drag .fancybox-image-wrap { 202 | cursor: -webkit-grab; 203 | cursor: grab; } 204 | 205 | .fancybox-is-dragging .fancybox-image-wrap { 206 | cursor: -webkit-grabbing; 207 | cursor: grabbing; } 208 | 209 | .fancybox-image, 210 | .fancybox-spaceball { 211 | position: absolute; 212 | top: 0; 213 | left: 0; 214 | width: 100%; 215 | height: 100%; 216 | margin: 0; 217 | padding: 0; 218 | border: 0; 219 | max-width: none; 220 | max-height: none; } 221 | 222 | .fancybox-spaceball { 223 | z-index: 1; } 224 | 225 | .fancybox-slide--iframe .fancybox-content { 226 | padding: 0; 227 | width: 80%; 228 | height: 80%; 229 | max-width: calc(100% - 100px); 230 | max-height: calc(100% - 88px); 231 | overflow: visible; 232 | background: #fff; } 233 | 234 | .fancybox-iframe { 235 | display: block; 236 | margin: 0; 237 | padding: 0; 238 | border: 0; 239 | width: 100%; 240 | height: 100%; 241 | background: #fff; } 242 | 243 | .fancybox-error { 244 | margin: 0; 245 | padding: 40px; 246 | width: 100%; 247 | max-width: 380px; 248 | background: #fff; 249 | cursor: default; } 250 | 251 | .fancybox-error p { 252 | margin: 0; 253 | padding: 0; 254 | color: #444; 255 | font: 16px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; } 256 | 257 | .fancybox-close-small { 258 | position: absolute; 259 | top: 0; 260 | right: 0; 261 | width: 44px; 262 | height: 44px; 263 | padding: 0; 264 | margin: 0; 265 | border: 0; 266 | border-radius: 0; 267 | outline: none; 268 | background: transparent; 269 | z-index: 10; 270 | cursor: pointer; } 271 | 272 | .fancybox-close-small:after { 273 | content: '×'; 274 | position: absolute; 275 | top: 5px; 276 | right: 5px; 277 | width: 30px; 278 | height: 30px; 279 | font: 20px/30px Arial,"Helvetica Neue",Helvetica,sans-serif; 280 | color: #888; 281 | font-weight: 300; 282 | text-align: center; 283 | border-radius: 50%; 284 | border-width: 0; 285 | background: #fff; 286 | transition: background .25s; 287 | box-sizing: border-box; 288 | z-index: 2; } 289 | 290 | .fancybox-close-small:focus:after { 291 | outline: 1px dotted #888; } 292 | 293 | .fancybox-close-small:hover:after { 294 | color: #555; 295 | background: #eee; } 296 | 297 | .fancybox-slide--iframe .fancybox-close-small { 298 | top: 0; 299 | right: -44px; } 300 | 301 | .fancybox-slide--iframe .fancybox-close-small:after { 302 | background: transparent; 303 | font-size: 35px; 304 | color: #aaa; } 305 | 306 | .fancybox-slide--iframe .fancybox-close-small:hover:after { 307 | color: #fff; } 308 | 309 | /* Caption */ 310 | .fancybox-caption-wrap { 311 | bottom: 0; 312 | left: 0; 313 | right: 0; 314 | padding: 60px 30px 0 30px; 315 | background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.8) 100%); 316 | pointer-events: none; } 317 | 318 | .fancybox-caption { 319 | padding: 30px 0; 320 | border-top: 1px solid rgba(255, 255, 255, 0.4); 321 | font-size: 14px; 322 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 323 | color: #fff; 324 | line-height: 20px; 325 | -webkit-text-size-adjust: none; } 326 | 327 | .fancybox-caption a, 328 | .fancybox-caption button, 329 | .fancybox-caption select { 330 | pointer-events: all; } 331 | 332 | .fancybox-caption a { 333 | color: #fff; 334 | text-decoration: underline; } 335 | 336 | /* Buttons */ 337 | .fancybox-button { 338 | display: inline-block; 339 | position: relative; 340 | margin: 0; 341 | padding: 0; 342 | border: 0; 343 | width: 44px; 344 | height: 44px; 345 | line-height: 44px; 346 | text-align: center; 347 | background: transparent; 348 | color: #ddd; 349 | border-radius: 0; 350 | cursor: pointer; 351 | vertical-align: top; 352 | outline: none; } 353 | 354 | .fancybox-button[disabled] { 355 | cursor: default; 356 | pointer-events: none; } 357 | 358 | .fancybox-infobar__body, .fancybox-button { 359 | background: rgba(30, 30, 30, 0.6); } 360 | 361 | .fancybox-button:hover:not([disabled]) { 362 | color: #fff; 363 | background: rgba(0, 0, 0, 0.8); } 364 | 365 | .fancybox-button::before, 366 | .fancybox-button::after { 367 | content: ''; 368 | pointer-events: none; 369 | position: absolute; 370 | background-color: currentColor; 371 | color: currentColor; 372 | opacity: 0.9; 373 | box-sizing: border-box; 374 | display: inline-block; } 375 | 376 | .fancybox-button[disabled]::before, 377 | .fancybox-button[disabled]::after { 378 | opacity: 0.3; } 379 | 380 | .fancybox-button--left::after, 381 | .fancybox-button--right::after { 382 | top: 18px; 383 | width: 6px; 384 | height: 6px; 385 | background: transparent; 386 | border-top: solid 2px currentColor; 387 | border-right: solid 2px currentColor; } 388 | 389 | .fancybox-button--left::after { 390 | left: 20px; 391 | -webkit-transform: rotate(-135deg); 392 | -ms-transform: rotate(-135deg); 393 | transform: rotate(-135deg); } 394 | 395 | .fancybox-button--right::after { 396 | right: 20px; 397 | -webkit-transform: rotate(45deg); 398 | -ms-transform: rotate(45deg); 399 | transform: rotate(45deg); } 400 | 401 | .fancybox-button--left { 402 | border-bottom-left-radius: 5px; } 403 | 404 | .fancybox-button--right { 405 | border-bottom-right-radius: 5px; } 406 | 407 | .fancybox-button--close::before, .fancybox-button--close::after { 408 | content: ''; 409 | display: inline-block; 410 | position: absolute; 411 | height: 2px; 412 | width: 16px; 413 | top: calc(50% - 1px); 414 | left: calc(50% - 8px); } 415 | 416 | .fancybox-button--close::before { 417 | -webkit-transform: rotate(45deg); 418 | -ms-transform: rotate(45deg); 419 | transform: rotate(45deg); } 420 | 421 | .fancybox-button--close::after { 422 | -webkit-transform: rotate(-45deg); 423 | -ms-transform: rotate(-45deg); 424 | transform: rotate(-45deg); } 425 | 426 | /* Navigation arrows */ 427 | .fancybox-arrow { 428 | position: absolute; 429 | top: 50%; 430 | margin: -50px 0 0 0; 431 | height: 100px; 432 | width: 54px; 433 | padding: 0; 434 | border: 0; 435 | outline: none; 436 | background: none; 437 | cursor: pointer; 438 | z-index: 99995; 439 | opacity: 0; 440 | -webkit-user-select: none; 441 | -moz-user-select: none; 442 | -ms-user-select: none; 443 | user-select: none; 444 | transition: opacity .25s; } 445 | 446 | .fancybox-arrow::after { 447 | content: ''; 448 | position: absolute; 449 | top: 28px; 450 | width: 44px; 451 | height: 44px; 452 | background-color: rgba(30, 30, 30, 0.8); 453 | background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSI0OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgNGwtMS40MSAxLjQxTDE2LjE3IDExSDR2MmgxMi4xN2wtNS41OCA1LjU5TDEyIDIwbDgtOHoiLz48L3N2Zz4=); 454 | background-repeat: no-repeat; 455 | background-position: center center; 456 | background-size: 24px 24px; } 457 | 458 | .fancybox-arrow--right { 459 | right: 0; } 460 | 461 | .fancybox-arrow--left { 462 | left: 0; 463 | -webkit-transform: scaleX(-1); 464 | -ms-transform: scaleX(-1); 465 | transform: scaleX(-1); } 466 | 467 | .fancybox-arrow--right::after, 468 | .fancybox-arrow--left::after { 469 | left: 0; } 470 | 471 | .fancybox-show-nav .fancybox-arrow { 472 | opacity: 0.6; } 473 | 474 | .fancybox-show-nav .fancybox-arrow[disabled] { 475 | opacity: 0.3; } 476 | 477 | /* Loading indicator */ 478 | .fancybox-loading { 479 | border: 6px solid rgba(100, 100, 100, 0.4); 480 | border-top: 6px solid rgba(255, 255, 255, 0.6); 481 | border-radius: 100%; 482 | height: 50px; 483 | width: 50px; 484 | -webkit-animation: fancybox-rotate .8s infinite linear; 485 | animation: fancybox-rotate .8s infinite linear; 486 | background: transparent; 487 | position: absolute; 488 | top: 50%; 489 | left: 50%; 490 | margin-top: -25px; 491 | margin-left: -25px; 492 | z-index: 99999; } 493 | 494 | @-webkit-keyframes fancybox-rotate { 495 | from { 496 | -webkit-transform: rotate(0deg); 497 | transform: rotate(0deg); } 498 | to { 499 | -webkit-transform: rotate(359deg); 500 | transform: rotate(359deg); } } 501 | 502 | @keyframes fancybox-rotate { 503 | from { 504 | -webkit-transform: rotate(0deg); 505 | transform: rotate(0deg); } 506 | to { 507 | -webkit-transform: rotate(359deg); 508 | transform: rotate(359deg); } } 509 | 510 | /* Transition effects */ 511 | .fancybox-animated { 512 | transition-timing-function: cubic-bezier(0, 0, 0.25, 1); } 513 | 514 | /* transitionEffect: slide */ 515 | .fancybox-fx-slide.fancybox-slide--previous { 516 | -webkit-transform: translate3d(-100%, 0, 0); 517 | transform: translate3d(-100%, 0, 0); 518 | opacity: 0; } 519 | 520 | .fancybox-fx-slide.fancybox-slide--next { 521 | -webkit-transform: translate3d(100%, 0, 0); 522 | transform: translate3d(100%, 0, 0); 523 | opacity: 0; } 524 | 525 | .fancybox-fx-slide.fancybox-slide--current { 526 | -webkit-transform: translate3d(0, 0, 0); 527 | transform: translate3d(0, 0, 0); 528 | opacity: 1; } 529 | 530 | /* transitionEffect: fade */ 531 | .fancybox-fx-fade.fancybox-slide--previous, 532 | .fancybox-fx-fade.fancybox-slide--next { 533 | opacity: 0; 534 | transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1); } 535 | 536 | .fancybox-fx-fade.fancybox-slide--current { 537 | opacity: 1; } 538 | 539 | /* transitionEffect: zoom-in-out */ 540 | .fancybox-fx-zoom-in-out.fancybox-slide--previous { 541 | -webkit-transform: scale3d(1.5, 1.5, 1.5); 542 | transform: scale3d(1.5, 1.5, 1.5); 543 | opacity: 0; } 544 | 545 | .fancybox-fx-zoom-in-out.fancybox-slide--next { 546 | -webkit-transform: scale3d(0.5, 0.5, 0.5); 547 | transform: scale3d(0.5, 0.5, 0.5); 548 | opacity: 0; } 549 | 550 | .fancybox-fx-zoom-in-out.fancybox-slide--current { 551 | -webkit-transform: scale3d(1, 1, 1); 552 | transform: scale3d(1, 1, 1); 553 | opacity: 1; } 554 | 555 | /* transitionEffect: rotate */ 556 | .fancybox-fx-rotate.fancybox-slide--previous { 557 | -webkit-transform: rotate(-360deg); 558 | -ms-transform: rotate(-360deg); 559 | transform: rotate(-360deg); 560 | opacity: 0; } 561 | 562 | .fancybox-fx-rotate.fancybox-slide--next { 563 | -webkit-transform: rotate(360deg); 564 | -ms-transform: rotate(360deg); 565 | transform: rotate(360deg); 566 | opacity: 0; } 567 | 568 | .fancybox-fx-rotate.fancybox-slide--current { 569 | -webkit-transform: rotate(0deg); 570 | -ms-transform: rotate(0deg); 571 | transform: rotate(0deg); 572 | opacity: 1; } 573 | 574 | /* transitionEffect: circular */ 575 | .fancybox-fx-circular.fancybox-slide--previous { 576 | -webkit-transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0); 577 | transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0); 578 | opacity: 0; } 579 | 580 | .fancybox-fx-circular.fancybox-slide--next { 581 | -webkit-transform: scale3d(0, 0, 0) translate3d(100%, 0, 0); 582 | transform: scale3d(0, 0, 0) translate3d(100%, 0, 0); 583 | opacity: 0; } 584 | 585 | .fancybox-fx-circular.fancybox-slide--current { 586 | -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0); 587 | transform: scale3d(1, 1, 1) translate3d(0, 0, 0); 588 | opacity: 1; } 589 | 590 | /* transitionEffect: tube */ 591 | .fancybox-fx-tube.fancybox-slide--previous { 592 | -webkit-transform: translate3d(-100%, 0, 0) scale(0.1) skew(-10deg); 593 | transform: translate3d(-100%, 0, 0) scale(0.1) skew(-10deg); } 594 | 595 | .fancybox-fx-tube.fancybox-slide--next { 596 | -webkit-transform: translate3d(100%, 0, 0) scale(0.1) skew(10deg); 597 | transform: translate3d(100%, 0, 0) scale(0.1) skew(10deg); } 598 | 599 | .fancybox-fx-tube.fancybox-slide--current { 600 | -webkit-transform: translate3d(0, 0, 0) scale(1); 601 | transform: translate3d(0, 0, 0) scale(1); } 602 | 603 | /* Styling for Small-Screen Devices */ 604 | @media all and (max-width: 800px) { 605 | .fancybox-infobar { 606 | left: 0; 607 | margin-left: 0; } 608 | .fancybox-button--left, 609 | .fancybox-button--right { 610 | display: none !important; } 611 | .fancybox-caption { 612 | padding: 20px 0; 613 | margin: 0; } } 614 | 615 | /* Fullscreen */ 616 | .fancybox-button--fullscreen::before { 617 | width: 15px; 618 | height: 11px; 619 | left: calc(50% - 7px); 620 | top: calc(50% - 6px); 621 | border: 2px solid; 622 | background: none; } 623 | 624 | /* Slideshow button */ 625 | .fancybox-button--play::before, 626 | .fancybox-button--pause::before { 627 | top: calc(50% - 6px); 628 | left: calc(50% - 4px); 629 | background: transparent; } 630 | 631 | .fancybox-button--play::before { 632 | width: 0; 633 | height: 0; 634 | border-top: 6px inset transparent; 635 | border-bottom: 6px inset transparent; 636 | border-left: 10px solid; 637 | border-radius: 1px; } 638 | 639 | .fancybox-button--pause::before { 640 | width: 7px; 641 | height: 11px; 642 | border-style: solid; 643 | border-width: 0 2px 0 2px; } 644 | 645 | /* Thumbs */ 646 | .fancybox-thumbs { 647 | display: none; } 648 | 649 | .fancybox-button--thumbs { 650 | display: none; } 651 | 652 | @media all and (min-width: 800px) { 653 | .fancybox-button--thumbs { 654 | display: inline-block; } 655 | .fancybox-button--thumbs span { 656 | font-size: 23px; } 657 | .fancybox-button--thumbs::before { 658 | width: 3px; 659 | height: 3px; 660 | top: calc(50% - 2px); 661 | left: calc(50% - 2px); 662 | box-shadow: 0 -4px 0, -4px -4px 0, 4px -4px 0, 0 0 0 32px inset, -4px 0 0, 4px 0 0, 0 4px 0, -4px 4px 0, 4px 4px 0; } 663 | .fancybox-thumbs { 664 | position: absolute; 665 | top: 0; 666 | right: 0; 667 | bottom: 0; 668 | left: auto; 669 | width: 220px; 670 | margin: 0; 671 | padding: 5px 5px 0 0; 672 | background: #fff; 673 | word-break: normal; 674 | -webkit-tap-highlight-color: transparent; 675 | -webkit-overflow-scrolling: touch; 676 | -ms-overflow-style: -ms-autohiding-scrollbar; 677 | box-sizing: border-box; 678 | z-index: 99995; } 679 | .fancybox-show-thumbs .fancybox-thumbs { 680 | display: block; } 681 | .fancybox-show-thumbs .fancybox-inner { 682 | right: 220px; } 683 | .fancybox-thumbs > ul { 684 | list-style: none; 685 | position: absolute; 686 | position: relative; 687 | width: 100%; 688 | height: 100%; 689 | margin: 0; 690 | padding: 0; 691 | overflow-x: hidden; 692 | overflow-y: auto; 693 | font-size: 0; } 694 | .fancybox-thumbs > ul > li { 695 | float: left; 696 | overflow: hidden; 697 | max-width: 50%; 698 | padding: 0; 699 | margin: 0; 700 | width: 105px; 701 | height: 75px; 702 | position: relative; 703 | cursor: pointer; 704 | outline: none; 705 | border: 5px solid transparent; 706 | border-top-width: 0; 707 | border-right-width: 0; 708 | -webkit-tap-highlight-color: transparent; 709 | -webkit-backface-visibility: hidden; 710 | backface-visibility: hidden; 711 | box-sizing: border-box; } 712 | li.fancybox-thumbs-loading { 713 | background: rgba(0, 0, 0, 0.1); } 714 | .fancybox-thumbs > ul > li > img { 715 | position: absolute; 716 | top: 0; 717 | left: 0; 718 | min-width: 100%; 719 | min-height: 100%; 720 | max-width: none; 721 | max-height: none; 722 | -webkit-touch-callout: none; 723 | -webkit-user-select: none; 724 | -moz-user-select: none; 725 | -ms-user-select: none; 726 | user-select: none; } 727 | .fancybox-thumbs > ul > li:before { 728 | content: ''; 729 | position: absolute; 730 | top: 0; 731 | right: 0; 732 | bottom: 0; 733 | left: 0; 734 | border-radius: 2px; 735 | border: 4px solid #4ea7f9; 736 | z-index: 99991; 737 | opacity: 0; 738 | transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); } 739 | .fancybox-thumbs > ul > li.fancybox-thumbs-active:before { 740 | opacity: 1; } } 741 | -------------------------------------------------------------------------------- /css/font-awesome.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} 5 | -------------------------------------------------------------------------------- /js/jquery.pjax.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright 2012, Chris Wanstrath 3 | * Released under the MIT License 4 | * https://github.com/defunkt/jquery-pjax 5 | */ 6 | 7 | (function($){ 8 | 9 | // When called on a container with a selector, fetches the href with 10 | // ajax into the container or with the data-pjax attribute on the link 11 | // itself. 12 | // 13 | // Tries to make sure the back button and ctrl+click work the way 14 | // you'd expect. 15 | // 16 | // Exported as $.fn.pjax 17 | // 18 | // Accepts a jQuery ajax options object that may include these 19 | // pjax specific options: 20 | // 21 | // 22 | // container - Where to stick the response body. Usually a String selector. 23 | // $(container).html(xhr.responseBody) 24 | // (default: current jquery context) 25 | // push - Whether to pushState the URL. Defaults to true (of course). 26 | // replace - Want to use replaceState instead? That's cool. 27 | // 28 | // For convenience the second parameter can be either the container or 29 | // the options object. 30 | // 31 | // Returns the jQuery object 32 | function fnPjax(selector, container, options) { 33 | var context = this 34 | return this.on('click.pjax', selector, function(event) { 35 | var opts = $.extend({}, optionsFor(container, options)) 36 | if (!opts.container) 37 | opts.container = $(this).attr('data-pjax') || context 38 | handleClick(event, opts) 39 | }) 40 | } 41 | 42 | // Public: pjax on click handler 43 | // 44 | // Exported as $.pjax.click. 45 | // 46 | // event - "click" jQuery.Event 47 | // options - pjax options 48 | // 49 | // Examples 50 | // 51 | // $(document).on('click', 'a', $.pjax.click) 52 | // // is the same as 53 | // $(document).pjax('a') 54 | // 55 | // $(document).on('click', 'a', function(event) { 56 | // var container = $(this).closest('[data-pjax-container]') 57 | // $.pjax.click(event, container) 58 | // }) 59 | // 60 | // Returns nothing. 61 | function handleClick(event, container, options) { 62 | options = optionsFor(container, options) 63 | 64 | var link = event.currentTarget 65 | 66 | if (link.tagName.toUpperCase() !== 'A') 67 | throw "$.fn.pjax or $.pjax.click requires an anchor element" 68 | 69 | // Middle click, cmd click, and ctrl click should open 70 | // links in a new tab as normal. 71 | if ( event.which > 1 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey ) 72 | return 73 | 74 | // Ignore cross origin links 75 | if ( location.protocol !== link.protocol || location.hostname !== link.hostname ) 76 | return 77 | 78 | // Ignore case when a hash is being tacked on the current URL 79 | if ( link.href.indexOf('#') > -1 && stripHash(link) == stripHash(location) ) 80 | return 81 | 82 | // Ignore event with default prevented 83 | if (event.isDefaultPrevented()) 84 | return 85 | 86 | var defaults = { 87 | url: link.href, 88 | container: $(link).attr('data-pjax'), 89 | target: link 90 | } 91 | 92 | var opts = $.extend({}, defaults, options) 93 | var clickEvent = $.Event('pjax:click') 94 | $(link).trigger(clickEvent, [opts]) 95 | 96 | if (!clickEvent.isDefaultPrevented()) { 97 | pjax(opts) 98 | event.preventDefault() 99 | $(link).trigger('pjax:clicked', [opts]) 100 | } 101 | } 102 | 103 | // Public: pjax on form submit handler 104 | // 105 | // Exported as $.pjax.submit 106 | // 107 | // event - "click" jQuery.Event 108 | // options - pjax options 109 | // 110 | // Examples 111 | // 112 | // $(document).on('submit', 'form', function(event) { 113 | // var container = $(this).closest('[data-pjax-container]') 114 | // $.pjax.submit(event, container) 115 | // }) 116 | // 117 | // Returns nothing. 118 | function handleSubmit(event, container, options) { 119 | options = optionsFor(container, options) 120 | 121 | var form = event.currentTarget 122 | var $form = $(form) 123 | 124 | if (form.tagName.toUpperCase() !== 'FORM') 125 | throw "$.pjax.submit requires a form element" 126 | 127 | var defaults = { 128 | type: ($form.attr('method') || 'GET').toUpperCase(), 129 | url: $form.attr('action'), 130 | container: $form.attr('data-pjax'), 131 | target: form 132 | } 133 | 134 | if (defaults.type !== 'GET' && window.FormData !== undefined) { 135 | defaults.data = new FormData(form); 136 | defaults.processData = false; 137 | defaults.contentType = false; 138 | } else { 139 | // Can't handle file uploads, exit 140 | if ($(form).find(':file').length) { 141 | return; 142 | } 143 | 144 | // Fallback to manually serializing the fields 145 | defaults.data = $(form).serializeArray(); 146 | } 147 | 148 | pjax($.extend({}, defaults, options)) 149 | 150 | event.preventDefault() 151 | } 152 | 153 | // Loads a URL with ajax, puts the response body inside a container, 154 | // then pushState()'s the loaded URL. 155 | // 156 | // Works just like $.ajax in that it accepts a jQuery ajax 157 | // settings object (with keys like url, type, data, etc). 158 | // 159 | // Accepts these extra keys: 160 | // 161 | // container - Where to stick the response body. 162 | // $(container).html(xhr.responseBody) 163 | // push - Whether to pushState the URL. Defaults to true (of course). 164 | // replace - Want to use replaceState instead? That's cool. 165 | // 166 | // Use it just like $.ajax: 167 | // 168 | // var xhr = $.pjax({ url: this.href, container: '#main' }) 169 | // console.log( xhr.readyState ) 170 | // 171 | // Returns whatever $.ajax returns. 172 | function pjax(options) { 173 | options = $.extend(true, {}, $.ajaxSettings, pjax.defaults, options) 174 | 175 | if ($.isFunction(options.url)) { 176 | options.url = options.url() 177 | } 178 | 179 | var target = options.target 180 | 181 | var hash = parseURL(options.url).hash 182 | 183 | var context = options.context = findContainerFor(options.container) 184 | 185 | // We want the browser to maintain two separate internal caches: one 186 | // for pjax'd partial page loads and one for normal page loads. 187 | // Without adding this secret parameter, some browsers will often 188 | // confuse the two. 189 | if (!options.data) options.data = {} 190 | if ($.isArray(options.data)) { 191 | options.data.push({name: '_pjax', value: context.selector}) 192 | } else { 193 | options.data._pjax = context.selector 194 | } 195 | 196 | function fire(type, args, props) { 197 | if (!props) props = {} 198 | props.relatedTarget = target 199 | var event = $.Event(type, props) 200 | context.trigger(event, args) 201 | return !event.isDefaultPrevented() 202 | } 203 | 204 | var timeoutTimer 205 | 206 | options.beforeSend = function(xhr, settings) { 207 | // No timeout for non-GET requests 208 | // Its not safe to request the resource again with a fallback method. 209 | if (settings.type !== 'GET') { 210 | settings.timeout = 0 211 | } 212 | 213 | xhr.setRequestHeader('X-PJAX', 'true') 214 | xhr.setRequestHeader('X-PJAX-Container', context.selector) 215 | 216 | if (!fire('pjax:beforeSend', [xhr, settings])) 217 | return false 218 | 219 | if (settings.timeout > 0) { 220 | timeoutTimer = setTimeout(function() { 221 | if (fire('pjax:timeout', [xhr, options])) 222 | xhr.abort('timeout') 223 | }, settings.timeout) 224 | 225 | // Clear timeout setting so jquerys internal timeout isn't invoked 226 | settings.timeout = 0 227 | } 228 | 229 | var url = parseURL(settings.url) 230 | if (hash) url.hash = hash 231 | options.requestUrl = stripInternalParams(url) 232 | } 233 | 234 | options.complete = function(xhr, textStatus) { 235 | if (timeoutTimer) 236 | clearTimeout(timeoutTimer) 237 | 238 | fire('pjax:complete', [xhr, textStatus, options]) 239 | 240 | fire('pjax:end', [xhr, options]) 241 | } 242 | 243 | options.error = function(xhr, textStatus, errorThrown) { 244 | var container = extractContainer("", xhr, options) 245 | 246 | var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options]) 247 | if (options.type == 'GET' && textStatus !== 'abort' && allowed) { 248 | locationReplace(container.url) 249 | } 250 | } 251 | 252 | options.success = function(data, status, xhr) { 253 | var previousState = pjax.state; 254 | 255 | // If $.pjax.defaults.version is a function, invoke it first. 256 | // Otherwise it can be a static string. 257 | var currentVersion = (typeof $.pjax.defaults.version === 'function') ? 258 | $.pjax.defaults.version() : 259 | $.pjax.defaults.version 260 | 261 | var latestVersion = xhr.getResponseHeader('X-PJAX-Version') 262 | 263 | var container = extractContainer(data, xhr, options) 264 | 265 | var url = parseURL(container.url) 266 | if (hash) { 267 | url.hash = hash 268 | container.url = url.href 269 | } 270 | 271 | // If there is a layout version mismatch, hard load the new url 272 | if (currentVersion && latestVersion && currentVersion !== latestVersion) { 273 | locationReplace(container.url) 274 | return 275 | } 276 | 277 | // If the new response is missing a body, hard load the page 278 | if (!container.contents) { 279 | locationReplace(container.url) 280 | return 281 | } 282 | 283 | pjax.state = { 284 | id: options.id || uniqueId(), 285 | url: container.url, 286 | title: container.title, 287 | container: context.selector, 288 | fragment: options.fragment, 289 | timeout: options.timeout 290 | } 291 | 292 | if (options.push || options.replace) { 293 | window.history.replaceState(pjax.state, container.title, container.url) 294 | } 295 | 296 | // Only blur the focus if the focused element is within the container. 297 | var blurFocus = $.contains(options.container, document.activeElement) 298 | 299 | // Clear out any focused controls before inserting new page contents. 300 | if (blurFocus) { 301 | try { 302 | document.activeElement.blur() 303 | } catch (e) { } 304 | } 305 | 306 | if (container.title) document.title = container.title 307 | 308 | fire('pjax:beforeReplace', [container.contents, options], { 309 | state: pjax.state, 310 | previousState: previousState 311 | }) 312 | context.html(container.contents) 313 | 314 | // FF bug: Won't autofocus fields that are inserted via JS. 315 | // This behavior is incorrect. So if theres no current focus, autofocus 316 | // the last field. 317 | // 318 | // http://www.w3.org/html/wg/drafts/html/master/forms.html 319 | var autofocusEl = context.find('input[autofocus], textarea[autofocus]').last()[0] 320 | if (autofocusEl && document.activeElement !== autofocusEl) { 321 | autofocusEl.focus(); 322 | } 323 | 324 | executeScriptTags(container.scripts) 325 | 326 | var scrollTo = options.scrollTo 327 | 328 | // Ensure browser scrolls to the element referenced by the URL anchor 329 | if (hash) { 330 | var name = decodeURIComponent(hash.slice(1)) 331 | var target = document.getElementById(name) || document.getElementsByName(name)[0] 332 | if (target) scrollTo = $(target).offset().top 333 | } 334 | 335 | if (typeof scrollTo == 'number') $(window).scrollTop(scrollTo) 336 | 337 | fire('pjax:success', [data, status, xhr, options]) 338 | } 339 | 340 | 341 | // Initialize pjax.state for the initial page load. Assume we're 342 | // using the container and options of the link we're loading for the 343 | // back button to the initial page. This ensures good back button 344 | // behavior. 345 | if (!pjax.state) { 346 | pjax.state = { 347 | id: uniqueId(), 348 | url: window.location.href, 349 | title: document.title, 350 | container: context.selector, 351 | fragment: options.fragment, 352 | timeout: options.timeout 353 | } 354 | window.history.replaceState(pjax.state, document.title) 355 | } 356 | 357 | // Cancel the current request if we're already pjaxing 358 | abortXHR(pjax.xhr) 359 | 360 | pjax.options = options 361 | var xhr = pjax.xhr = $.ajax(options) 362 | 363 | if (xhr.readyState > 0) { 364 | if (options.push && !options.replace) { 365 | // Cache current container element before replacing it 366 | cachePush(pjax.state.id, cloneContents(context)) 367 | 368 | window.history.pushState(null, "", options.requestUrl) 369 | } 370 | 371 | fire('pjax:start', [xhr, options]) 372 | fire('pjax:send', [xhr, options]) 373 | } 374 | 375 | return pjax.xhr 376 | } 377 | 378 | // Public: Reload current page with pjax. 379 | // 380 | // Returns whatever $.pjax returns. 381 | function pjaxReload(container, options) { 382 | var defaults = { 383 | url: window.location.href, 384 | push: false, 385 | replace: true, 386 | scrollTo: false 387 | } 388 | 389 | return pjax($.extend(defaults, optionsFor(container, options))) 390 | } 391 | 392 | // Internal: Hard replace current state with url. 393 | // 394 | // Work for around WebKit 395 | // https://bugs.webkit.org/show_bug.cgi?id=93506 396 | // 397 | // Returns nothing. 398 | function locationReplace(url) { 399 | window.history.replaceState(null, "", pjax.state.url) 400 | window.location.replace(url) 401 | } 402 | 403 | 404 | var initialPop = true 405 | var initialURL = window.location.href 406 | var initialState = window.history.state 407 | 408 | // Initialize $.pjax.state if possible 409 | // Happens when reloading a page and coming forward from a different 410 | // session history. 411 | if (initialState && initialState.container) { 412 | pjax.state = initialState 413 | } 414 | 415 | // Non-webkit browsers don't fire an initial popstate event 416 | if ('state' in window.history) { 417 | initialPop = false 418 | } 419 | 420 | // popstate handler takes care of the back and forward buttons 421 | // 422 | // You probably shouldn't use pjax on pages with other pushState 423 | // stuff yet. 424 | function onPjaxPopstate(event) { 425 | 426 | // Hitting back or forward should override any pending PJAX request. 427 | if (!initialPop) { 428 | abortXHR(pjax.xhr) 429 | } 430 | 431 | var previousState = pjax.state 432 | var state = event.state 433 | var direction 434 | 435 | if (state && state.container) { 436 | // When coming forward from a separate history session, will get an 437 | // initial pop with a state we are already at. Skip reloading the current 438 | // page. 439 | if (initialPop && initialURL == state.url) return 440 | 441 | if (previousState) { 442 | // If popping back to the same state, just skip. 443 | // Could be clicking back from hashchange rather than a pushState. 444 | if (previousState.id === state.id) return 445 | 446 | // Since state IDs always increase, we can deduce the navigation direction 447 | direction = previousState.id < state.id ? 'forward' : 'back' 448 | } 449 | 450 | var cache = cacheMapping[state.id] || [] 451 | var container = $(cache[0] || state.container), contents = cache[1] 452 | 453 | if (container.length) { 454 | if (previousState) { 455 | // Cache current container before replacement and inform the 456 | // cache which direction the history shifted. 457 | cachePop(direction, previousState.id, cloneContents(container)) 458 | } 459 | 460 | var popstateEvent = $.Event('pjax:popstate', { 461 | state: state, 462 | direction: direction 463 | }) 464 | container.trigger(popstateEvent) 465 | 466 | var options = { 467 | id: state.id, 468 | url: state.url, 469 | container: container, 470 | push: false, 471 | fragment: state.fragment, 472 | timeout: state.timeout, 473 | scrollTo: false 474 | } 475 | 476 | if (contents) { 477 | container.trigger('pjax:start', [null, options]) 478 | 479 | pjax.state = state 480 | if (state.title) document.title = state.title 481 | var beforeReplaceEvent = $.Event('pjax:beforeReplace', { 482 | state: state, 483 | previousState: previousState 484 | }) 485 | container.trigger(beforeReplaceEvent, [contents, options]) 486 | container.html(contents) 487 | 488 | container.trigger('pjax:end', [null, options]) 489 | } else { 490 | pjax(options) 491 | } 492 | 493 | // Force reflow/relayout before the browser tries to restore the 494 | // scroll position. 495 | container[0].offsetHeight 496 | } else { 497 | locationReplace(location.href) 498 | } 499 | } 500 | initialPop = false 501 | } 502 | 503 | // Fallback version of main pjax function for browsers that don't 504 | // support pushState. 505 | // 506 | // Returns nothing since it retriggers a hard form submission. 507 | function fallbackPjax(options) { 508 | var url = $.isFunction(options.url) ? options.url() : options.url, 509 | method = options.type ? options.type.toUpperCase() : 'GET' 510 | 511 | var form = $('
    ', { 512 | method: method === 'GET' ? 'GET' : 'POST', 513 | action: url, 514 | style: 'display:none' 515 | }) 516 | 517 | if (method !== 'GET' && method !== 'POST') { 518 | form.append($('', { 519 | type: 'hidden', 520 | name: '_method', 521 | value: method.toLowerCase() 522 | })) 523 | } 524 | 525 | var data = options.data 526 | if (typeof data === 'string') { 527 | $.each(data.split('&'), function(index, value) { 528 | var pair = value.split('=') 529 | form.append($('', {type: 'hidden', name: pair[0], value: pair[1]})) 530 | }) 531 | } else if ($.isArray(data)) { 532 | $.each(data, function(index, value) { 533 | form.append($('', {type: 'hidden', name: value.name, value: value.value})) 534 | }) 535 | } else if (typeof data === 'object') { 536 | var key 537 | for (key in data) 538 | form.append($('', {type: 'hidden', name: key, value: data[key]})) 539 | } 540 | 541 | $(document.body).append(form) 542 | form.submit() 543 | } 544 | 545 | // Internal: Abort an XmlHttpRequest if it hasn't been completed, 546 | // also removing its event handlers. 547 | function abortXHR(xhr) { 548 | if ( xhr && xhr.readyState < 4) { 549 | xhr.onreadystatechange = $.noop 550 | xhr.abort() 551 | } 552 | } 553 | 554 | // Internal: Generate unique id for state object. 555 | // 556 | // Use a timestamp instead of a counter since ids should still be 557 | // unique across page loads. 558 | // 559 | // Returns Number. 560 | function uniqueId() { 561 | return (new Date).getTime() 562 | } 563 | 564 | function cloneContents(container) { 565 | var cloned = container.clone() 566 | // Unmark script tags as already being eval'd so they can get executed again 567 | // when restored from cache. HAXX: Uses jQuery internal method. 568 | cloned.find('script').each(function(){ 569 | if (!this.src) jQuery._data(this, 'globalEval', false) 570 | }) 571 | return [container.selector, cloned.contents()] 572 | } 573 | 574 | // Internal: Strip internal query params from parsed URL. 575 | // 576 | // Returns sanitized url.href String. 577 | function stripInternalParams(url) { 578 | url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '') 579 | return url.href.replace(/\?($|#)/, '$1') 580 | } 581 | 582 | // Internal: Parse URL components and returns a Locationish object. 583 | // 584 | // url - String URL 585 | // 586 | // Returns HTMLAnchorElement that acts like Location. 587 | function parseURL(url) { 588 | var a = document.createElement('a') 589 | a.href = url 590 | return a 591 | } 592 | 593 | // Internal: Return the `href` component of given URL object with the hash 594 | // portion removed. 595 | // 596 | // location - Location or HTMLAnchorElement 597 | // 598 | // Returns String 599 | function stripHash(location) { 600 | return location.href.replace(/#.*/, '') 601 | } 602 | 603 | // Internal: Build options Object for arguments. 604 | // 605 | // For convenience the first parameter can be either the container or 606 | // the options object. 607 | // 608 | // Examples 609 | // 610 | // optionsFor('#container') 611 | // // => {container: '#container'} 612 | // 613 | // optionsFor('#container', {push: true}) 614 | // // => {container: '#container', push: true} 615 | // 616 | // optionsFor({container: '#container', push: true}) 617 | // // => {container: '#container', push: true} 618 | // 619 | // Returns options Object. 620 | function optionsFor(container, options) { 621 | // Both container and options 622 | if ( container && options ) 623 | options.container = container 624 | 625 | // First argument is options Object 626 | else if ( $.isPlainObject(container) ) 627 | options = container 628 | 629 | // Only container 630 | else 631 | options = {container: container} 632 | 633 | // Find and validate container 634 | if (options.container) 635 | options.container = findContainerFor(options.container) 636 | 637 | return options 638 | } 639 | 640 | // Internal: Find container element for a variety of inputs. 641 | // 642 | // Because we can't persist elements using the history API, we must be 643 | // able to find a String selector that will consistently find the Element. 644 | // 645 | // container - A selector String, jQuery object, or DOM Element. 646 | // 647 | // Returns a jQuery object whose context is `document` and has a selector. 648 | function findContainerFor(container) { 649 | container = $(container) 650 | 651 | if ( !container.length ) { 652 | throw "no pjax container for " + container.selector 653 | } else if ( container.selector !== '' && container.context === document ) { 654 | return container 655 | } else if ( container.attr('id') ) { 656 | return $('#' + container.attr('id')) 657 | } else { 658 | throw "cant get selector for pjax container!" 659 | } 660 | } 661 | 662 | // Internal: Filter and find all elements matching the selector. 663 | // 664 | // Where $.fn.find only matches descendants, findAll will test all the 665 | // top level elements in the jQuery object as well. 666 | // 667 | // elems - jQuery object of Elements 668 | // selector - String selector to match 669 | // 670 | // Returns a jQuery object. 671 | function findAll(elems, selector) { 672 | return elems.filter(selector).add(elems.find(selector)); 673 | } 674 | 675 | function parseHTML(html) { 676 | return $.parseHTML(html, document, true) 677 | } 678 | 679 | // Internal: Extracts container and metadata from response. 680 | // 681 | // 1. Extracts X-PJAX-URL header if set 682 | // 2. Extracts inline tags 683 | // 3. Builds response Element and extracts fragment if set 684 | // 685 | // data - String response data 686 | // xhr - XHR response 687 | // options - pjax options Object 688 | // 689 | // Returns an Object with url, title, and contents keys. 690 | function extractContainer(data, xhr, options) { 691 | var obj = {}, fullDocument = /<html/i.test(data) 692 | 693 | // Prefer X-PJAX-URL header if it was set, otherwise fallback to 694 | // using the original requested url. 695 | var serverUrl = xhr.getResponseHeader('X-PJAX-URL') 696 | obj.url = serverUrl ? stripInternalParams(parseURL(serverUrl)) : options.requestUrl 697 | 698 | // Attempt to parse response html into elements 699 | if (fullDocument) { 700 | var $head = $(parseHTML(data.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0])) 701 | var $body = $(parseHTML(data.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0])) 702 | } else { 703 | var $head = $body = $(parseHTML(data)) 704 | } 705 | 706 | // If response data is empty, return fast 707 | if ($body.length === 0) 708 | return obj 709 | 710 | // If there's a <title> tag in the header, use it as 711 | // the page's title. 712 | obj.title = findAll($head, 'title').last().text() 713 | 714 | if (options.fragment) { 715 | // If they specified a fragment, look for it in the response 716 | // and pull it out. 717 | if (options.fragment === 'body') { 718 | var $fragment = $body 719 | } else { 720 | var $fragment = findAll($body, options.fragment).first() 721 | } 722 | 723 | if ($fragment.length) { 724 | obj.contents = options.fragment === 'body' ? $fragment : $fragment.contents() 725 | 726 | // If there's no title, look for data-title and title attributes 727 | // on the fragment 728 | if (!obj.title) 729 | obj.title = $fragment.attr('title') || $fragment.data('title') 730 | } 731 | 732 | } else if (!fullDocument) { 733 | obj.contents = $body 734 | } 735 | 736 | // Clean up any <title> tags 737 | if (obj.contents) { 738 | // Remove any parent title elements 739 | obj.contents = obj.contents.not(function() { return $(this).is('title') }) 740 | 741 | // Then scrub any titles from their descendants 742 | obj.contents.find('title').remove() 743 | 744 | // Gather all script[src] elements 745 | obj.scripts = findAll(obj.contents, 'script[src]').remove() 746 | obj.contents = obj.contents.not(obj.scripts) 747 | } 748 | 749 | // Trim any whitespace off the title 750 | if (obj.title) obj.title = $.trim(obj.title) 751 | 752 | return obj 753 | } 754 | 755 | // Load an execute scripts using standard script request. 756 | // 757 | // Avoids jQuery's traditional $.getScript which does a XHR request and 758 | // globalEval. 759 | // 760 | // scripts - jQuery object of script Elements 761 | // 762 | // Returns nothing. 763 | function executeScriptTags(scripts) { 764 | if (!scripts) return 765 | 766 | var existingScripts = $('script[src]') 767 | 768 | scripts.each(function() { 769 | var src = this.src 770 | var matchedScripts = existingScripts.filter(function() { 771 | return this.src === src 772 | }) 773 | if (matchedScripts.length) return 774 | 775 | var script = document.createElement('script') 776 | var type = $(this).attr('type') 777 | if (type) script.type = type 778 | script.src = $(this).attr('src') 779 | document.head.appendChild(script) 780 | }) 781 | } 782 | 783 | // Internal: History DOM caching class. 784 | var cacheMapping = {} 785 | var cacheForwardStack = [] 786 | var cacheBackStack = [] 787 | 788 | // Push previous state id and container contents into the history 789 | // cache. Should be called in conjunction with `pushState` to save the 790 | // previous container contents. 791 | // 792 | // id - State ID Number 793 | // value - DOM Element to cache 794 | // 795 | // Returns nothing. 796 | function cachePush(id, value) { 797 | cacheMapping[id] = value 798 | cacheBackStack.push(id) 799 | 800 | // Remove all entries in forward history stack after pushing a new page. 801 | trimCacheStack(cacheForwardStack, 0) 802 | 803 | // Trim back history stack to max cache length. 804 | trimCacheStack(cacheBackStack, pjax.defaults.maxCacheLength) 805 | } 806 | 807 | // Shifts cache from directional history cache. Should be 808 | // called on `popstate` with the previous state id and container 809 | // contents. 810 | // 811 | // direction - "forward" or "back" String 812 | // id - State ID Number 813 | // value - DOM Element to cache 814 | // 815 | // Returns nothing. 816 | function cachePop(direction, id, value) { 817 | var pushStack, popStack 818 | cacheMapping[id] = value 819 | 820 | if (direction === 'forward') { 821 | pushStack = cacheBackStack 822 | popStack = cacheForwardStack 823 | } else { 824 | pushStack = cacheForwardStack 825 | popStack = cacheBackStack 826 | } 827 | 828 | pushStack.push(id) 829 | if (id = popStack.pop()) 830 | delete cacheMapping[id] 831 | 832 | // Trim whichever stack we just pushed to to max cache length. 833 | trimCacheStack(pushStack, pjax.defaults.maxCacheLength) 834 | } 835 | 836 | // Trim a cache stack (either cacheBackStack or cacheForwardStack) to be no 837 | // longer than the specified length, deleting cached DOM elements as necessary. 838 | // 839 | // stack - Array of state IDs 840 | // length - Maximum length to trim to 841 | // 842 | // Returns nothing. 843 | function trimCacheStack(stack, length) { 844 | while (stack.length > length) 845 | delete cacheMapping[stack.shift()] 846 | } 847 | 848 | // Public: Find version identifier for the initial page load. 849 | // 850 | // Returns String version or undefined. 851 | function findVersion() { 852 | return $('meta').filter(function() { 853 | var name = $(this).attr('http-equiv') 854 | return name && name.toUpperCase() === 'X-PJAX-VERSION' 855 | }).attr('content') 856 | } 857 | 858 | // Install pjax functions on $.pjax to enable pushState behavior. 859 | // 860 | // Does nothing if already enabled. 861 | // 862 | // Examples 863 | // 864 | // $.pjax.enable() 865 | // 866 | // Returns nothing. 867 | function enable() { 868 | $.fn.pjax = fnPjax 869 | $.pjax = pjax 870 | $.pjax.enable = $.noop 871 | $.pjax.disable = disable 872 | $.pjax.click = handleClick 873 | $.pjax.submit = handleSubmit 874 | $.pjax.reload = pjaxReload 875 | $.pjax.defaults = { 876 | timeout: 650, 877 | push: true, 878 | replace: false, 879 | type: 'GET', 880 | dataType: 'html', 881 | scrollTo: 0, 882 | maxCacheLength: 20, 883 | version: findVersion 884 | } 885 | $(window).on('popstate.pjax', onPjaxPopstate) 886 | } 887 | 888 | // Disable pushState behavior. 889 | // 890 | // This is the case when a browser doesn't support pushState. It is 891 | // sometimes useful to disable pushState for debugging on a modern 892 | // browser. 893 | // 894 | // Examples 895 | // 896 | // $.pjax.disable() 897 | // 898 | // Returns nothing. 899 | function disable() { 900 | $.fn.pjax = function() { return this } 901 | $.pjax = fallbackPjax 902 | $.pjax.enable = enable 903 | $.pjax.disable = $.noop 904 | $.pjax.click = $.noop 905 | $.pjax.submit = $.noop 906 | $.pjax.reload = function() { window.location.reload() } 907 | 908 | $(window).off('popstate.pjax', onPjaxPopstate) 909 | } 910 | 911 | 912 | // Add the state property to jQuery's event object so we can use it in 913 | // $(window).bind('popstate') 914 | if ( $.inArray('state', $.event.props) < 0 ) 915 | $.event.props.push('state') 916 | 917 | // Is pjax supported by this browser? 918 | $.support.pjax = 919 | window.history && window.history.pushState && window.history.replaceState && 920 | // pushState isn't reliable on iOS until 5. 921 | !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/) 922 | 923 | $.support.pjax ? enable() : disable() 924 | 925 | })(jQuery); 926 | -------------------------------------------------------------------------------- /css/layout.css: -------------------------------------------------------------------------------- 1 | * { 2 | padding: 0; 3 | margin: 0 4 | } 5 | html{ 6 | cursor: url(../images/default.cur),default; 7 | } 8 | body { 9 | margin: 0; 10 | padding: 0; 11 | color: #333; 12 | letter-spacing: 0.6px; 13 | overflow-x: hidden; 14 | cursor: url(../images/default.cur),default; 15 | background: url(../images/body-bg.png); 16 | font-family: 'STHeiti Light','Microsoft YaHei','SimHei','Microsoft JhengHei','Microsoft YaHei','Mirages Custom','Merriweather','Open Sans',"PingFang SC",'Hiragino Sans GB','Microsoft Yahei','WenQuanYi Micro Hei','Segoe UI Emoji','Segoe UI Symbol',Helvetica,Arial,sans-serif 17 | } 18 | /*标签通用样式*/ 19 | tt,code,kbd,samp { 20 | font-family: "Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif 21 | } 22 | a, 23 | a:focus, 24 | a:hover 25 | input, 26 | input:focus, 27 | button, 28 | button:focus{ 29 | outline: none; 30 | -webkit-box-shadow: 0 0 0 2px rgba(0,0,0,0); 31 | box-shadow: 0 0 0 2px rgba(0,0,0,0); 32 | } 33 | .clear-float{ 34 | clear: both; 35 | } 36 | ::selection{ 37 | background:#666; 38 | color:#fafafa; 39 | } 40 | ::-moz-selection{ 41 | background:#666; 42 | color:#fafafa; 43 | } 44 | ::-webkit-selection{ 45 | background:#666; 46 | color:#fafafa; 47 | } 48 | strong{ 49 | color: #888; 50 | font-weight: 600; 51 | } 52 | /*a标签通用样式*/ 53 | a { 54 | text-decoration: none; 55 | cursor: url(../images/pointer.cur),pointer; 56 | color: #f55852; 57 | -webkit-transition: all .6s; 58 | -moz-transition: all .6s; 59 | -ms-transition: all .6s; 60 | -o-transition: all .6s 61 | } 62 | /*标签通用样式*/ 63 | a:link { 64 | text-decoration: none; 65 | color: #f55852 66 | } 67 | /*标签通用样式*/ 68 | a:visited { 69 | color: #f55852 70 | } 71 | /*标签通用样式*/ 72 | a:hover { 73 | text-decoration: none; 74 | color: #f73131 75 | } 76 | /*标签通用样式*/ 77 | h1,h2,h3,h4,h5,h6 { 78 | padding: 0; 79 | margin: 0 80 | } 81 | /*标签通用样式*/ 82 | ul,ol { 83 | list-style: none; 84 | padding: 0; 85 | margin: 0 86 | } 87 | /*pjax进度条*/ 88 | #instantclick-bar{ 89 | background: #7c7eec; 90 | } 91 | #instantclick{ 92 | /*display: none;*/ 93 | } 94 | /*a标签hover动画样式*/ 95 | .down-a { 96 | position: relative; 97 | color: #f55852 98 | } 99 | .down-a:before { 100 | content: ""; 101 | position: absolute; 102 | left: 0; 103 | bottom: -2px; 104 | height: 1px; 105 | width: 100%; 106 | background: #f55852; 107 | transform: scale(0); 108 | transition: all .4s 109 | } 110 | .down-a:hover:before { 111 | transform: scale(1) 112 | } 113 | /*a标签hover动画2*/ 114 | .down-a2{ 115 | position: relative; 116 | color: #f55852 117 | } 118 | .down-a2:before { 119 | content: ""; 120 | position: absolute; 121 | left: 0; 122 | bottom: -2px; 123 | height: 1px; 124 | width: 100%; 125 | background: #f55852; 126 | transform: scale(1); 127 | transition: all .4s 128 | } 129 | .down-a2:hover:before { 130 | transform: scale(0) 131 | } 132 | /*代码高亮插件样式开始*/ 133 | .hljs-line-numbers { 134 | text-align: center; 135 | padding-left: 10px; 136 | padding-right: 10px; 137 | color: #869194; 138 | font-size: 9pt; 139 | background-color: #eff2f3; 140 | -webkit-touch-callout: none; 141 | -webkit-user-select: none; 142 | -khtml-user-select: none; 143 | -moz-user-select: none; 144 | -ms-user-select: none; 145 | user-select: none; 146 | } 147 | /*代码高亮插件样式结束*/ 148 | /*按钮组开始*/ 149 | .navbar-btn{ 150 | position: fixed; 151 | top: 30px; 152 | left: 30px; 153 | padding: 18px 28px; 154 | border-radius: 180px; 155 | /*background-color: #fff;*/ 156 | z-index: 99; 157 | -webkit-transition: -webkit-transform .4s ease; 158 | transition: transform .4s ease; 159 | /*box-shadow: 0 0 1px 1px rgb(241, 212, 212);*/ 160 | cursor: url(../images/pointer.cur), pointer; 161 | } 162 | .navbar-btn-open{ 163 | -webkit-transition: -webkit-transform .4s ease; 164 | transition: transform .4s ease; 165 | -webkit-transform: translate3D(230px,0,0); 166 | -ms-transform: translate3D(230px,0,0); 167 | transform: translate3D(230px,0,0); 168 | } 169 | .navbar-btn>span{ 170 | display: block; 171 | width: 25px; 172 | height: 1px; 173 | background: #bd9191; 174 | margin-left: -12.5px; 175 | -webkit-transition: -webkit-transform .6s ease; 176 | transition: transform .6s ease 177 | } 178 | .navbar-btn-line1{ 179 | position: absolute; 180 | top: 10px; 181 | left: 50% 182 | } 183 | .navbar-btn-line2{ 184 | position: absolute; 185 | top: 18px; 186 | left: 50% 187 | } 188 | .navbar-btn-line3{ 189 | position: absolute; 190 | top: 26px; 191 | left: 50% 192 | } 193 | .navbar-btn-rotate-left{ 194 | position: absolute; 195 | top: 17.8px; 196 | left: 50%; 197 | transform: rotate(45deg); 198 | -ms-transform: rotate(45deg); 199 | -moz-transform: rotate(45deg); 200 | -webkit-transform: rotate(45deg); 201 | -o-transform: rotate(45deg); 202 | -webkit-transition: -webkit-transform .4s ease; 203 | transition: transform .4s ease; 204 | } 205 | .navbar-btn-rotate-right{ 206 | position: absolute; 207 | top: 17.8px; 208 | left: 50%; 209 | transform: rotate(-45deg); 210 | -ms-transform: rotate(-45deg); 211 | -moz-transform: rotate(-45deg); 212 | -webkit-transform: rotate(-45deg); 213 | -o-transform: rotate(-45deg); 214 | -webkit-transition: -webkit-transform .4s ease; 215 | transition: transform .4s ease; 216 | } 217 | .backtop-btn{ 218 | padding: 22px 24.89px; 219 | background: #fff; 220 | position: fixed; 221 | bottom: 10px; 222 | right: 10px; 223 | border-radius: 180px; 224 | cursor: url(../images/pointer.cur), pointer; 225 | } 226 | /*按钮组结束*/ 227 | /*页面遮罩层开始*/ 228 | .mask{ 229 | position: fixed; 230 | top: 0; 231 | left: 0; 232 | bottom: 0; 233 | right: 0; 234 | background: rgba(255,255,255,0.85); 235 | display: none; 236 | z-index: 98; 237 | } 238 | .mask2{ 239 | position: fixed; 240 | top: 0; 241 | left: 0; 242 | bottom: 0; 243 | right: 0; 244 | background: rgba(255,255,255,0.85); 245 | display: none; 246 | z-index: 96; 247 | } 248 | /*页面遮罩层结束*/ 249 | /*导航栏开始*/ 250 | .navbar-layout{ 251 | position: fixed; 252 | top: 0; 253 | left: -270px; 254 | bottom: 0; 255 | width: 270px; 256 | overflow-x: hidden; 257 | background: url(../images/body-bg.png); 258 | z-index: 98; 259 | overflow-y: auto; 260 | -webkit-transition: -webkit-transform .6s ease; 261 | transition: transform .4s ease; 262 | -webkit-transform: translate3D(0,0,0); 263 | -ms-transform: translate3D(0,0,0); 264 | transform: translate3D(0,0,0); 265 | box-shadow: 0 0 5px 0 rgba(0,0,0,0.1); 266 | } 267 | .navbar-layout-open{ 268 | -webkit-transition: -webkit-transform .4s ease; 269 | transition: transform .4s ease; 270 | -webkit-transform: translate3D(270px,0,0); 271 | -ms-transform: translate3D(270px,0,0); 272 | transform: translate3D(270px,0,0) 273 | } 274 | .navbar-layout .navbar-header{ 275 | padding: 25px 0; 276 | width: 100%; 277 | } 278 | .navbar-header>img{ 279 | display: block; 280 | width: 100px; 281 | height: 100px; 282 | border: 2px solid #eee; 283 | border-radius: 180px; 284 | overflow: hidden; 285 | margin: 0 auto; 286 | } 287 | .navbar-layout .navbar-date{ 288 | padding: 20px 0; 289 | position: relative; 290 | background: #fff; 291 | box-shadow: 0 0 3px 1px rgba(0,0,0,.1); 292 | } 293 | .navbar-date .navbar-date-post, 294 | .navbar-date .navbar-date-tags{ 295 | position: relative; 296 | float: left; 297 | text-align: center; 298 | width: 50%; 299 | } 300 | .navbar-date-post:before{ 301 | content: ""; 302 | position: absolute; 303 | bottom: 10px; 304 | right: 0; 305 | width: 1px; 306 | height: 30px; 307 | background: #ccc; 308 | } 309 | .navbar-date-post>h2, 310 | .navbar-date-tags>h2{ 311 | font-size: 17px; 312 | font-weight: 200; 313 | color: #f16f95; 314 | margin-bottom: 10px; 315 | } 316 | .navbar-date-post>p, 317 | .navbar-date-tags>p{ 318 | font-size: 14px; 319 | color: #999; 320 | } 321 | .navbar-search{ 322 | width: 100%; 323 | } 324 | .navbar-search input{ 325 | width: 100%; 326 | background: none; 327 | border: none; 328 | font-size: 18px; 329 | font-weight: 200; 330 | color: #255; 331 | padding: 8px 0; 332 | text-align: center; 333 | } 334 | .navbar-links{ 335 | padding-top: 30px; 336 | overflow-y: auto; 337 | } 338 | .navbar-links>ul{ 339 | margin: 0; 340 | } 341 | .navbar-links>ul>li{ 342 | 343 | } 344 | .navbar-links>ul>li>a{ 345 | position: relative; 346 | display: block; 347 | padding: 8px 0; 348 | text-align: center; 349 | font-size: 18px; 350 | font-weight: 200; 351 | color: #255; 352 | z-index: 98; 353 | } 354 | .navbar-links>ul>li>a:before{ 355 | position: absolute; 356 | content: ""; 357 | height: 100%; 358 | width: 100%; 359 | bottom: 0; 360 | left: -270px; 361 | background: #e0f3f5; 362 | z-index: -92; 363 | transform:translateX(0px); 364 | -webkit-transition: -webkit-transform .5s ease; 365 | transition: transform .5s ease; 366 | } 367 | .navbar-links>ul>li>a:hover:before{ 368 | transform:translateX(100%); 369 | color: #90acb1; 370 | } 371 | .navbar-icon{ 372 | position: absolute; 373 | bottom: 0; 374 | left: 0; 375 | right: 0; 376 | padding: 10px 0; 377 | background: #fff; 378 | box-shadow: 1px 0 3px 3px rgba(0,0,0,.1); 379 | text-align: center; 380 | } 381 | .navbar-icon>a{ 382 | padding: 10px 10px; 383 | background-color: #e0f3f5; 384 | margin: 0 4px; 385 | border-radius: 180px; 386 | color: #7ab6ea; 387 | } 388 | .navbar-icon>.navbar-github{ 389 | padding: 10px 12px; 390 | } 391 | .navbar-icon>.navbar-weibo{ 392 | padding: 10px; 393 | } 394 | .navbar-icon>.navbar-email{ 395 | padding: 10px; 396 | } 397 | .navbar-icon>.navbar-rss{ 398 | padding: 10px 12px; 399 | } 400 | /*导航栏结束*/ 401 | /*body布局开始*/ 402 | .body-layout{ 403 | width: 100%; 404 | transition: transform .4s ease; 405 | -webkit-transform: translate3D(0,0,0); 406 | -ms-transform: translate3D(0,0,0); 407 | transform: translate3D(0,0,0); 408 | } 409 | .body-layout-open{ 410 | -webkit-transition: -webkit-transform .4s ease; 411 | transition: transform .4s ease; 412 | -webkit-transform: translate3D(270px,0,0); 413 | -ms-transform: translate3D(270px,0,0); 414 | transform: translate3D(270px,0,0); 415 | } 416 | /*body布局结束*/ 417 | /*页面主体开始*/ 418 | /*首页头部开始*/ 419 | .index-header{ 420 | width: 100%; 421 | height: 620px; 422 | background: #fafafa; 423 | background-size: 100% 100%; 424 | position: relative; 425 | } 426 | .index-header-wave{ 427 | position: absolute; 428 | bottom: -1px; 429 | height: 56px; 430 | width: 100%; 431 | background: url(../images/index-header-wave.png); 432 | background-size: 100% 100%; 433 | } 434 | /*首页头部结束*/ 435 | /*页面布局开始*/ 436 | .index-container{ 437 | /*width: 100%;*/ 438 | } 439 | .index-post-layout{ 440 | width: 100%; 441 | padding: 80px 0; 442 | } 443 | .index-post-layout-odd{ 444 | background: url(../images/index-post-bg2.png) 445 | } 446 | /*页面布局结束*/ 447 | /*主页面文章摘要开始*/ 448 | .index-post-abstract{ 449 | width: 890px; 450 | margin: 0 auto; 451 | } 452 | .index-post-abstract>header{ 453 | text-align: center; 454 | margin-bottom: 35px; 455 | } 456 | .index-post-abstract>header>h2{ 457 | margin-bottom: 15px; 458 | } 459 | .index-post-abstract>header>h2>a, 460 | .index-post-abstract>header>h2>a:link{ 461 | font-size: 32px; 462 | font-weight: 200; 463 | margin-bottom: 15px; 464 | color: #333; 465 | } 466 | .index-post-abstract>header>time{ 467 | font-size: 10pt; 468 | color: #9eabb3; 469 | font-weight: 200; 470 | } 471 | .index-post-abstract>section{ 472 | font-size: 11pt; 473 | /*font-weight: 200;*/ 474 | color: #666; 475 | line-height: 30px; 476 | } 477 | /*主页面文章摘要内容样式开始*/ 478 | .index-post-abstract>section p, ul, ol, pre, code, hr, img{ 479 | margin-bottom: 22px; 480 | } 481 | .index-post-abstract>section pre{ 482 | line-height: 24px; 483 | } 484 | .index-post-abstract>section code{ 485 | line-height: 24px; 486 | } 487 | .index-post-abstract>section ul{ 488 | margin-left: 18px; 489 | list-style: inside; 490 | list-style-position: inherit; 491 | } 492 | .index-post-abstract>section ul ul{ 493 | padding-left: 18px; 494 | list-style: circle; 495 | list-style-position: inherit; 496 | margin-bottom: 0; 497 | } 498 | .index-post-abstract>section ul ul li{ 499 | font-size: 11pt; 500 | } 501 | .index-post-abstract>section>ul>li{ 502 | 503 | } 504 | .index-post-abstract>section mark{ 505 | background: none; 506 | color: #8eaef9; 507 | } 508 | .index-post-abstract>section ol{ 509 | list-style: decimal; 510 | list-style-position: inside; 511 | } 512 | .index-post-abstract>section ol ol{ 513 | padding-left: 24px; 514 | list-style: decimal; 515 | list-style-position: inside; 516 | margin-bottom: 0; 517 | } 518 | .index-post-abstract>section ol ol li{ 519 | font-size: 11pt; 520 | } 521 | .index-post-abstract>section ol>li{ 522 | 523 | } 524 | .index-post-abstract>section hr{ 525 | 526 | } 527 | .index-post-abstract>section a{ 528 | color: #f02626; 529 | font-weight: 200; 530 | } 531 | .index-post-abstract>section a:hover{ 532 | color: #ff6efe; 533 | } 534 | .index-post-abstract>section blockquote{ 535 | color:#cc9288; 536 | background-color: #f7f7f7; 537 | border-left: 6px solid #bbe3ff; 538 | padding: 18px 32px; 539 | position: relative; 540 | font-family: 'Roboto', sans-serif; 541 | font-size: 11pt; 542 | font-weight: 200; 543 | line-height: 30px; 544 | margin-bottom: 22px; 545 | } 546 | .index-post-abstract>section blockquote>p{ 547 | margin-bottom: 0; 548 | } 549 | .index-post-abstract>section blockquote:before { 550 | color: #9dbbaf; 551 | content: "\201C"; 552 | font-size: 5em; 553 | position:absolute; 554 | left: 6px; 555 | top: 35px; 556 | line-height: 0.1em; 557 | } 558 | .index-post-abstract>section blockquote:after { 559 | color: #9dbbaf; 560 | content: "\201D"; 561 | font-size: 5em; 562 | position:absolute; 563 | right: 6px; 564 | bottom: -4px; 565 | line-height: 0.1em; 566 | } 567 | .index-post-abstract>section hr{ 568 | border: 0; 569 | border-bottom: 2px solid #ccc; 570 | } 571 | .index-post-abstract>section img{ 572 | box-shadow: 0 2px 20px 5px rgba(0, 0, 0, 0.2); 573 | max-width: 100%; 574 | width: 100%; 575 | display: block; 576 | margin: 22px 0; 577 | } 578 | .index-post-abstract>section h1{ 579 | font-size: 25pt; 580 | font-weight: normal; 581 | color: #999; 582 | margin-top: 26px; 583 | margin-bottom: 22px; 584 | } 585 | .index-post-abstract>section h2{ 586 | font-size: 22pt; 587 | font-weight: normal; 588 | color: #999; 589 | margin-top: 22px; 590 | margin-bottom: 22px; 591 | } 592 | .index-post-abstract>section h3{ 593 | font-size: 19pt; 594 | font-weight: normal; 595 | color: #999; 596 | margin-top: 20px; 597 | margin-bottom: 22px; 598 | } 599 | .index-post-abstract>section h4{ 600 | font-size: 17pt; 601 | font-weight: normal; 602 | color: #999; 603 | margin-top: 14px; 604 | margin-bottom: 20px; 605 | } 606 | .index-post-abstract>section h5{ 607 | font-size: 15pt; 608 | font-weight: normal; 609 | color: #999; 610 | margin-top: 14px; 611 | margin-bottom: 20px; 612 | } 613 | .index-post-abstract>section h6{ 614 | font-size: 13pt; 615 | font-weight: normal; 616 | color: #999; 617 | margin-top: 14px; 618 | margin-bottom: 20px; 619 | } 620 | .index-post-abstract>section>h1:before, .index-post-abstract>section>h2:before, .index-post-abstract>section>h3:before, .index-post-abstract>section>h4:before, .index-post-abstract>section>h5:before, .index-post-abstract>section>h6:before{ 621 | content: "#"; 622 | color: #e8a6a6; 623 | margin-right: 8px; 624 | } 625 | /*主页面文章摘要内容样式结束*/ 626 | /*主页面文章摘要结束*/ 627 | /*主页面分页模块开始*/ 628 | .pagination{ 629 | width: 890px; 630 | margin: 15px auto; 631 | position: relative; 632 | text-align: center; 633 | } 634 | .pagination .pagination-up{ 635 | position: absolute; 636 | left: 0; 637 | top: -10px; 638 | /*padding: 2px 15px 10px 0;*/ 639 | border: 1px solid #ccc; 640 | padding: 10px 14px; 641 | border-radius: 180px; 642 | } 643 | .pagination .pagination-down{ 644 | position: absolute; 645 | right: 0; 646 | top: -10px; 647 | /*padding: 2px 0 10px 15px;*/ 648 | border: 1px solid #ccc; 649 | padding: 10px 14px; 650 | border-radius: 180px; 651 | } 652 | .pagination-text{ 653 | font-size: 14pt; 654 | color: #999; 655 | font-weight: 200; 656 | } 657 | /*.pagination-text:before{ 658 | color: #999; 659 | font-weight: 200; 660 | }*/ 661 | .pagination-text:visited, 662 | .pagination-text:link{ 663 | color: #999; 664 | } 665 | .pagination-number{ 666 | font-size: 10pt; 667 | color: #999; 668 | font-weight: 200; 669 | } 670 | /* Tyepcho的样式 */ 671 | .page-navigator{ 672 | 673 | } 674 | .page-navigator>li{ 675 | display: inline-block; 676 | } 677 | .page-navigator>li>a{ 678 | padding: 10px 10px; 679 | color: #999; 680 | font-size: 11pt; 681 | } 682 | .page-navigator>li>span{ 683 | color: #999; 684 | } 685 | .page-navigator>.next{ 686 | border: 1px solid #eee; 687 | border-radius: 180px; 688 | padding: 10px 6px; 689 | } 690 | .page-navigator>.next>a, 691 | .page-navigator>.prev>a{ 692 | font-size: 10pt; 693 | } 694 | .page-navigator>.prev{ 695 | border: 1px solid #eee; 696 | border-radius: 180px; 697 | padding: 10px 6px; 698 | } 699 | /*主页面分页模块结束*/ 700 | /*页面主体结束*/ 701 | /*文章页开始*/ 702 | /*文章页头部开始*/ 703 | .post-header{ 704 | padding: 50px 0; 705 | text-align: center; 706 | } 707 | .post-header>h2{ 708 | font-size: 35px; 709 | color: ##255; 710 | font-weight: 200; 711 | margin-bottom: 15px; 712 | } 713 | .post-header>time{ 714 | font-size: 9pt; 715 | color: #9eabb3; 716 | font-weight: 200; 717 | } 718 | /*文章页头部结束*/ 719 | .post-body-layout{ 720 | padding-bottom: 80px; 721 | } 722 | .post-layout{ 723 | padding-bottom: 30px; 724 | } 725 | .post-main{ 726 | width: 890px; 727 | margin: 0 auto; 728 | } 729 | /*文章页内容开始*/ 730 | .post-main-section{ 731 | font-size: 11.5pt; 732 | color: #555; 733 | line-height: 32px; 734 | text-align: justify; 735 | /*font-weight: 200;*/ 736 | /*border-bottom: 1px solid #e4dada;*/ 737 | margin-bottom: 15px; 738 | } 739 | .post-main-section p, ul, ol, pre, code, hr, img{ 740 | margin-bottom: 30px; 741 | } 742 | .post-main-section pre{ 743 | line-height: 24px; 744 | } 745 | .post-main-section code{ 746 | line-height: 24px; 747 | } 748 | .post-main-section ul{ 749 | margin-left: 18px; 750 | list-style: circle; 751 | list-style-position: inherit; 752 | } 753 | .post-main-section ul ul{ 754 | padding-left: 18px; 755 | list-style: circle; 756 | list-style-position: inherit; 757 | margin-bottom: 0; 758 | } 759 | .post-main-section ul ul li{ 760 | /*font-size: 11.5pt;*/ 761 | } 762 | .post-main-section>ul>li{ 763 | 764 | } 765 | .post-main-section mark{ 766 | background: none; 767 | color: #8eaef9; 768 | } 769 | .post-main-section ol{ 770 | list-style: decimal; 771 | list-style-position: inside; 772 | } 773 | .post-main-section ol ol{ 774 | padding-left: 24px; 775 | list-style: decimal; 776 | list-style-position: inside; 777 | margin-bottom: 0; 778 | } 779 | .post-main-section ol ol li{ 780 | /*font-size: 11pt;*/ 781 | } 782 | .post-main-section ol>li{ 783 | 784 | } 785 | .post-main-section hr{ 786 | 787 | } 788 | .post-main-section a{ 789 | color: #f55852; 790 | /*font-weight: 200;*/ 791 | padding: 0 4px; 792 | } 793 | .post-main-section a:hover{ 794 | color: #ff6efe; 795 | } 796 | /*@import url(https://fonts.googleapis.com/css?family=Roboto);*/ 797 | .post-main-section blockquote{ 798 | color:#cc9288; 799 | background-color: #f7f7f7; 800 | border-left: 6px solid #bbe3ff; 801 | /*padding: 1em 1.5em 1em 1.5em;*/ 802 | padding: 18px 32px; 803 | position: relative; 804 | font-family: 'Roboto', sans-serif; 805 | /*font-size: 11pt;*/ 806 | font-weight: 200; 807 | line-height: 30px; 808 | /*text-indent: 35px;*/ 809 | margin-bottom: 30px; 810 | } 811 | .post-main-section blockquote>p{ 812 | margin-bottom: 0; 813 | } 814 | .post-main-section blockquote:before { 815 | color: #9dbbaf; 816 | content: "\201C"; 817 | font-size: 5em; 818 | position:absolute; 819 | left: 6px; 820 | top: 35px; 821 | line-height: 0.1em; 822 | } 823 | .post-main-section blockquote:after { 824 | color: #9dbbaf; 825 | content: "\201D"; 826 | font-size: 5em; 827 | position:absolute; 828 | right: 6px; 829 | bottom: -4px; 830 | line-height: 0.1em; 831 | } 832 | .post-main-section hr{ 833 | border: 0; 834 | border-bottom: 2px solid #ccc; 835 | } 836 | .post-main-section img{ 837 | box-shadow: 0 2px 20px 5px rgba(0, 0, 0, 0.2); 838 | max-width: 100%; 839 | width: 100%; 840 | display: block; 841 | margin: 30px 0; 842 | } 843 | .post-main-section h1{ 844 | font-size: 25pt; 845 | font-weight: normal; 846 | color: #999; 847 | margin-top: 26px; 848 | margin-bottom: 30px; 849 | } 850 | .post-main-section h2{ 851 | font-size: 22pt; 852 | font-weight: normal; 853 | color: #999; 854 | margin-top: 22px; 855 | margin-bottom: 30px; 856 | } 857 | .post-main-section h3{ 858 | font-size: 19pt; 859 | font-weight: normal; 860 | color: #999; 861 | margin-top: 20px; 862 | margin-bottom: 30px; 863 | } 864 | .post-main-section h4{ 865 | font-size: 17pt; 866 | font-weight: normal; 867 | color: #999; 868 | margin-top: 14px; 869 | margin-bottom: 28px; 870 | } 871 | .post-main-section h5{ 872 | font-size: 15pt; 873 | font-weight: normal; 874 | color: #999; 875 | margin-top: 14px; 876 | margin-bottom: 26px; 877 | } 878 | .post-main-section h6{ 879 | font-size: 13pt; 880 | font-weight: normal; 881 | color: #999; 882 | margin-top: 14px; 883 | margin-bottom: 24px; 884 | } 885 | .post-main-section>h1:before, .post-main-section>h2:before, .post-main-section>h3:before, .post-main-section>h4:before, .post-main-section>h5:before, .post-main-section>h6:before{ 886 | content: "#"; 887 | color: #e8a6a6; 888 | margin-right: 8px; 889 | } 890 | .post-tags{ 891 | padding: 10px 0; 892 | font-size: 11pt; 893 | margin-top: 50px; 894 | } 895 | .post-tags>a{ 896 | font-size: 8.5pt; 897 | color: #999; 898 | padding: 4px 8px; 899 | background: #b3eaea; 900 | border-radius: 4px; 901 | margin-right: 4px; 902 | } 903 | .post-tags>a:hover{ 904 | color: #666; 905 | background: none; 906 | } 907 | .post-readmore{ 908 | display: table; 909 | /*margin-top: 15px;*/ 910 | width: 100%; 911 | border-top: 1px solid #eee; 912 | } 913 | .post-readmore .post-readmore-left, 914 | .post-readmore .post-readmore-right{ 915 | display: table-cell; 916 | padding: 15px 0 0 0; 917 | width: 45%; 918 | vertical-align: top; 919 | /*overflow: hidden;*/ 920 | white-space: nowrap; 921 | } 922 | .post-readmore .post-readmore-right{ 923 | text-align: right; 924 | } 925 | .post-readmore .post-readmore-left>a, 926 | .post-readmore .post-readmore-right>a{ 927 | font-size: 11pt; 928 | color: #999; 929 | } 930 | .post-readmore .post-readmore-center{ 931 | width: 10%; 932 | display: table-cell; 933 | } 934 | .post-readmore-text{ 935 | display: none; 936 | } 937 | .post-readmore-min{ 938 | border-top: 1px solid #eee; 939 | padding-top: 6px; 940 | display: none; 941 | } 942 | .post-readmore-min-up, 943 | .post-readmore-min-down{ 944 | padding: 4px 0; 945 | font-size: 11pt; 946 | color: #666; 947 | } 948 | .post-readmore-min-up>a, 949 | .post-readmore-min-down>a{ 950 | font-size: 11pt; 951 | color: #999; 952 | } 953 | /*文章页内容结束*/ 954 | /*评论模板开始*/ 955 | .post-comments{ 956 | padding-top: 50px; 957 | } 958 | .post-comments-btn{ 959 | display: block; 960 | width: 100%; 961 | padding: 10px 0; 962 | margin-bottom: 15px; 963 | text-align: center; 964 | font-size: 13pt; 965 | font-weight: 200; 966 | border: 1px solid #eee; 967 | border-radius: 180px; 968 | cursor: url(../images/pointer.cur),pointer; 969 | } 970 | .post-comments-script{ 971 | /*display: none;*/ 972 | } 973 | /*TYPECHO评论样式开始*/ 974 | #comment-form{ 975 | 976 | } 977 | .comments-info-box{ 978 | width: 100%; 979 | } 980 | .comments-info-box>input{ 981 | width: 31.5%; 982 | padding: 6px 4px; 983 | margin: 0px 1.3px; 984 | background: none; 985 | border: 1px solid #eee; 986 | border-radius: 4px; 987 | font-size: 9pt; 988 | color: #ccc; 989 | } 990 | input{ 991 | outline-color: #eee; 992 | } 993 | textarea{ 994 | outline-color: #eee; 995 | } 996 | .comments-text{ 997 | padding-top: 10px; 998 | width: 100%; 999 | } 1000 | .comments-text>textarea{ 1001 | display: inline-block; 1002 | width: 876px; 1003 | margin: 0; 1004 | padding: 6px; 1005 | resize: none; 1006 | background: none; 1007 | border: 1px solid #eee; 1008 | border-radius: 4px; 1009 | } 1010 | .comments-text>textarea, 1011 | .comments-submit>button{ 1012 | font-size: 9pt; 1013 | color: #999; 1014 | font-family: 'STHeiti Light','Microsoft YaHei','SimHei','Microsoft JhengHei','Microsoft YaHei','Mirages Custom','Merriweather','Open Sans',"PingFang SC",'Hiragino Sans GB','Microsoft Yahei','WenQuanYi Micro Hei','Segoe UI Emoji','Segoe UI Symbol',Helvetica,Arial,sans-serif 1015 | } 1016 | .comments-submit{ 1017 | width: 100%; 1018 | margin-top: 10px; 1019 | } 1020 | .comments-submit>button{ 1021 | width: 100%; 1022 | padding: 8px; 1023 | background: #fafafa; 1024 | border: 1px solid #eee; 1025 | border-radius: 4px; 1026 | cursor: url(../images/pointer.cur),pointer; 1027 | outline: none; 1028 | } 1029 | /*评论列表*/ 1030 | .comments-number{ 1031 | border-bottom: 1px dashed #eee; 1032 | color: #999; 1033 | font-size: 11pt; 1034 | padding-bottom: 2px; 1035 | } 1036 | .response{ 1037 | display: inline-block; 1038 | padding: 8px 0; 1039 | color: #666; 1040 | font-size: 11pt; 1041 | } 1042 | .comment-list{ 1043 | 1044 | } 1045 | .comment-list>li{ 1046 | margin-bottom: 10px; 1047 | } 1048 | .comment-children{ 1049 | padding-left: 20px; 1050 | margin-top: 8px; 1051 | } 1052 | .comment-author{ 1053 | float: left; 1054 | } 1055 | .comments-img{ 1056 | width: 48px; 1057 | height: 48px; 1058 | display: block; 1059 | overflow: hidden; 1060 | border-radius: 6px; 1061 | border: 2px solid #eee; 1062 | float: left; 1063 | } 1064 | .comments-img>img{ 1065 | width: 100%; 1066 | height: 100%; 1067 | } 1068 | .comment-main{ 1069 | float: left; 1070 | padding-left: 8px; 1071 | } 1072 | .comment-meta{ 1073 | padding: 0; 1074 | font-size: 9pt; 1075 | color: #eee; 1076 | } 1077 | .comment-meta-info{ 1078 | 1079 | } 1080 | .comment-meta-info>span>a, 1081 | .comment-author{ 1082 | font-size: 10pt; 1083 | color: #555; 1084 | } 1085 | .comment-meta-info>time{ 1086 | display: inline-block; 1087 | font-size: 8pt; 1088 | color: #ccc; 1089 | padding-left: 6px; 1090 | padding-top: 2px; 1091 | } 1092 | .comment-meta-content{ 1093 | padding: 6px 0; 1094 | font-size: 10pt; 1095 | color: #666; 1096 | } 1097 | .comment-reply{ 1098 | display: inline-block; 1099 | font-size: 9pt; 1100 | color: #666; 1101 | margin-top: 8px; 1102 | } 1103 | /*TYPECHO评论样式结束*/ 1104 | /*评论模板结束*/ 1105 | /*文章页打赏模块开始*/ 1106 | .post-donate{ 1107 | position: fixed; 1108 | bottom: -265px; 1109 | width: 100%; 1110 | height: 265px; 1111 | background: #fff; 1112 | z-index: 97; 1113 | box-shadow: 0 0 5px 0 rgba(0,0,0,0.1); 1114 | -webkit-transition: all .6s; 1115 | -moz-transition: all .6s; 1116 | -ms-transition: all .6s; 1117 | -o-transition: all .6s; 1118 | } 1119 | .post-donate-btn{ 1120 | position: absolute; 1121 | top: -30px; 1122 | /*left: 50%;*/ 1123 | width: 80px; 1124 | height: 80px; 1125 | background-color: #fff; 1126 | border-radius: 180px; 1127 | box-shadow: 0 0 4px 1px rgba(255, 0, 0, 0.1); 1128 | cursor: url(../images/pointer.cur),pointer; 1129 | z-index: 97; 1130 | -webkit-transition: all .6s; 1131 | -moz-transition: all .6s; 1132 | -ms-transition: all .6s; 1133 | -o-transition: all .6s; 1134 | } 1135 | .post-donate-btn>i{ 1136 | position: absolute; 1137 | top: 6px; 1138 | left: 35px; 1139 | font-size: 16px; 1140 | } 1141 | .post-donate-btn>.post-donate-btn-chinese{ 1142 | position: absolute; 1143 | top: 6px; 1144 | left: 33px; 1145 | color: #999; 1146 | font-size: 11pt; 1147 | font-style: normal; 1148 | } 1149 | .post-donate-open{ 1150 | bottom: 0px; 1151 | } 1152 | .post-donate-box{ 1153 | position: absolute; 1154 | top: 0; 1155 | bottom: 0; 1156 | width: 890px; 1157 | z-index: 996; 1158 | background: #fff; 1159 | padding: 30px 0; 1160 | background: #fff; 1161 | } 1162 | .post-donate-box>p{ 1163 | text-align: center; 1164 | font-size: 18px; 1165 | font-weight: 200; 1166 | color: #666; 1167 | } 1168 | .post-donate-box-main{ 1169 | width: 100%; 1170 | height: 150px; 1171 | padding-top: 15px; 1172 | text-align: center; 1173 | font-weight: 200; 1174 | color: #999; 1175 | } 1176 | .post-donate-alipay-box{ 1177 | width: 280px; 1178 | height: 100%; 1179 | float: left; 1180 | } 1181 | .post-donate-alipay{ 1182 | width: 150px; 1183 | height: 150px; 1184 | margin: 0 auto; 1185 | padding-top: 5px; 1186 | } 1187 | .post-donate-alipay>img{ 1188 | width: 100%; 1189 | height: 100%; 1190 | } 1191 | .post-donate-weixin-box{ 1192 | width: 280px; 1193 | height: 100%; 1194 | float: left; 1195 | } 1196 | .post-donate-weixin{ 1197 | width: 150px; 1198 | height: 150px; 1199 | margin: 0 auto; 1200 | padding-top: 5px; 1201 | } 1202 | .post-donate-weixin>img{ 1203 | width: 100%; 1204 | height: 100%; 1205 | } 1206 | .post-donate-qq-box{ 1207 | width: 290px; 1208 | height: 100%; 1209 | float: left; 1210 | } 1211 | .post-donate-qq{ 1212 | width: 150px; 1213 | height: 150px; 1214 | margin: 0 auto; 1215 | padding-top: 5px; 1216 | } 1217 | .post-donate-qq>img{ 1218 | width: 100%; 1219 | height: 100%; 1220 | } 1221 | /*文章页打赏模块结束*/ 1222 | /*文章页结束*/ 1223 | /*自定义页面开始*/ 1224 | /*自定义标签云页面开始*/ 1225 | .tags-page-section{ 1226 | } 1227 | .tags-page-section>a{ 1228 | display: inline-block; 1229 | padding: 4px 8px; 1230 | margin: 4px; 1231 | background: #fd9191; 1232 | color: #fff; 1233 | font-size: 11pt; 1234 | font-weight: 200; 1235 | border-radius: 6px; 1236 | } 1237 | .tags-page-section>a:hover{ 1238 | background: none; 1239 | color: #666; 1240 | } 1241 | /*自定义标签云页面结束*/ 1242 | /*自定义关于页面开始*/ 1243 | /*自定义关于页面结束*/ 1244 | /*自定义友链页面开始*/ 1245 | .links-page-section{ 1246 | font-size: 12pt; 1247 | color: #666; 1248 | line-height: 32px; 1249 | } 1250 | .links-page-section>p{ 1251 | margin-bottom: 25px; 1252 | } 1253 | .links-page-section .links-btn{ 1254 | display: block; 1255 | width: 30%; 1256 | padding-bottom: 15px; 1257 | margin: 14.8px; 1258 | float: left; 1259 | font-size: 17pt; 1260 | font-weight: 200; 1261 | color: #666; 1262 | text-align: center; 1263 | background: #fff; 1264 | box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 1265 | -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 1266 | -webkit-transform: translateY(-0.25rem); 1267 | transform: translateY(-0.25rem); 1268 | -moz-transform: none; 1269 | } 1270 | .links-page-section .links-btn:hover, 1271 | .links-page-section .links2-btn:hover{ 1272 | box-shadow: 0 0 1px 1px rgba(0,0,0,0.1); 1273 | -webkit-box-shadow: 0 0 1px 1px rgba(0,0,0,0.1); 1274 | -moz-box-shadow: 0 0 1px 1px rgba(0,0,0,0.1); 1275 | } 1276 | .links-page-section .links-btn>img{ 1277 | width: 267px; 1278 | height: 267px; 1279 | margin: 0; 1280 | margin-bottom: 10px; 1281 | } 1282 | .links-page-section .links2-btn{ 1283 | display: block; 1284 | width: 30%; 1285 | margin: 14.8px; 1286 | padding: 10px 0; 1287 | float: left; 1288 | font-size: 14pt; 1289 | font-weight: 200; 1290 | color: #666; 1291 | text-align: center; 1292 | background: #fff; 1293 | box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); 1294 | -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 1295 | -webkit-transform: translateY(-0.25rem); 1296 | transform: translateY(-0.25rem); 1297 | -moz-transform: none; 1298 | } 1299 | .links-page-section h1{ 1300 | font-size: 25pt; 1301 | font-weight: normal; 1302 | color: #999; 1303 | margin-top: 26px; 1304 | margin-bottom: 30px; 1305 | } 1306 | .links-page-section h2{ 1307 | font-size: 22pt; 1308 | font-weight: normal; 1309 | color: #999; 1310 | margin-top: 22px; 1311 | margin-bottom: 30px; 1312 | } 1313 | .links-page-section h3{ 1314 | font-size: 19pt; 1315 | font-weight: normal; 1316 | color: #999; 1317 | margin-top: 20px; 1318 | margin-bottom: 30px; 1319 | } 1320 | .links-page-section h4{ 1321 | font-size: 17pt; 1322 | font-weight: normal; 1323 | color: #999; 1324 | margin-top: 14px; 1325 | margin-bottom: 28px; 1326 | } 1327 | .links-page-section h5{ 1328 | font-size: 15pt; 1329 | font-weight: normal; 1330 | color: #999; 1331 | margin-top: 14px; 1332 | margin-bottom: 26px; 1333 | } 1334 | .links-page-section h6{ 1335 | font-size: 13pt; 1336 | font-weight: normal; 1337 | color: #999; 1338 | margin-top: 14px; 1339 | margin-bottom: 24px; 1340 | } 1341 | /*自定义友链页面结束*/ 1342 | /*Typecho归档页模板开始*/ 1343 | .archive-page-section{ 1344 | 1345 | } 1346 | .archive-page-section>h2{ 1347 | font-weight: 200; 1348 | font-size: 30px; 1349 | margin-bottom: 25px; 1350 | color: #255; 1351 | } 1352 | .archive-page-section .archive-categories{ 1353 | 1354 | } 1355 | .archive-categories>ul{ 1356 | margin: 0; 1357 | padding: 0; 1358 | padding-top: 45px; 1359 | padding-left: 16px; 1360 | border-left: 2px solid #bdbedc; 1361 | float: left; 1362 | width: 60%; 1363 | } 1364 | .archive-categories h3{ 1365 | font-weight: 200; 1366 | font-size: 15pt; 1367 | padding: 10px 0; 1368 | padding-right: 10px; 1369 | color: #777; 1370 | float: left; 1371 | width: 20%; 1372 | text-align: right; 1373 | } 1374 | .archive-categories>ul>li{ 1375 | position: relative; 1376 | line-height: 38px; 1377 | font-size: 11.5pt; 1378 | color: #bfa3a3; 1379 | text-align: justify; 1380 | } 1381 | .archive-categories>ul>li>a{ 1382 | font-size: 11.5pt; 1383 | color: #555; 1384 | text-align: justify; 1385 | } 1386 | .archive-categories>ul>li:before{ 1387 | content: " "; 1388 | width: 6px; 1389 | height: 6px; 1390 | border: 1px solid #bdbedc; 1391 | background: #bdbedc; 1392 | border-radius: 180px; 1393 | position: absolute; 1394 | top: 15px; 1395 | left: -21px; 1396 | } 1397 | .archive-tags{ 1398 | padding-top: 70px; 1399 | } 1400 | .archive-tags>a{ 1401 | display: inline-block; 1402 | padding: 4px 8px; 1403 | margin: 4px; 1404 | color: #fff; 1405 | font-size: 11pt; 1406 | font-weight: 200; 1407 | border-radius: 6px; 1408 | } 1409 | /*Typecho归档页模板结束*/ 1410 | /*自定义页面结束*/ 1411 | /*页面底部开始*/ 1412 | .page-footer{ 1413 | padding: 50px 0; 1414 | /*background: #fafafa;*/ 1415 | text-align: center; 1416 | font-size: 12px; 1417 | color: #999; 1418 | line-height: 20px; 1419 | } 1420 | .page-footer a, 1421 | .page-footer a:link, 1422 | .page-footer a:visited{ 1423 | /*lor: #3b85c7;*/ 1424 | color: #888; 1425 | } 1426 | /*页面底部结束*/ 1427 | 1428 | 1429 | 1430 | 1431 | 1432 | 1433 | 1434 | 1435 | 1436 | 1437 | 1438 | 1439 | 1440 | 1441 | 1442 | 1443 | 1444 | 1445 | 1446 | 1447 | 1448 | 1449 | 1450 | 1451 | 1452 | 1453 | 1454 | 1455 | 1456 | 1457 | 1458 | 1459 | 1460 | 1461 | 1462 | 1463 | 1464 | 1465 | 1466 | 1467 | 1468 | 1469 | 1470 | 1471 | 1472 | 1473 | 1474 | 1475 | 1476 | /*页面加载动画开始*/ 1477 | .page-loading{ 1478 | position: fixed; 1479 | top: 0; 1480 | left: 0; 1481 | width: 100%; 1482 | height: 100%; 1483 | z-index: 1000; 1484 | background: #fff; 1485 | } 1486 | .page-loading-main{ 1487 | width: 80px; 1488 | height: 80px; 1489 | position: absolute; 1490 | } 1491 | .page-loading-one, .page-loading-two{ 1492 | width: 100%; 1493 | height: 100%; 1494 | border-radius: 50%; 1495 | /*background-color: #5998e6;*/ 1496 | opacity: 0.6; 1497 | position: absolute; 1498 | top: 0; 1499 | left: 0; 1500 | -webkit-animation: bounce 2.0s infinite ease-in-out; 1501 | animation: bounce 2.0s infinite ease-in-out; 1502 | } 1503 | .page-loading-two{ 1504 | /*background-color: #b3f788;*/ 1505 | } 1506 | .page-loading-two{ 1507 | -webkit-animation-delay: -1.0s; 1508 | animation-delay: -1.0s; 1509 | } 1510 | @-webkit-keyframes bounce{ 1511 | 0%, 100% { -webkit-transform: scale(0.0) } 1512 | 50% { -webkit-transform: scale(1.0) } 1513 | } 1514 | @keyframes bounce{ 1515 | 0%, 100% { 1516 | transform: scale(0.0); 1517 | -webkit-transform: scale(0.0); 1518 | } 50%{ 1519 | transform: scale(1.0); 1520 | -webkit-transform: scale(1.0); 1521 | } 1522 | } 1523 | /*页面加载动画结束*/ 1524 | /*动画开始*/ 1525 | .animated { 1526 | -webkit-animation-duration: 1s; 1527 | animation-duration: 1s; 1528 | -webkit-animation-fill-mode: both; 1529 | animation-fill-mode: both 1530 | } 1531 | 1532 | .animated.infinite { 1533 | -webkit-animation-iteration-count: infinite; 1534 | animation-iteration-count: infinite 1535 | } 1536 | 1537 | .animated.hinge { 1538 | -webkit-animation-duration: 2s; 1539 | animation-duration: 2s 1540 | } 1541 | @-webkit-keyframes animation-down { 1542 | 0% { 1543 | opacity: 0; 1544 | -webkit-transform: translateY(-30px); 1545 | transform: translateY(-30px) 1546 | } 1547 | 1548 | 100% { 1549 | opacity: 1; 1550 | -webkit-transform: translateY(0); 1551 | transform: translateY(0) 1552 | } 1553 | } 1554 | 1555 | @keyframes animation-down { 1556 | 0% { 1557 | opacity: 0; 1558 | -webkit-transform: translateY(-30px); 1559 | -ms-transform: translateY(-30px); 1560 | transform: translateY(-30px) 1561 | } 1562 | 1563 | 100% { 1564 | opacity: 1; 1565 | -webkit-transform: translateY(0); 1566 | -ms-transform: translateY(0); 1567 | transform: translateY(0) 1568 | } 1569 | } 1570 | 1571 | .animation-down { 1572 | -webkit-animation-name: animation-down; 1573 | animation-name: animation-down 1574 | } 1575 | 1576 | @-webkit-keyframes animation-up { 1577 | 0% { 1578 | opacity: 0; 1579 | -webkit-transform: translateY(30px); 1580 | transform: translateY(30px) 1581 | } 1582 | 1583 | 100% { 1584 | opacity: 1; 1585 | -webkit-transform: translateY(0); 1586 | transform: translateY(0) 1587 | } 1588 | } 1589 | 1590 | @keyframes animation-up { 1591 | 0% { 1592 | opacity: 0; 1593 | -webkit-transform: translateY(30px); 1594 | -ms-transform: translateY(30px); 1595 | transform: translateY(30px) 1596 | } 1597 | 1598 | 100% { 1599 | opacity: 1; 1600 | -webkit-transform: translateY(0); 1601 | -ms-transform: translateY(0); 1602 | transform: translateY(0) 1603 | } 1604 | } 1605 | 1606 | .animation-up { 1607 | -webkit-animation-name: animation-up; 1608 | animation-name: animation-up 1609 | } 1610 | 1611 | @-webkit-keyframes animation-in { 1612 | 0% { 1613 | opacity: 0 1614 | } 1615 | 1616 | 100% { 1617 | opacity: 1 1618 | } 1619 | } 1620 | 1621 | @keyframes animation-in { 1622 | 0% { 1623 | opacity: 0 1624 | } 1625 | 1626 | 100% { 1627 | opacity: 1 1628 | } 1629 | } 1630 | 1631 | .animation-in { 1632 | -webkit-animation-name: animation-in; 1633 | animation-name: animation-in 1634 | } 1635 | @-webkit-keyframes animation-Left { 1636 | from { 1637 | opacity: 0; 1638 | -webkit-transform: translate3d(-50px, 0, 0); 1639 | transform: translate3d(-50px, 0, 0); 1640 | } 1641 | 1642 | to { 1643 | opacity: 1; 1644 | -webkit-transform: none; 1645 | transform: none; 1646 | } 1647 | } 1648 | 1649 | @keyframes animation-Left { 1650 | from { 1651 | opacity: 0; 1652 | -webkit-transform: translate3d(-50px, 0, 0); 1653 | transform: translate3d(-50px, 0, 0); 1654 | } 1655 | 1656 | to { 1657 | opacity: 1; 1658 | -webkit-transform: none; 1659 | transform: none; 1660 | } 1661 | } 1662 | 1663 | .animation-Left { 1664 | -webkit-animation-name: animation-Left; 1665 | animation-name: animation-Left; 1666 | } 1667 | @-webkit-keyframes animation-Right { 1668 | from { 1669 | opacity: 0; 1670 | -webkit-transform: translate3d(50px, 0, 0); 1671 | transform: translate3d(50px, 0, 0); 1672 | } 1673 | 1674 | to { 1675 | opacity: 1; 1676 | -webkit-transform: none; 1677 | transform: none; 1678 | } 1679 | } 1680 | 1681 | @keyframes animation-Right { 1682 | from { 1683 | opacity: 0; 1684 | -webkit-transform: translate3d(50px, 0, 0); 1685 | transform: translate3d(50px, 0, 0); 1686 | } 1687 | 1688 | to { 1689 | opacity: 1; 1690 | -webkit-transform: none; 1691 | transform: none; 1692 | } 1693 | } 1694 | 1695 | .animation-Right { 1696 | -webkit-animation-name: animation-Right; 1697 | animation-name: animation-Right; 1698 | } 1699 | /*chrome滚动条样式开始*/ 1700 | ::-webkit-scrollbar { 1701 | height: 10px; 1702 | width: 3px 1703 | } 1704 | ::-webkit-scrollbar-button { 1705 | height: 0; 1706 | width: 0 1707 | } 1708 | ::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment { 1709 | display: block 1710 | } 1711 | ::-webkit-scrollbar-button:vertical:start:increment,::-webkit-scrollbar-button:vertical:end:decrement { 1712 | display: none 1713 | } 1714 | ::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal,::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal { 1715 | border-style: solid; 1716 | border-color: transparent 1717 | } 1718 | ::-webkit-scrollbar-track:vertical::-webkit-scrollbar-track:horizontal { 1719 | background-clip: padding-box; 1720 | background-color: #fff 1721 | } 1722 | ::-webkit-scrollbar-thumb { 1723 | -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07); 1724 | background-clip: padding-box; 1725 | background-color: rgba(0,0,0,.4); 1726 | min-height: 40px; 1727 | padding-top: 100px; 1728 | border-radius: 180px 1729 | } 1730 | ::-webkit-scrollbar-thumb:hover { 1731 | -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25); 1732 | background-color: rgba(0,0,0,.4) 1733 | } 1734 | ::-webkit-scrollbar-thumb:active { 1735 | -webkit-box-shadow: inset 1px 1px 3px rgba(0,0,0,.35); 1736 | background-color: rgba(0,0,0,.5) 1737 | } 1738 | ::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal { 1739 | border-width: 0 1740 | } 1741 | ::-webkit-scrollbar-track:hover { 1742 | -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1); 1743 | background-color: rgba(0,0,0,.05) 1744 | } 1745 | ::-webkit-scrollbar-track:active { 1746 | -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.14),inset -1px -1px 0 rgba(0,0,0,.07); 1747 | background-color: rgba(0,0,0,.05) 1748 | } 1749 | /*chrome滚动条样式结束*/ 1750 | -------------------------------------------------------------------------------- /js/highlight.pack.js: -------------------------------------------------------------------------------- 1 | /*! highlight.js v9.8.0 | BSD3 License | git.io/hljslicense */ 2 | !function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return n.hljs}))}(function(e){function n(e){return e.replace(/[&<>]/gm,function(e){return I[e]})}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0===t.index}function a(e){return k.test(e)}function i(e){var n,t,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",t=B.exec(o))return R(t[1])?t[1]:"no-highlight";for(o=o.split(/\s+/),n=0,r=o.length;r>n;n++)if(i=o[n],a(i)||R(i))return i}function o(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3===i.nodeType?a+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function c(e,r,a){function i(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset<r[0].offset?e:r:"start"===r[0].event?e:r:e.length?e:r}function o(e){function r(e){return" "+e.nodeName+'="'+n(e.value)+'"'}l+="<"+t(e)+w.map.call(e.attributes,r).join("")+">"}function u(e){l+="</"+t(e)+">"}function c(e){("start"===e.event?o:u)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g===e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g===e&&g.length&&g[0].offset===s);f.reverse().forEach(o)}else"start"===g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return l+n(a.substr(s))}function s(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var u={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");u[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):E(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u}a.lR=t(a.l||/\w+/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),null==a.r&&(a.r=1),a.c||(a.c=[]);var s=[];a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(o(e,n))}):s.push("self"===e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function l(e,t,a,i){function o(e,n){var t,a;for(t=0,a=n.c.length;a>t;t++)if(r(n.c[t].bR,e))return n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function c(e,n){return!a&&r(n.iR,e)}function g(e,n){var t=N.cI?n[0].toLowerCase():n[0];return e.k.hasOwnProperty(t)&&e.k[t]}function h(e,n,t,r){var a=r?"":y.classPrefix,i='<span class="'+a,o=t?"":C;return i+=e+'">',i+n+o}function p(){var e,t,r,a;if(!E.k)return n(B);for(a="",t=0,E.lR.lastIndex=0,r=E.lR.exec(B);r;)a+=n(B.substr(t,r.index-t)),e=g(E,r),e?(M+=e[1],a+=h(e[0],n(r[0]))):a+=n(r[0]),t=E.lR.lastIndex,r=E.lR.exec(B);return a+n(B.substr(t))}function d(){var e="string"==typeof E.sL;if(e&&!x[E.sL])return n(B);var t=e?l(E.sL,B,!0,L[E.sL]):f(B,E.sL.length?E.sL:void 0);return E.r>0&&(M+=t.r),e&&(L[E.sL]=t.top),h(t.language,t.value,!1,!0)}function b(){k+=null!=E.sL?d():p(),B=""}function v(e){k+=e.cN?h(e.cN,"",!0):"",E=Object.create(e,{parent:{value:E}})}function m(e,n){if(B+=e,null==n)return b(),0;var t=o(n,E);if(t)return t.skip?B+=n:(t.eB&&(B+=n),b(),t.rB||t.eB||(B=n)),v(t,n),t.rB?0:n.length;var r=u(E,n);if(r){var a=E;a.skip?B+=n:(a.rE||a.eE||(B+=n),b(),a.eE&&(B=n));do E.cN&&(k+=C),E.skip||(M+=E.r),E=E.parent;while(E!==r.parent);return r.starts&&v(r.starts,""),a.rE?0:n.length}if(c(n,E))throw new Error('Illegal lexeme "'+n+'" for mode "'+(E.cN||"<unnamed>")+'"');return B+=n,n.length||1}var N=R(e);if(!N)throw new Error('Unknown language: "'+e+'"');s(N);var w,E=i||N,L={},k="";for(w=E;w!==N;w=w.parent)w.cN&&(k=h(w.cN,"",!0)+k);var B="",M=0;try{for(var I,j,O=0;;){if(E.t.lastIndex=O,I=E.t.exec(t),!I)break;j=m(t.substr(O,I.index-O),I[0]),O=I.index+j}for(m(t.substr(O)),w=E;w.parent;w=w.parent)w.cN&&(k+=C);return{r:M,value:k,language:e,top:E}}catch(T){if(T.message&&-1!==T.message.indexOf("Illegal"))return{r:0,value:n(t)};throw T}}function f(e,t){t=t||y.languages||E(x);var r={r:0,value:n(e)},a=r;return t.filter(R).forEach(function(n){var t=l(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}),a.language&&(r.second_best=a),r}function g(e){return y.tabReplace||y.useBR?e.replace(M,function(e,n){return y.useBR&&"\n"===e?"<br>":y.tabReplace?n.replace(/\t/g,y.tabReplace):void 0}):e}function h(e,n,t){var r=n?L[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function p(e){var n,t,r,o,s,p=i(e);a(p)||(y.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):n=e,s=n.textContent,r=p?l(p,s,!0):f(s),t=u(n),t.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=r.value,r.value=c(t,u(o),s)),r.value=g(r.value),e.innerHTML=r.value,e.className=h(e.className,p,r.language),e.result={language:r.language,re:r.r},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.r}))}function d(e){y=o(y,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");w.forEach.call(e,p)}}function v(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function m(n,t){var r=x[n]=t(e);r.aliases&&r.aliases.forEach(function(e){L[e]=n})}function N(){return E(x)}function R(e){return e=(e||"").toLowerCase(),x[e]||x[L[e]]}var w=[],E=Object.keys,x={},L={},k=/^(no-?highlight|plain|text)$/i,B=/\blang(?:uage)?-([\w-]+)\b/i,M=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,C="</span>",y={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},I={"&":"&","<":"<",">":">"};return e.highlight=l,e.highlightAuto=f,e.fixMarkup=g,e.highlightBlock=p,e.configure=d,e.initHighlighting=b,e.initHighlightingOnLoad=v,e.registerLanguage=m,e.listLanguages=N,e.getLanguage=R,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*#]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",e:/;/,eW:!0,l:/[\w\.]+/,k:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}});hljs.registerLanguage("coffeescript",function(e){var c={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={cN:"subst",b:/#\{/,e:/}/,k:c},s=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,r]},{b:/"/,e:/"/,c:[e.BE,r]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[r,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{b:"@"+n},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}];r.c=s;var i=e.inherit(e.TM,{b:n}),t="(\\(.*\\))?\\s*\\B[-=]>",o={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:c,c:["self"].concat(s)}]};return{aliases:["coffee","cson","iced"],k:c,i:/\/\*/,c:s.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+t,e:"[-=]>",rB:!0,c:[i,o]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:t,e:"[-=]>",rB:!0,c:[o]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{b:n+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("python",function(e){var r={cN:"meta",b:/^(>>>|\.\.\.) /},b={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[r],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[r],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},a={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},l={cN:"params",b:/\(/,e:/\)/,c:["self",r,a,b]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)|=>/,c:[r,a,b,e.HCM,{v:[{cN:"function",bK:"def"},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,l,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("scss",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",i={cN:"variable",b:"(\\$"+t+")\\b"},r={cN:"number",b:"#[0-9A-Fa-f]+"};({cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{eW:!0,eE:!0,c:[r,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"meta",b:"!important"}]}});return{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},i,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{b:":",e:";",c:[i,r,e.CSSNM,e.QSM,e.ASM,{cN:"meta",b:"!important"}]},{b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[i,e.QSM,e.ASM,r,e.CSSNM,{b:"\\s[A-Za-z0-9_.-]+",r:0}]}]}});hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"meta",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"comment",v:[{b:/Index: /,e:/$/},{b:/={3,}/,e:/$/},{b:/^\-{3}/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+{3}/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"addition",b:"^\\!",e:"$"}]}});hljs.registerLanguage("less",function(e){var r="[\\w-]+",t="("+r+"|@{"+r+"})",a=[],c=[],s=function(e){return{cN:"string",b:"~?"+e+".*?"+e}},b=function(e,r,t){return{cN:e,b:r,r:t}},n={b:"\\(",e:"\\)",c:c,r:0};c.push(e.CLCM,e.CBCM,s("'"),s('"'),e.CSSNM,{b:"(url|data-uri)\\(",starts:{cN:"string",e:"[\\)\\n]",eE:!0}},b("number","#[0-9A-Fa-f]+\\b"),n,b("variable","@@?"+r,10),b("variable","@{"+r+"}"),b("built_in","~?`[^`]*?`"),{cN:"attribute",b:r+"\\s*:",e:":",rB:!0,eE:!0},{cN:"meta",b:"!important"});var i=c.concat({b:"{",e:"}",c:a}),o={bK:"when",eW:!0,c:[{bK:"and not"}].concat(c)},u={b:t+"\\s*:",rB:!0,e:"[;}]",r:0,c:[{cN:"attribute",b:t,e:":",eE:!0,starts:{eW:!0,i:"[<=$]",r:0,c:c}}]},l={cN:"keyword",b:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{e:"[;{}]",rE:!0,c:c,r:0}},C={cN:"variable",v:[{b:"@"+r+"\\s*:",r:15},{b:"@"+r}],starts:{e:"[;}]",rE:!0,c:i}},p={v:[{b:"[\\.#:&\\[>]",e:"[;{}]"},{b:t,e:"{"}],rB:!0,rE:!0,i:"[<='$\"]",r:0,c:[e.CLCM,e.CBCM,o,b("keyword","all\\b"),b("variable","@{"+r+"}"),b("selector-tag",t+"%?",0),b("selector-id","#"+t),b("selector-class","\\."+t,0),b("selector-tag","&",0),{cN:"selector-attr",b:"\\[",e:"\\]"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"\\(",e:"\\)",c:i},{b:"!important"}]};return a.push(e.CLCM,e.CBCM,l,C,u,p),{cI:!0,i:"[=>'/<($\"]",c:a}});hljs.registerLanguage("nginx",function(e){var r={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},b={eW:!0,l:"[a-z/_]+",k:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,r],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[r]},{cN:"regexp",c:[e.BE,r],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},r]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s+{",rB:!0,e:"{",c:[{cN:"section",b:e.UIR}],r:0},{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"attribute",b:e.UIR,starts:b}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},c={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,t,c),{c:n,k:i,i:"\\S"}});hljs.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",r:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}});hljs.registerLanguage("javascript",function(e){var r="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},n={cN:"subst",b:"\\$\\{",e:"\\}",k:t,c:[]},c={cN:"string",b:"`",e:"`",c:[e.BE,n]};n.c=[e.ASM,e.QSM,c,a,e.RM];var s=n.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:t,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,c,e.CLCM,e.CBCM,a,{b:/[{,]\s*/,r:0,c:[{b:r+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:r,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+r+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:r},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:s}]}]},{b:/</,e:/(\/\w+|\w+\/)>/,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:r}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:s}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}});hljs.registerLanguage("ini",function(e){var b={cN:"string",c:[e.BE],v:[{b:"'''",e:"'''",r:10},{b:'"""',e:'"""',r:10},{b:'"',e:'"'},{b:"'",e:"'"}]};return{aliases:["toml"],cI:!0,i:/\S/,c:[e.C(";","$"),e.HCM,{cN:"section",b:/^\s*\[+/,e:/\]+/},{b:/^[a-z0-9\[\]_-]+\s*=\s*/,e:"$",rB:!0,c:[{cN:"attr",b:/[a-z0-9\[\]_-]+/},{b:/=/,eW:!0,r:0,c:[{cN:"literal",b:/\bon|off|true|false|yes|no\b/},{cN:"variable",v:[{b:/\$[\w\d"][\w\d_]*/},{b:/\$\{(.*?)}/}]},b,{cN:"number",b:/([\+\-]+)?[\d]+_[\d_]+/},e.NM]}]}]}});hljs.registerLanguage("cpp",function(t){var e={cN:"keyword",b:"\\b[a-z\\d_]*_t\\b"},r={cN:"string",v:[{b:'(u8?|U)?L?"',e:'"',i:"\\n",c:[t.BE]},{b:'(u8?|U)?R"',e:'"',c:[t.BE]},{b:"'\\\\?.",e:"'",i:"."}]},s={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],r:0},i={cN:"meta",b:/#\s*[a-z]+\b/,e:/$/,k:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},c:[{b:/\\\n/,r:0},t.inherit(r,{cN:"meta-string"}),{cN:"meta-string",b:"<",e:">",i:"\\n"},t.CLCM,t.CBCM]},a=t.IR+"\\s*\\(",c={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},n=[e,t.CLCM,t.CBCM,s,r];return{aliases:["c","cc","h","c++","h++","hpp"],k:c,i:"</",c:n.concat([i,{b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:c,c:["self",e]},{b:t.IR+"::",k:c},{v:[{b:/=/,e:/;/},{b:/\(/,e:/\)/},{bK:"new throw return else",e:/;/}],k:c,c:n.concat([{b:/\(/,e:/\)/,k:c,c:n.concat(["self"]),r:0}]),r:0},{cN:"function",b:"("+t.IR+"[\\*&\\s]+)+"+a,rB:!0,e:/[{;=]/,eE:!0,k:c,i:/[^\w\s\*&]/,c:[{b:a,rB:!0,c:[t.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:c,r:0,c:[t.CLCM,t.CBCM,r,s,e]},t.CLCM,t.CBCM,i]}]),exports:{preprocessor:i,strings:r,k:c}}});hljs.registerLanguage("xml",function(s){var e="[A-Za-z0-9\\._:-]+",t={eW:!0,i:/</,r:0,c:[{cN:"attr",b:e,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[t],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[t],starts:{e:"</script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}});hljs.registerLanguage("php",function(e){var c={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},i={cN:"meta",b:/<\?(php)?|\?>/},t={cN:"string",c:[e.BE,i],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},a={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.HCM,e.C("//","$",{c:[i]}),e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},i,{cN:"keyword",b:/\$this\b/},c,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",c,e.CBCM,t,a]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},t,a]}});hljs.registerLanguage("objectivec",function(e){var t={cN:"built_in",b:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},_={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],k:_,l:i,i:"</",c:[t,e.CLCM,e.CBCM,e.CNM,e.QSM,{cN:"string",v:[{b:'@"',e:'"',i:"\\n",c:[e.BE]},{b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"}]},{cN:"meta",b:"#",e:"$",c:[{cN:"meta-string",v:[{b:'"',e:'"'},{b:"<",e:">"}]}]},{cN:"class",b:"("+n.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:n,l:i,c:[e.UTM]},{b:"\\."+e.UIR,r:0}]}});hljs.registerLanguage("makefile",function(e){var a={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[a]}}},{cN:"section",b:/^[\w]+:\s*$/},{cN:"meta",b:/^\.PHONY:/,e:/$/,k:{"meta-keyword":".PHONY"},l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,a]}]}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:c,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}});hljs.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},s={b:"->{",e:"}"},n={v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},i=[e.BE,r,n],o=[n,e.HCM,e.C("^\\=\\w","\\=cut",{eW:!0}),s,{cN:"string",c:i,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"function",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",eE:!0,r:5,c:[e.TM]},{b:"-\\w\\b",r:0},{b:"^__DATA__$",e:"^__END__$",sL:"mojolicious",c:[{b:"^@@.*",e:"$",cN:"comment"}]}];return r.c=o,s.c=o,{aliases:["pl","pm"],l:/[\w\.]+/,k:t,c:o}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},s={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\._]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,s,a,t]}});hljs.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"</",c:[e.CLCM,e.CBCM,{cN:"string",v:[e.QSM,{b:"'",e:"[^\\\\]'"},{b:"`",e:"`"}]},{cN:"number",v:[{b:e.CNR+"[dflsi]",r:1},e.CNM]},{b:/:=/},{cN:"function",bK:"func",e:/\s*\{/,eE:!0,c:[e.TM,{cN:"params",b:/\(/,e:/\)/,k:t,i:/["']/}]}]}});hljs.registerLanguage("cs",function(e){var i={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while nameof add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},r={cN:"string",b:'@"',e:'"',c:[{b:'""'}]},t=e.inherit(r,{i:/\n/}),a={cN:"subst",b:"{",e:"}",k:i},n=e.inherit(a,{i:/\n/}),c={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,n]},s={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},a]},o=e.inherit(s,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},n]});a.c=[s,c,r,e.ASM,e.QSM,e.CNM,e.CBCM],n.c=[o,c,t,e.ASM,e.QSM,e.CNM,e.inherit(e.CBCM,{i:/\n/})];var l={v:[s,c,r,e.ASM,e.QSM]},b=e.IR+"(<"+e.IR+"(\\s*,\\s*"+e.IR+")*>)?(\\[\\])?";return{aliases:["csharp"],k:i,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:"<!--|-->"},{b:"</?",e:">"}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},l,e.CNM,{bK:"class interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+b+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:i,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:i,r:0,c:[l,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}});hljs.registerLanguage("java",function(e){var a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",t=a+"(<"+a+"(\\s*,\\s*"+a+")*>)?",r="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",s="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",c={cN:"number",b:s,r:0};return{aliases:["jsp"],k:r,i:/<\/|#/,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{b:/\w+@/,r:0},{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return else",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:r,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},c,{cN:"meta",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("ruby",function(e){var b="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},c={cN:"doctag",b:"@[A-Za-z]+"},a={b:"#<",e:">"},s=[e.C("#","$",{c:[c]}),e.C("^\\=begin","^\\=end",{c:[c],r:10}),e.C("^__END__","\\n$")],n={cN:"subst",b:"#\\{",e:"}",k:r},t={cN:"string",c:[e.BE,n],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{b:/<<(-?)\w+$/,e:/^\s*\w+$/}]},i={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:r},d=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(s)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:b}),i].concat(s)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":(?!\\s)",c:[t,{b:b}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:r},{b:"("+e.RSR+")\\s*",c:[a,{cN:"regexp",c:[e.BE,n],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(s),r:0}].concat(s);n.c=d,i.c=d;var l="[>?]>",o="[\\w#]+\\(\\w+\\):\\d+:\\d+>",w="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",u=[{b:/^\s*=>/,starts:{e:"$",c:d}},{cN:"meta",b:"^("+l+"|"+o+"|"+w+")",starts:{e:"$",c:d}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,i:/\/\*/,c:s.concat(u).concat(d)}});hljs.registerLanguage("apache",function(e){var r={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"section",b:"</?",e:">"},{cN:"attribute",b:/\w+/,r:0,k:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"meta",b:"\\s\\[",e:"\\]$"},{cN:"variable",b:"[\\$%]\\{",e:"\\}",c:["self",r]},r,e.QSM]}}],i:/\S/}}); --------------------------------------------------------------------------------