├── .gitignore
├── README.md
├── iLotus-jekyll
├── _config.yml
├── _layouts
│ ├── default.html
│ └── post.html
├── _posts
│ ├── 2011-12-02-markdown-roll.md
│ ├── 2012-01-11-test.md
│ ├── 2012-12-22-111test.md
│ ├── 2013-11-23-change.md
│ └── 2014-01-04-iLotus.md
├── archives.html
├── contact.html
├── feed.xml
├── index.html
├── links.html
├── sitemap.txt
├── sitemap.xml
└── static
│ ├── font
│ ├── PTSerif.woff
│ ├── PTSerifBold.woff
│ ├── PTSerifItalic.woff
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ └── fontawesome-webfont.woff
│ ├── iLotus2.js
│ ├── images
│ ├── 404.png
│ ├── load.gif
│ ├── logo.jpg
│ └── zhanxin.jpg
│ ├── js
│ ├── html5.js
│ ├── iLotus.js
│ ├── iLotus2.js
│ ├── jquery.js
│ ├── jquery.scrollTo.js
│ └── test.js
│ ├── prettify.js
│ └── style.css
└── iLotus-wp
├── 404.php
├── category.php
├── content.php
├── footer.php
├── functions.php
├── header.php
├── index.php
├── pluggable.php
├── screenshot.png
├── single-archives.php
├── single-category.php
├── single-contact.php
├── single-lab.php
├── single-link.php
├── single-tag.php
├── single.php
├── static
├── font
│ ├── PTSerif.woff
│ ├── PTSerifBold.woff
│ ├── PTSerifItalic.woff
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ └── fontawesome-webfont.woff
├── iLotus2.js
├── images
│ ├── 404.png
│ ├── load.gif
│ ├── logo.jpg
│ └── zhanxin.jpg
├── js
│ ├── html5.js
│ ├── iLotus.js
│ ├── iLotus2.js
│ ├── jquery.js
│ ├── jquery.scrollTo.js
│ └── test.js
├── prettify.js
├── single.php
└── style.css
├── style.css
└── tag.php
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .idea/
3 | .idea/scopes/scope_settings.xml
4 | .idea/workspace.xml
5 | .ipr
6 | .iws
7 | *~
8 | ~*
9 | *.diff
10 | *.patch
11 | *.bak
12 | .DS_Store
13 | Thumbs.db
14 | .project
15 | .*proj
16 | .svn/
17 | *.swp
18 | *.swo
19 | *.pyc
20 | *.pyo
21 | build
22 | node_modules
23 | _site
24 | sea-modules
25 | .cache
26 | iLotus-jekyll/_site
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # iLotus - 又一个简洁的博客主题
2 |
3 | 这个主题是我在 2012 年设计和开发出来的,感觉它的特点,就是写在这里的文字很有底气,耐看。整体风格简洁大方,功能简单。加分点:
4 |
5 | * 原先我是Wordpress的,所以它的源码是Wordpress主题;现在我又改成Jekyll主题;
6 | * iconfont,响应式设计,中文字体排版。
7 |
8 | 注:php 源码可能会有些兼容性问题,可以给我提 issuse。主题的[DEMO](http://template.zhanxin.info/iLotus/index.html),欢迎使用,但请保留底部版权。
9 |
10 | ## Wordpress 主题使用方法
11 |
12 | 1. ```git clone``` 源代码(或者直接下载);
13 | 2. 将```iLotus-wp```目录拷贝到```wp-content/themes```目录;
14 | 3. 登录后台,设置主题为```iLotus```即可。
15 |
16 | > 如果还有其他插件需求,可以提 issuse.
17 |
18 | ## Jekyll 主题使用方法
19 |
20 | 1. ```iLotus-jekyll```目录下运行```jekyll server```即可通过```localhost:4000```访问;
21 | 2. 可通过```_config.yml```文件修改或增加自定义内容;
22 | 3. 这里只给出了2个页面的定义样式(archives和contact),可以自己根据需求定义。
--------------------------------------------------------------------------------
/iLotus-jekyll/_config.yml:
--------------------------------------------------------------------------------
1 | # Where things are
2 | source: .
3 | destination: ./_site
4 | plugins_dir: ./_plugins
5 | layouts_dir: ./_layouts
6 | data_dir: ./_data
7 | includes_dir: ./_includes
8 | collections: null
9 |
10 | # Handling Reading
11 | safe: false
12 | include: [".htaccess"]
13 | exclude: []
14 | keep_files: [".git", ".svn"]
15 | encoding: "utf-8"
16 | markdown_ext: "markdown,mkdown,mkdn,mkd,md"
17 |
18 | # Filtering Content
19 | show_drafts: null
20 | limit_posts: 0
21 | future: true
22 | unpublished: false
23 |
24 | # Plugins
25 | whitelist: []
26 | gems: ["jekyll-paginate"]
27 |
28 | # Conversion
29 | markdown: kramdown
30 | highlighter: rouge
31 | lsi: false
32 | excerpt_separator: "\n\n"
33 | incremental: false
34 |
35 | # Serving
36 | detach: false
37 | port: 4000
38 | host: 127.0.0.1
39 | baseurl: "" # does not include hostname
40 |
41 | # Outputting
42 | permalink: date
43 | paginate: 8
44 | paginate_path: /page:num
45 | timezone: Asia/Shanghai
46 |
47 | quiet: false
48 | defaults: []
49 |
50 | # Markdown Processors
51 | kramdown:
52 | auto_ids: true
53 | footnote_nr: 1
54 | entity_output: as_char
55 | toc_levels: 1..6
56 | smart_quotes: lsquo,rsquo,ldquo,rdquo
57 | enable_coderay: false
58 |
59 | coderay:
60 | coderay_wrap: div
61 | coderay_line_numbers: inline
62 | coderay_line_number_start: 1
63 | coderay_tab_width: 4
64 | coderay_bold_every: 10
65 | coderay_css: style
66 |
67 | #iLotus configs
68 | iLotus:
69 | columns: 1
70 | begin: 2011
71 |
72 | #站点基础配置
73 | title: iLotus
74 | subTitle: Just another Jekyll blog.
75 | description: 这是 PIZn 的又一个博客,它是基于 Jekyll 搭建起来的。在这里,不仅仅是用来快速记录工作,学习,生活的一点一滴的地方,更是 PIZn 对 Jekyll 的学习和使用的一次有意义的实践。
76 | url: http://localhost:4000
77 | feed: /feed.xml
78 |
79 | #菜单配置
80 | nav:
81 | - text: 首页
82 | url: /index.html
83 | icon: icon-home
84 | class: home
85 | - text: 文章归档
86 | url: /archives.html
87 | icon: icon-reorder
88 | class: none
89 | - text: 关于我
90 | url: /contact.html
91 | icon: icon-envelope-alt
92 | class: none
93 | - text: 联系我
94 | url: http://www.zhanxin.info/contact.html
95 | icon: icon-heart
96 | class: none
97 | - text: 博客源代码
98 | url: https://github.com/pizn/iLotus
99 | icon: icon-github
100 | class: none
101 |
102 | page:
103 | - text: 文章分类
104 | url: /archives.html
105 | last: true
106 | - text: 友情链接
107 | url: /links.html
108 | last: true
109 | - text: 关于我
110 | url: /contact.html
111 | last: false
112 |
113 | author:
114 | name: PIZn
115 |
--------------------------------------------------------------------------------
/iLotus-jekyll/_layouts/default.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
13 | {% if page.title %}
14 | {{ page.title }}
15 | {% else %}
16 | {{ site.title }}
17 | {% endif %}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 | {% for link in site.nav %}
34 | {% assign active = nil %}
35 | {% assign homeClass = nil %}
36 | {% if page.url == link.url%}
37 | {% assign active = 'current' %}
38 | {% endif %}
39 | {% if link.class == 'home' %}
40 | {% assign homeClass = 'home ' %}
41 | {% endif %}
42 |
43 |
44 |
45 |
46 | {{ indicator }}
47 |
48 | {% endfor %}
49 |
50 |
51 |
52 | {{ content }}
53 |
54 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/iLotus-jekyll/_layouts/post.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 |
6 | Home
7 | >
8 | Archives
9 | >
10 | {{ page.title }}
11 |
12 | {{ page.title }}
13 | Publish: {{ page.date | date: "%B %e, %Y" }}
14 |
15 | {{ content }}
16 |
17 | 声明: 本文采用 BY-NC-SA 授权。转载请注明转自: {{ site.author.name }}
18 |
19 | {% if page.previous %}
20 |
21 | {% endif %}
22 | {% if page.next %}
23 |
24 | {% endif %}
25 |
26 |
--------------------------------------------------------------------------------
/iLotus-jekyll/_posts/2011-12-02-markdown-roll.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: markdown 语法学习
4 | description: Markdown 语法的一些知识点的记录,例如如何写标题,写列表,写 table 等。
5 | keywords: Markdown
6 | ---
7 | ###h 标题的写法
8 | #h1
9 | ##h2
10 | ######h6
11 | ### ul 和 li
12 | * testtest
13 | * testtest
14 | * testtest
15 | * testtest
16 | * testtest
17 | * testtest
18 | * testtest
19 | * testtest
20 | * testtest
21 | * testtest
22 | 1. testtest
23 | 2. testtest
24 | 3. testtest
25 | 4. testtest
26 | 5. testtest
27 | 1. testtest
28 | 2. testtest
29 | 3. testtest
30 | 4. testtest
31 | 5. testtest
32 |
33 |
34 |
35 | 格式
36 | 用法
37 | 示例
38 |
39 |
40 |
41 |
42 | h1标签
43 | #标签
44 | #我是h1
45 | =========
46 | ## h2
47 |
48 |
49 |
50 | ul标签
51 | * 标签
52 |
53 |
54 |
55 | Markdown 使用 email 形式的區塊引言
56 | 果你很熟悉如何在 email 信件中引言i
57 | 你就知
58 | 道怎麼在 Markdown 文件中建立一個區塊引言,那會看起來像是你強迫斷行,然後在每行的
59 | 最前面加
60 |
--------------------------------------------------------------------------------
/iLotus-jekyll/_posts/2012-01-11-test.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: markdown 语法学习
4 | description: Markdown 语法的一些知识点的记录,例如如何写标题,写列表,写 table 等。
5 | keywords: Markdown
6 | ---
7 | ###h 标题的写法
8 | #h1
9 | ##h2
10 | ######h6
11 | ### ul 和 li
12 | * testtest
13 | * testtest
14 | * testtest
15 | * testtest
16 | * testtest
17 | * testtest
18 | * testtest
19 | * testtest
20 | * testtest
21 | * testtest
22 | 1. testtest
23 | 2. testtest
24 | 3. testtest
25 | 4. testtest
26 | 5. testtest
27 | 1. testtest
28 | 2. testtest
29 | 3. testtest
30 | 4. testtest
31 | 5. testtest
32 |
33 |
34 |
35 | 格式
36 | 用法
37 | 示例
38 |
39 |
40 |
41 |
42 | h1标签
43 | #标签
44 | #我是h1
45 | =========
46 | ## h2
47 |
48 |
49 |
50 | ul标签
51 | * 标签
52 |
53 |
54 |
55 | Markdown 使用 email 形式的區塊引言
56 | 果你很熟悉如何在 email 信件中引言i
57 | 你就知
58 | 道怎麼在 Markdown 文件中建立一個區塊引言,那會看起來像是你強迫斷行,然後在每行的
59 | 最前面加
60 |
--------------------------------------------------------------------------------
/iLotus-jekyll/_posts/2012-12-22-111test.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: 中文网页重设与排版:TYPO.CSS
4 | description: Markdown 语法的一些知识点的记录,例如如何写标题,写列表,写 table 等。
5 | keywords: Markdown
6 | ---
7 |
8 | 关于 TYPO.CSS
9 | 排版实例
10 |
14 |
15 | 附录
16 |
17 | TYPO.CSS 排版偏重点
18 | 开源许可
19 |
20 |
21 |
22 |
23 | 一、关于 TYPO.CSS
24 | TYPO.CSS 的目的是,在一致化浏览器排版效果的同时,构建最适合中文阅读的网页排版。
25 | 现状和如何去做:
26 | 排版是一个麻烦的问题,需要精心设计,而这个设计却是常被视觉设计师所忽略的。前端工程师更常看到这样的问题,但不便变更。因为在多个 OS 中的不同浏览器渲染不同,改动需要多的时间做回归测试,所以改变变得更困难。而像我们一般使用的 Yahoo、Eric Meyer 和 Alice base.css 中采用的 Reset 都没有很好地考虑中文排版。TYPO.CSS 要做的就是解决中文排版的问题。
27 | TYPO.CSS 测试于如下平台:
28 |
29 |
30 |
31 | OS/浏览器
32 | Firefox
33 | Chrome
34 | Safari
35 | Opera
36 | IE9
37 | IE8
38 | IE7
39 | IE6
40 |
41 |
42 |
43 |
44 | Mac OS X
45 | √
46 | √
47 | √
48 | √
49 | -
50 | -
51 | -
52 | -
53 |
54 |
55 | Windows 7
56 | √
57 | √
58 | √
59 | √
60 | √
61 | √
62 | √
63 | -
64 |
65 |
66 | Windows XP
67 | √
68 | √
69 | √
70 | √
71 | -
72 | √
73 | √
74 | √
75 |
76 |
77 | Ubuntu Linux
78 | √
79 | √
80 | -
81 | √
82 | -
83 | -
84 | -
85 | -
86 |
87 |
88 |
89 |
90 | 中文排版的重点和难点
91 | 在中文排版中,HTML4 的很多标准在语义在都有照顾到。但从视觉效果上,却很难利用单独的 CSS 来实现,像着重号 。在 HTML4 中,着重号标签(<u>
)已经被放弃,而 HTML5 被重新提起 。TYPO.CSS 也根据实际情况提供相应的方案。我们重要要注意的两点是:
92 |
93 | 语义:语义对应的用法和样式是否与中文排版一致
94 | 表现:在各浏览器中的字体、大小和缩放是否如排版预期
95 |
96 | 对于这些,TYPO.CSS 排版项目的中文偏重注意点,都添加在附录中,详见:
97 |
98 | 附录一 :TYPO.CSS 排版偏重点
99 |
100 |
101 | 目前仍处于 alpha 开发阶段,测试平台的覆盖,特别是在移动端 上还没有覆盖完主流平台,希望有能力的同学能加入测试行列,或者加入到 TYPO.CSS 的开发。加入方法:参与 TYPO.CSS 开发 。如有批评、建议和意见,也随时欢迎给在 Github 直接提 issues ,或给我 发邮件 。
102 |
103 |
104 | 二、排版实例:
105 | 提供2个排版实例,第一个中文实例来自于来自于张燕婴 的《论语》,由于古文排版涉及到的元素比较多,所以采用《论语》中《学而》的第一篇作为排版实例介绍;第2个来自到经典的 Lorem Ipsum,并加入了一些代码和列表等比较具有代表性的排版元素。
106 |
107 | 例1:论语学而篇第一
108 | 作者: 孔子 (前551年9月28日-前479年4月11日 )
109 |
110 | 本篇引语
111 | 《学而》是《论语》第一篇的篇名。《论语》中各篇一般都是以第一章的前二三个字作为该篇的篇名。《学而》一篇包括16章,内容涉及诸多方面。其中重点是“吾日三省吾身”;“节用而爱人,使民以时”;“礼之用,和为贵”以及仁、孝、信等道德范畴。
112 |
113 | 原文
114 | 子曰[1] :“学[2] 而时习[3] 之,不亦说[4] 乎?有朋[5] 自远方来,不亦乐[6] 乎?人不知[7] ,而不愠[8] ,不亦君子[9] 乎?”
115 |
116 | 注释
117 |
118 |
119 | [1] 子:中国古代对于有地位、有学问的男子的尊称,有时也泛称男子。《论语》书中“子曰”的子,都是指孔子而言。
120 | [2] 学:孔子在这里所讲的“学”,主要是指学习西周的礼、乐、诗、书等传统文化典籍。
121 | [3] 时习:在周秦时代,“时”字用作副词,意为“在一定的时候”或者“在适当的时候”。但朱熹在《论语集注》一书中把“时”解释为“时常”。“习”,指演习礼、乐;复习诗、书。也含有温习、实习、练习的意思。
122 | [4] 说:音yuè,同悦,愉快、高兴的意思。
123 | [5] 有朋:一本作“友朋”。旧注说,“同门曰朋”,即同在一位老师门下学习的叫朋,也就是志同道合的人。
124 | [6] 乐:与说有所区别。旧注说,悦在内心,乐则见于外。
125 | [7] 人不知:此句不完整,没有说出人不知道什么。缺少宾语。一般而言,知,是了解的意思。人不知,是说别人不了解自己。
126 | [8] 愠:音yùn,恼怒,怨恨。
127 | [9] 君子:《论语》书中的君子,有时指有德者,有时指有位者。此处指孔子理想中具有高尚人格的人。
128 |
129 |
130 |
131 | 译文
132 | 孔子说:“学了又时常温习和练习,不是很愉快吗?有志同道合的人从远方来,不是很令人高兴的吗?人家不了解我,我也不怨恨、恼怒,不也是一个有德的君子吗?”
133 |
134 | 评析
135 | 宋代著名学者朱熹 对此章评价极高,说它是“入道之门,积德之基”。本章这三句话是人们非常熟悉的。历来的解释都是:学了以后,又时常温习和练习,不也高兴吗等等。三句话,一句一个意思,前后句子也没有什么连贯性。但也有人认为这样解释不符合原义,指出这里的“学”不是指学习,而是指学说或主张;“时”不能解为时常,而是时代或社会的意思,“习”不是温习,而是使用,引申为采用。而且,这三句话不是孤立的,而是前后相互连贯的。这三句的意思是:自己的学说,要是被社会采用了,那就太高兴了;退一步说,要是没有被社会所采用,可是很多朋友赞同我 的学说,纷纷到我这里来讨论问题,我也感到快乐;再退一步说,即使社会不采用,人们也不理解我,我也不怨恨,这样做,不也就是君子吗?(见《齐鲁学刊》1986年第6期文)这种解释可以自圆其说,而且也有一定的道理,供读者在理解本章内容时参考。
136 | 此外,在对“人不知,而不愠”一句的解释中,也有人认为,“人不知”的后面没有宾语,人家不知道什么呢?当时因为孔子有说话的特定环境,他不需要说出知道什么,别人就可以理解了,却给后人留下一个谜。有人说,这一句是接上一句说的,从远方来的朋友向我求教,我告诉他,他还不懂,我却不怨恨。这样,“人不知”就是“人家不知道我所讲述的”了。这样的解释似乎有些牵强。
137 | 总之,本章提出以学习为乐事,做到人不知而不愠,反映出孔子学而不厌、诲人不倦、注重修养、严格要求自己的主张。这些思想主张在《论语》书中多处可见,有助于对第一章内容的深入了解。
138 |
139 | 例2:英文排版
140 | Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
141 |
142 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
143 |
144 |
145 | The standard Lorem Ipsum passage, used since the 1500s
146 | "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
147 |
148 | Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC
149 | "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
150 |
151 | List style in action
152 |
163 |
164 | You may want to create a perfect <hr />
line, despite the fact that there will never have one
165 |
166 | La Racheforcauld said: "Few things are impossible in themselves; and it is often for want of will, rather than of means, that man fails to succeed". You just need to follow the browser's behavior, and set a right margin
to it。it will works nice as the demo you're watching now. The following code is the best way to render typo in Chinese:
167 |
168 | /* 标题应该更贴紧内容,并与其他块区分,margin 值要相应做优化 */
169 | h1,h2,h3,h4,h5,h6 {
170 | line-height:1;font-family:Arial,sans-serif;margin:1.4em 0 0.8em;
171 | }
172 | h1{font-size:1.8em;}
173 | h2{font-size:1.6em;}
174 | h3{font-size:1.4em;}
175 | h4{font-size:1.2em;}
176 | h5,h6{font-size:1em;}
177 |
178 | /* 现代排版:保证块/段落之间的空白隔行 */
179 | .typo p, .typo pre, .typo ul, .typo ol, .typo dl, .typo form, .typo hr {
180 | margin:1em 0 0.6em;
181 | }
182 |
183 |
184 | 三、附录
185 |
186 | 1、TYPO.CSS 排版偏重点
187 |
188 |
189 |
190 | 类型
191 | 语义
192 | 标签
193 | 注意点
194 |
195 |
196 |
197 |
198 | 基础标签
199 | 标题
200 | h1
~ h6
201 | 全局不强制大小,.typo
中标题与其对应的内容应紧贴,并且有相应的大小设置
202 |
203 |
204 | 上、下标
205 | sup
/sub
206 | 保持与 MicroSoft Office Word 等程序的日常排版一致
207 |
208 |
209 | 引用
210 | blockquote
211 | 显示/嵌套样式
212 |
213 |
214 | 缩写
215 | abbr
216 | 是否都有下划线,鼠标 hover
是否为帮助手势
217 |
218 |
219 | 分割线
220 | hr
221 | 显示的 padding
和 margin
正确
222 |
223 |
224 | 列表
225 | ul
/ol
/dl
226 | 在全局没有 list-style
,在 .typo
中对齐正确
227 |
228 |
229 | 定义列表
230 | dl
231 | 全局 padding
和 margin
为0, .typo
中对齐正确
232 |
233 |
234 | 选项
235 | input[type=radio[, checkbox]]
236 | 与其他 form
元素排版时是否居中
237 |
238 |
239 | 斜体
240 | i
241 | 只设置一种斜体,让 em
和 cite
显示为正体
242 |
243 |
244 | 强调
245 | em
246 | 在全局显示正体,在 .typo
中显示与 b
和 strong
的样式一致,为粗休
247 |
248 |
249 | 加强
250 | strong/b
251 | 显示为粗体
252 |
253 |
254 | 标记
255 | mark
256 | 类似荧光笔
257 |
258 |
259 | 印刷
260 | small
261 | 保持为正确字体的 80% 大小,颜色设置为浅灰色
262 |
263 |
264 | 表格
265 | table
266 | 全局不显示线条,在 table
中显示表格外框,并且表头有浅灰背景
267 |
268 |
269 | 代码
270 | pre
/code
271 | 字体使用 courier
系字体,保持与 serif
有比较一致的显示效果
272 |
273 |
274 | 特殊符号
275 | 着重号
276 | 在文字下加点(•)
277 | 在支持 :after
和 :before
的浏览器可以做渐进增强实现
278 |
279 |
280 | 专名号
281 | 林建锋
282 | 专名号,有下划线,使用 u
或都 .typo-u
类
283 |
284 |
285 | 破折号
286 | ——
287 | 保持一划,而非两划
288 |
289 |
290 | 人民币
291 | ¥
292 | 使用两平等线的符号,或者 HTML 实体符号 ¥
293 |
294 |
295 | 删除符
296 | 已删除(deleted)
297 | 一致化各浏览器显示,中英混排正确
298 |
299 |
300 | 加强类
301 | 专名号
302 | .typo-u
303 | 由于 u
被 HTML4 放弃,在向后兼容上推荐使用
304 |
305 |
306 | 着重符
307 | .typo-em
308 | 利用 :after
和 :before
实现着重符
309 |
310 |
311 | 首字下沉
312 | .typo-first
313 | 特殊排版
314 |
315 |
316 | 清除浮动
317 | .clearfix
318 | 与一般 CSS Reset 保持一对致 API
319 |
320 |
321 | 注意点
322 | (1)中英文混排行高/行距
323 |
324 |
325 | (2)上下标在 IE 中显示效果
326 |
327 |
328 | (3)块/段落分割空白是否符合设计原则
329 |
330 |
331 | (4)input 多余空间问题
332 |
333 |
334 | (5)默认字体色彩,目前采用 #333
在各种浏览显示比较好
335 |
336 |
337 |
338 |
339 | 2、开源许可
340 | TYPO.CSS 基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。
--------------------------------------------------------------------------------
/iLotus-jekyll/_posts/2013-11-23-change.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: 又一次变更
4 | description: 人,最难超越的,不是别人,是自己。PIZn 的博客又一次更新了,换到「掌心」这里。
5 |
6 | ---
7 |
8 | 这个 violet 主题已经用了 2 年。今天一气之下将其改头换面,这个皮肤你喜欢么?恩,随便下载使用。
9 |
10 | ### 为什么我要换个地方写博客呢?
11 |
12 | 原因很多,有一个原因是因为这里的文章,被 fork 之后,就成为别人的文章。很多没删的,就这样复制过去自己的博客了。不是很喜欢。
13 |
14 | 另外,我喜欢不同的尝试,恩,爱折腾呗。
15 |
16 | ### PIZn 换到「掌心」
17 |
18 | 有一句老话,前端的博客,更换主题比更换文章来的多。好像是的,我就是这样的一个博客,平时也就练练写代码,搞设计的那种感觉。
19 |
20 | 后来,就不是这样了,学习到的内容需要有个地方可以沉淀,于是换了个域名,改变了写作方式。
21 |
22 | 欢迎访问「掌心」 ,这里是我的新窝。
--------------------------------------------------------------------------------
/iLotus-jekyll/_posts/2014-01-04-iLotus.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: iLotus主题更新
4 | description: 没什么特殊原因,这个主题还是值得一用。
5 | keywords: Markdown
6 | ---
7 |
8 |
9 | test
--------------------------------------------------------------------------------
/iLotus-jekyll/archives.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | title: 文章归档
4 | description: 这是 PIZn 的又一个博客,它是基于 Jekyll 搭建起来的。在这里,不仅仅是用来快速记录工作,学习,生活的一点一滴的地方,更是 PIZn 对 Jekyll 的学习和使用的一次有意义的实践。
5 | keywords: PIZn, GitHub, Jekyll, Plugins, Works, Archives, Quotes, Violet, css, html, javascript, wordpress, logo, design, geek
6 | ---
7 |
8 |
9 | Home
10 | >
11 | {{ page.title }}
12 |
13 |
14 | Archives
15 |
16 |
17 | {% for post in site.posts %}
18 | {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
19 | {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
20 |
21 | {% if forloop.first %}
22 |
23 | {{this_year}}
24 |
25 | {% endif %}
26 |
27 | {{ post.date | date: "%B %e" }} : {{ post.title }}
28 |
29 | {% if forloop.last %}
30 |
31 |
32 |
33 | {% else %}
34 | {% if this_year != next_year %}
35 |
36 |
37 |
38 |
39 | {{next_year}}
40 |
41 | {% endif %}
42 | {% endif %}
43 |
44 |
45 | {% endfor %}
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/iLotus-jekyll/contact.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | title: 关于我
4 | description: 这是 PIZn 的又一个博客,它是基于 Jekyll 搭建起来的。在这里,不仅仅是用来快速记录工作,学习,生活的一点一滴的地方,更是 PIZn 对 Jekyll 的学习和使用的一次有意义的实践。
5 | keywords: PIZn, GitHub, Jekyll, Plugins, Works, Archives, Quotes, Violet, css, html, javascript, wordpress, logo, design, geek
6 | ---
7 |
8 |
9 | Home
10 | >
11 | {{ page.title }}
12 |
13 |
14 | About
15 |
16 | 这里是个人的介绍
17 |
--------------------------------------------------------------------------------
/iLotus-jekyll/feed.xml:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
4 |
5 |
6 | {{ site.title | xml_escape }}
7 | {% if site.description %}{{ site.description | xml_escape }}{% endif %}
8 | {{ site.url }}
9 |
10 | {% for post in site.posts %}
11 | -
12 |
{{ post.title | xml_escape }}
13 | {% if post.author.name %}
14 | {{ post.author.name | xml_escape }}
15 | {% else %}
16 | {{ site.author.name | xml_escape }}
17 | {% endif %}
18 | {% if post.excerpt %}
19 | {{ post.excerpt | xml_escape }}
20 | {% else %}
21 | {{ post.content | xml_escape }}
22 | {% endif %}
23 | {{ post.date | date_to_rfc822 }}
24 | {{ site.url }}{{ post.url }}
25 | {{ site.url }}{{ post.url }}
26 |
27 | {% endfor %}
28 |
29 |
30 |
--------------------------------------------------------------------------------
/iLotus-jekyll/index.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | title:
4 | description: 这是 PIZn 的又一个博客,它是基于 Jekyll 搭建起来的。在这里,不仅仅是用来快速记录工作,学习,生活的一点一滴的地方,更是 PIZn 对 Jekyll 的学习和使用的一次有意义的实践。
5 | keywords: PIZn, GitHub, Jekyll, Plugins, Works, Archives, Quotes, Violet, css, html, javascript, wordpress, logo, design, geek
6 | ---
7 |
8 |
9 |
10 | {{ site.subTitle }}
11 |
12 |
13 |
14 | {% for rpost in paginator.posts limit:1 %}
15 |
16 | {{ rpost.description }}
17 | {% endfor %}
18 |
19 |
20 |
21 | 最新文章
22 |
23 | {% for npost in site.posts limit:3 offset:2 %}
24 | {{ npost.title }}
25 | {% endfor %}
26 |
27 |
28 |
29 | 相关页面
30 |
31 |
32 | {% for page in site.page %}
33 | {{ page.text }}
34 | {% if !page.last %}
35 | |
36 | {% endif %}
37 | {% endfor %}
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/iLotus-jekyll/links.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | title: 友情链接
4 | description: 这是 PIZn 的又一个博客,它是基于 Jekyll 搭建起来的。在这里,不仅仅是用来快速记录工作,学习,生活的一点一滴的地方,更是 PIZn 对 Jekyll 的学习和使用的一次有意义的实践。
5 | keywords: PIZn, GitHub, Jekyll, Plugins, Works, Archives, Quotes, Violet, css, html, javascript, wordpress, logo, design, geek
6 | ---
7 |
8 |
9 | Home
10 | >
11 | {{ page.title }}
12 |
13 |
14 | Links
15 |
16 |
--------------------------------------------------------------------------------
/iLotus-jekyll/sitemap.txt:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 | {% for post in site.posts %}
4 | {{ site.url }}{{ post.url }}{% endfor %}
5 | {% for page in site.html_pages %}
6 | {{ site.url }}{{ page.url }}{% endfor %}
7 |
--------------------------------------------------------------------------------
/iLotus-jekyll/sitemap.xml:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
4 |
5 |
6 |
7 |
8 | {{ site.url }}/
9 | {{ site.time | date: "%Y-%m-%d" }}
10 | daily
11 | 1.0
12 |
13 |
14 | {% for page in site.posts %}
15 |
16 | {{ site.url }}{{ page.url }}
17 | {% if page.last_updated %}
18 | {{ page.last_updated | date: "%Y-%m-%d" }}
19 | {% elsif page.date %}
20 | {{ page.date | date: "%Y-%m-%d" }}
21 | {% else %}
22 | {{ site.time | date: "%Y-%m-%d" }}
23 | {% endif %}
24 |
25 | {% endfor %}
26 |
27 | {% for page in site.html_pages %}
28 |
29 | {{ site.url }}{{ page.url }}
30 | {% if page.last_updated %}
31 | {{ page.last_updated | date: "%Y-%m-%d" }}
32 | {% elsif page.date %}
33 | {{ page.date | date: "%Y-%m-%d" }}
34 | {% else %}
35 | {{ site.time | date: "%Y-%m-%d" }}
36 | {% endif %}
37 | {% if page.changefreq %}{{ page.changefreq }} {% endif %}
38 | {% if page.priority %}{{ page.priority }} {% endif %}
39 |
40 | {% endfor %}
41 |
42 |
43 |
--------------------------------------------------------------------------------
/iLotus-jekyll/static/font/PTSerif.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/font/PTSerif.woff
--------------------------------------------------------------------------------
/iLotus-jekyll/static/font/PTSerifBold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/font/PTSerifBold.woff
--------------------------------------------------------------------------------
/iLotus-jekyll/static/font/PTSerifItalic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/font/PTSerifItalic.woff
--------------------------------------------------------------------------------
/iLotus-jekyll/static/font/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/font/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/iLotus-jekyll/static/font/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/font/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/iLotus-jekyll/static/font/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/font/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/iLotus-jekyll/static/iLotus2.js:
--------------------------------------------------------------------------------
1 | /**
2 | * author: PIZn
3 | * version: 1.0
4 | * site: http://www.pizn.net
5 | */
6 | $(document).ready(function() {
7 | //为什么我会写这个呢?
8 | var iLotus = {
9 | Version: "1.0",
10 | Author: "PIZn",
11 | Site: "http://www.pizn.net"
12 | }
13 | /**
14 | * checkServer for PIZn
15 | */
16 | iLotus.checkServer = {
17 | checked: function() {
18 | var str = document.domain, rule = /^(www\.pizn\.net)?$/;
19 | if(!rule.test(str)) {
20 | window.location.replace(iLotus.Site);
21 | }
22 | },
23 | run: function() {
24 | this.checked();
25 | }
26 | }
27 | /**
28 | * goTop
29 | */
30 | iLotus.goTop = {
31 | nodeName: "J-backTop",
32 | scrollHeight: "100",
33 | linkBottom: "120px",
34 | linkRight: 30,
35 | linkWidth: 32,
36 | contentWidth: 720,
37 | contentBigWidth: 1024,
38 | _scrollTop: function() {
39 | if(jQuery.scrollTo) {
40 | jQuery.scrollTo(0, 800, {queue:true});
41 | }
42 | },
43 | _scrollScreen: function() {
44 | var that = this, topLink = $('#' + that.nodeName);
45 | if(jQuery(document).scrollTop() <= that.scrollHeight) {
46 | topLink.hide();
47 | return true;
48 | } else {
49 | topLink.fadeIn();
50 | }
51 | },
52 | _resizeWindow: function(right) {
53 | var that = this, topLink = $('#' + that.nodeName);
54 | topLink.css({
55 | 'right' : right + 'px',
56 | 'bottom': that.linkBottom
57 | });
58 | },
59 | _changeRight: function() {
60 | var that = this, right;
61 | if(jQuery(window).width() > 1440) {
62 | right = parseInt((jQuery(window).width() - that.contentBigWidth + 1)/2 - that.linkWidth - that.linkRight, 10);
63 | } else {
64 | right = parseInt((jQuery(window).width() - that.contentWidth + 1)/2 - that.linkWidth - that.linkRight, 10);
65 | }
66 | if( right < 20 ) {
67 | right = 20;
68 | }
69 | return right;
70 | },
71 | run: function() {
72 | var that = this, topLink = $(' ');
73 | topLink.appendTo($('body'));
74 | topLink.css({
75 | 'display': 'none',
76 | 'position': 'fixed',
77 | 'right': that._changeRight() + 'px',
78 | 'bottom': that.linkBottom
79 | });
80 | if(jQuery.scrollTo) {
81 | topLink.click(function() {
82 | that._scrollTop();
83 | return false;
84 | });
85 | }
86 | jQuery(window).resize(function() {
87 | that._resizeWindow(that._changeRight());
88 | });
89 | jQuery(window).scroll(function() {
90 | that._scrollScreen();
91 |
92 | });
93 |
94 | }
95 | }
96 | /**
97 | * lotus img showBox
98 | */
99 | iLotus.showImg = {
100 | lazyTime: 600,
101 | createDom: function() {
102 | $("
").appendTo($('body'));
103 | },
104 | showOverLay: function() {
105 | var that = this;
106 | var oWidth = $(window).width();
107 | var oHeight = $(window).height();
108 | $("#J-lightbox-overlay").css({
109 | "height": oHeight,
110 | "width": oWidth
111 | }).fadeIn(that.lazyTime);
112 | },
113 | end: function() {
114 | var that = this;
115 | $("#J-lightbox-overlay").fadeOut(that.lazyTime);
116 | $("#J-lightbox").hide();
117 | $("#J-lightbox").find(".lotus-lightbox-close").fadeOut(that.lazyTime);
118 | $("#J-lightbox-cnt").empty();
119 | $("#J-lightbox").attr("data-show", "false");
120 | },
121 | createImg: function(url) {
122 | var that = this;
123 | var img = new Image;
124 | img.src = url;
125 | var iwidth = img.width;
126 | var iheight = img.height;
127 |
128 | that.showOverLay();
129 |
130 | var top = $(window).scrollTop() + $(window).height() / 5;
131 | var left = $(window).scrollLeft();
132 |
133 | $("#J-lightbox").css({
134 | "top": top + "px",
135 | "left": left + "px"
136 | }).fadeIn(that.lazyTime);
137 |
138 | $("#J-lightbox-cnt").animate({
139 | width: iwidth,
140 | height: iheight
141 | }, that.lazyTime, 'swing');
142 |
143 | setTimeout(function() {
144 | $("#J-lightbox").attr("data-show", "true");
145 | $(" ").appendTo($("#J-lightbox-cnt")).fadeIn(that.lazyTime);
146 | $("#J-lightbox").find(".lotus-lightbox-close").css({
147 | left: $(window).width()/2 + iwidth/2 + "px"
148 | }).fadeIn(that.lazyTime);
149 | }, that.lazyTime);
150 |
151 | $(window).resize(function() {
152 | if($("#J-lightbox").attr("data-show") == "true"){
153 | that.showOverLay();
154 | $("#J-lightbox").find(".lotus-lightbox-close").css({
155 | left: $(window).width()/2 + iwidth/2 + "px"
156 | })
157 | }
158 | });
159 | },
160 | run: function() {
161 | var that = this;
162 | that.createDom();
163 | var imgArr = $(".lotus-post img");
164 | imgArr.each(function(index, el){
165 | $(el).click(function(e) {
166 | e.stopPropagation();
167 | var imgUrl = el.src;
168 | that.createImg(imgUrl);
169 | });
170 | });
171 |
172 | $("#J-lightbox-overlay").on('click', function() {
173 | that.end();
174 | return false;
175 | });
176 | $("#J-lightbox").on('click', function() {
177 | that.end();
178 | return false;
179 | });
180 | $("#J-lightbox").find(".lotus-lightbox-close").on('click', function(e) {
181 | that.end();
182 | return false;
183 | });
184 | $("#J-lightbox").find(".lotus-lightbox-cnt").on('click', function(e) {
185 | e.stopPropagation();
186 | });
187 | }
188 | }
189 | /**
190 | * iLotus JS init
191 | */
192 | iLotus.init = {
193 | run: function() {
194 | iLotus.checkServer.run();
195 | iLotus.goTop.run();
196 | iLotus.showImg.run();
197 | }
198 | };
199 | //run
200 | iLotus.init.run();
201 | });
--------------------------------------------------------------------------------
/iLotus-jekyll/static/images/404.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/images/404.png
--------------------------------------------------------------------------------
/iLotus-jekyll/static/images/load.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/images/load.gif
--------------------------------------------------------------------------------
/iLotus-jekyll/static/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/images/logo.jpg
--------------------------------------------------------------------------------
/iLotus-jekyll/static/images/zhanxin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-jekyll/static/images/zhanxin.jpg
--------------------------------------------------------------------------------
/iLotus-jekyll/static/js/html5.js:
--------------------------------------------------------------------------------
1 | // html5shiv MIT @rem remysharp.com/html5-enabling-script
2 | // iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
3 | /*@cc_on(function(a,b){function r(a){var b=-1;while(++b";return a.childNodes.length!==1}())){a.iepp=a.iepp||{};var c=a.iepp,d=c.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",e=d.split("|"),f=e.length,g=new RegExp("(^|\\s)("+d+")","gi"),h=new RegExp("<(/*)("+d+")","gi"),i=/^\s*[\{\}]\s*$/,j=new RegExp("(^|[^\\n]*?\\s)("+d+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),k=b.createDocumentFragment(),l=b.documentElement,m=l.firstChild,n=b.createElement("body"),o=b.createElement("style"),p=/print|all/,q;c.getCSS=function(a,b){if(a+""===undefined)return"";var d=-1,e=a.length,f,g=[];while(++d-1;}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1];ua.webkit=ua.test("webkit");ua.gecko=ua.test("gecko")&&!ua.webkit;ua.opera=ua.test("opera");ua.ie=ua.test("msie")&&!ua.opera;ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight==="undefined";ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!=="undefined"&&typeof XDomainRequest==="undefined";ua.ie8=ua.ie&&typeof XDomainRequest!=="undefined";var domReady=function(){var _1=[];var _2=function(){if(!arguments.callee.done){arguments.callee.done=true;for(var i=0;i<_1.length;i++){_1[i]();}}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",_2,false);}
6 | if(ua.ie){(function(){try{document.documentElement.doScroll("left");}
7 | catch(e){setTimeout(arguments.callee,50);return;}
8 | _2();})();document.onreadystatechange=function(){if(document.readyState==="complete"){document.onreadystatechange=null;_2();}};}
9 | if(ua.webkit&&document.readyState){(function(){if(document.readyState!=="loading"){_2();}else{setTimeout(arguments.callee,10);}})();}
10 | window.onload=_2;return function(fn){if(typeof fn==="function"){_1[_1.length]=fn;}
11 | return fn;};}();var cssHelper=function(){var _3={BLOCKS:/[^\s{][^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;)/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g};var _4,_5=false;var _6=[];var _7=function(fn){if(typeof fn==="function"){_6[_6.length]=fn;}};var _8=function(){for(var i=0;i<_6.length;i++){_6[i](_4);}};var _9={};var _a=function(n,v){if(_9[n]){var _b=_9[n].listeners;if(_b){for(var i=0;i<_b.length;i++){_b[i](v);}}}};var _c=function(_d,_e,_f){if(ua.ie&&!window.XMLHttpRequest){window.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP");};}
12 | if(!XMLHttpRequest){return"";}
13 | var r=new XMLHttpRequest();try{r.open("get",_d,true);r.setRequestHeader("X_REQUESTED_WITH","XMLHttpRequest");}
14 | catch(e){_f();return;}
15 | var _10=false;setTimeout(function(){_10=true;},5000);document.documentElement.style.cursor="progress";r.onreadystatechange=function(){if(r.readyState===4&&!_10){if(!r.status&&location.protocol==="file:"||(r.status>=200&&r.status<300)||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status==="undefined"){_e(r.responseText);}else{_f();}
16 | document.documentElement.style.cursor="";r=null;}};r.send("");};var _11=function(_12){_12=_12.replace(_3.REDUNDANT_COMPONENTS,"");_12=_12.replace(_3.REDUNDANT_WHITESPACE,"$1");_12=_12.replace(_3.MORE_WHITESPACE," ");_12=_12.replace(_3.FINAL_SEMICOLONS,"}");return _12;};var _13={mediaQueryList:function(s){var o={};var idx=s.indexOf("{");var lt=s.substring(0,idx);s=s.substring(idx+1,s.length-1);var mqs=[],rs=[];var qts=lt.toLowerCase().substring(7).split(",");for(var i=0;i-1&&_23.href&&_23.href.length!==0&&!_23.disabled){_1f[_1f.length]=_23;}}
31 | if(_1f.length>0){var c=0;var _24=function(){c++;if(c===_1f.length){_20();}};var _25=function(_26){var _27=_26.href;_c(_27,function(_28){_28=_11(_28).replace(_3.RELATIVE_URLS,"url("+_27.substring(0,_27.lastIndexOf("/"))+"/$1)");_26.cssHelperText=_28;_24();},_24);};for(i=0;i<_1f.length;i++){_25(_1f[i]);}}else{_20();}};var _29={mediaQueryLists:"array",rules:"array",selectors:"object",declarations:"array",properties:"object"};var _2a={mediaQueryLists:null,rules:null,selectors:null,declarations:null,properties:null};var _2b=function(_2c,v){if(_2a[_2c]!==null){if(_29[_2c]==="array"){return(_2a[_2c]=_2a[_2c].concat(v));}else{var c=_2a[_2c];for(var n in v){if(v.hasOwnProperty(n)){if(!c[n]){c[n]=v[n];}else{c[n]=c[n].concat(v[n]);}}}
32 | return c;}}};var _2d=function(_2e){_2a[_2e]=(_29[_2e]==="array")?[]:{};for(var i=0;i<_4.length;i++){_2b(_2e,_4[i].cssHelperParsed[_2e]);}
33 | return _2a[_2e];};domReady(function(){var els=document.body.getElementsByTagName("*");for(var i=0;i=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));}else{return false;}}else{return _46>0;}}else{if("device-height"===_41.substring(l-13,l)){_47=screen.height;if(_42!==null){if(_43==="length"){return((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));}else{return false;}}else{return _47>0;}}else{if("width"===_41.substring(l-5,l)){_46=document.documentElement.clientWidth||document.body.clientWidth;if(_42!==null){if(_43==="length"){return((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));}else{return false;}}else{return _46>0;}}else{if("height"===_41.substring(l-6,l)){_47=document.documentElement.clientHeight||document.body.clientHeight;if(_42!==null){if(_43==="length"){return((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));}else{return false;}}else{return _47>0;}}else{if("device-aspect-ratio"===_41.substring(l-19,l)){return _43==="aspect-ratio"&&screen.width*_44[1]===screen.height*_44[0];}else{if("color-index"===_41.substring(l-11,l)){var _48=Math.pow(2,screen.colorDepth);if(_42!==null){if(_43==="absolute"){return((min&&_48>=_44)||(max&&_48<_44)||(!min&&!max&&_48===_44));}else{return false;}}else{return _48>0;}}else{if("color"===_41.substring(l-5,l)){var _49=screen.colorDepth;if(_42!==null){if(_43==="absolute"){return((min&&_49>=_44)||(max&&_49<_44)||(!min&&!max&&_49===_44));}else{return false;}}else{return _49>0;}}else{if("resolution"===_41.substring(l-10,l)){var res;if(_45==="dpcm"){res=_3d("1cm");}else{res=_3d("1in");}
41 | if(_42!==null){if(_43==="resolution"){return((min&&res>=_44)||(max&&res<_44)||(!min&&!max&&res===_44));}else{return false;}}else{return res>0;}}else{return false;}}}}}}}}};var _4a=function(mq){var _4b=mq.getValid();var _4c=mq.getExpressions();var l=_4c.length;if(l>0){for(var i=0;i0){s[c++]=",";}
44 | s[c++]=n;}}
45 | if(s.length>0){_39[_39.length]=cssHelper.addStyle("@media "+s.join("")+"{"+mql.getCssText()+"}",false);}};var _4e=function(_4f){for(var i=0;i<_4f.length;i++){_4d(_4f[i]);}
46 | if(ua.ie){document.documentElement.style.display="block";setTimeout(function(){document.documentElement.style.display="";},0);setTimeout(function(){cssHelper.broadcast("cssMediaQueriesTested");},100);}else{cssHelper.broadcast("cssMediaQueriesTested");}};var _50=function(){for(var i=0;i<_39.length;i++){cssHelper.removeStyle(_39[i]);}
47 | _39=[];cssHelper.mediaQueryLists(_4e);};var _51=0;var _52=function(){var _53=cssHelper.getViewportWidth();var _54=cssHelper.getViewportHeight();if(ua.ie){var el=document.createElement("div");el.style.position="absolute";el.style.top="-9999em";el.style.overflow="scroll";document.body.appendChild(el);_51=el.offsetWidth-el.clientWidth;document.body.removeChild(el);}
48 | var _55;var _56=function(){var vpw=cssHelper.getViewportWidth();var vph=cssHelper.getViewportHeight();if(Math.abs(vpw-_53)>_51||Math.abs(vph-_54)>_51){_53=vpw;_54=vph;clearTimeout(_55);_55=setTimeout(function(){if(!_3a()){_50();}else{cssHelper.broadcast("cssMediaQueriesTested");}},500);}};window.onresize=function(){var x=window.onresize||function(){};return function(){x();_56();};}();};var _57=document.documentElement;_57.style.marginLeft="-32767px";setTimeout(function(){_57.style.marginTop="";},20000);return function(){if(!_3a()){cssHelper.addListener("newStyleParsed",function(el){_4e(el.cssHelperParsed.mediaQueryLists);});cssHelper.addListener("cssMediaQueriesTested",function(){if(ua.ie){_57.style.width="1px";}
49 | setTimeout(function(){_57.style.width="";_57.style.marginLeft="";},0);cssHelper.removeListener("cssMediaQueriesTested",arguments.callee);});_3c();_50();}else{_57.style.marginLeft="";}
50 | _52();};}());try{document.execCommand("BackgroundImageCache",false,true);}
51 | catch(e){}
52 |
--------------------------------------------------------------------------------
/iLotus-jekyll/static/js/iLotus.js:
--------------------------------------------------------------------------------
1 | /**
2 | * google prettify.js
3 | */
4 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
5 | (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
6 | [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
12 | l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
13 | q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
14 | q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
15 | "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
16 | a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
17 | for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
21 | "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
22 | H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
23 | J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
24 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
5 |
6 |
7 |