├── .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 | 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:

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 | 44 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | Markdown 使用 email 形式的區塊引言 56 | 果你很熟悉如何在 email 信件中引言i 57 | 你就知 58 | 道怎麼在 Markdown 文件中建立一個區塊引言,那會看起來像是你強迫斷行,然後在每行的 59 | 最前面加 60 |
格式用法示例
h1标签 43 | #标签#我是h1 45 | ========= 46 | ## h2 47 |
ul标签 51 | * 标签
-------------------------------------------------------------------------------- /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 | 44 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | Markdown 使用 email 形式的區塊引言 56 | 果你很熟悉如何在 email 信件中引言i 57 | 你就知 58 | 道怎麼在 Markdown 文件中建立一個區塊引言,那會看起來像是你強迫斷行,然後在每行的 59 | 最前面加 60 |
格式用法示例
h1标签 43 | #标签#我是h1 45 | ========= 46 | ## h2 47 |
ul标签 51 | * 标签
-------------------------------------------------------------------------------- /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 |
  1. 关于 TYPO.CSS
  2. 9 |
  3. 排版实例 10 | 14 |
  4. 15 |
  5. 附录 16 |
      17 |
    1. TYPO.CSS 排版偏重点
    2. 18 |
    3. 开源许可
    4. 19 |
    20 |
  6. 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 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 |
OS/浏览器FirefoxChromeSafariOperaIE9IE8IE7IE6
Mac OS X----
Windows 7-
Windows XP-
Ubuntu Linux-----
89 | 90 |

中文排版的重点和难点

91 |

在中文排版中,HTML4 的很多标准在语义在都有照顾到。但从视觉效果上,却很难利用单独的 CSS 来实现,像着重号。在 HTML4 中,着重号标签(<u>)已经被放弃,而 HTML5 被重新提起。TYPO.CSS 也根据实际情况提供相应的方案。我们重要要注意的两点是:

92 |
    93 |
  1. 语义:语义对应的用法和样式是否与中文排版一致
  2. 94 |
  3. 表现:在各浏览器中的字体、大小和缩放是否如排版预期
  4. 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 |

作者:孔子

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 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 |
类型语义标签注意点
基础标签标题h1h6全局不强制大小,.typo 中标题与其对应的内容应紧贴,并且有相应的大小设置
上、下标sup/sub保持与 MicroSoft Office Word 等程序的日常排版一致
引用blockquote显示/嵌套样式
缩写abbr是否都有下划线,鼠标 hover 是否为帮助手势
分割线hr显示的 paddingmargin正确
列表ul/ol/dl在全局没有 list-style,在 .typo 中对齐正确
定义列表dl全局 paddingmargin为0, .typo 中对齐正确
选项input[type=radio[, checkbox]]与其他 form 元素排版时是否居中
斜体i只设置一种斜体,让 emcite 显示为正体
强调em在全局显示正体,在 .typo 中显示与 bstrong 的样式一致,为粗休
加强strong/b显示为粗体
标记mark类似荧光笔
印刷small保持为正确字体的 80% 大小,颜色设置为浅灰色
表格table全局不显示线条,在 table 中显示表格外框,并且表头有浅灰背景
代码pre/code字体使用 courier 系字体,保持与 serif 有比较一致的显示效果
特殊符号着重号在文字下加点(•)在支持 :after:before 的浏览器可以做渐进增强实现
专名号林建锋专名号,有下划线,使用 u 或都 .typo-u
破折号——保持一划,而非两划
人民币¥使用两平等线的符号,或者 HTML 实体符号 &yen;
删除符已删除(deleted)一致化各浏览器显示,中英混排正确
加强类专名号.typo-u由于 u 被 HTML4 放弃,在向后兼容上推荐使用
着重符.typo-em利用 :after:before 实现着重符
首字下沉.typo-first特殊排版
清除浮动.clearfix与一般 CSS Reset 保持一对致 API
注意点(1)中英文混排行高/行距
(2)上下标在 IE 中显示效果
(3)块/段落分割空白是否符合设计原则
(4)input 多余空间问题
(5)默认字体色彩,目前采用 #333 在各种浏览显示比较好
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 | 33 | {% else %} 34 | {% if this_year != next_year %} 35 | 36 | 37 | 38 |
-------------------------------------------------------------------------------- /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 | 13 |
14 | {% for rpost in paginator.posts limit:1 %} 15 |

{{ rpost.title }}

16 |

{{ rpost.description }}

17 | {% endfor %} 18 |
19 |
20 |
21 |

最新文章

22 | 27 |
28 |
29 |

相关页面

30 | 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",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 25 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 26 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 27 | ["cv","py"]);k(u({keywords:"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",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 28 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 29 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p 1440) { 150 | right = parseInt((jQuery(window).width() - that.contenBigtWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 151 | } else { 152 | 153 | right = parseInt((jQuery(window).width() - that.contentWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 154 | } 155 | if( right < 20 ) { 156 | right = 20; 157 | } 158 | return right; 159 | }, 160 | run: function() { 161 | var that = this, topLink = $(''); 162 | topLink.appendTo($('body')); 163 | topLink.css({ 164 | 'display': 'none', 165 | 'position': 'fixed', 166 | 'right': that._changeRight() + 'px', 167 | 'bottom': that.linkBottom 168 | }); 169 | if(jQuery.scrollTo) { 170 | topLink.click(function() { 171 | that._scrollTop(); 172 | return false; 173 | }); 174 | } 175 | jQuery(window).resize(function() { 176 | that._resizeWindow(that._changeRight()); 177 | }); 178 | jQuery(window).scroll(function() { 179 | that._scrollScreen(); 180 | 181 | }); 182 | 183 | } 184 | } 185 | /** 186 | * iLotus.changeTheme 187 | */ 188 | iLotus.changeTheme = { 189 | A: function() { 190 | if(this.check() == "A") { 191 | $("#J-html").addClass("iLight"); 192 | jQuery.cookie('iTheme', 'B', { expires: 7, path: '/' }); 193 | } else { 194 | $("#J-html").removeClass("iLight"); 195 | jQuery.cookie('iTheme', 'A', { expires: 7, path: '/' }); 196 | } 197 | }, 198 | B: function() { 199 | if(this.check() == "B") { 200 | $("#J-html").addClass("iLight"); 201 | } else { 202 | $("#J-html").removeClass("iLight"); 203 | } 204 | }, 205 | check: function() { 206 | var iThemeCookie = jQuery.cookie("iTheme"); 207 | if(iThemeCookie != null) { 208 | return iThemeCookie; 209 | } else { 210 | jQuery.cookie('iTheme', 'A', { expires: 7, path: '/' }); 211 | return "A"; 212 | } 213 | }, 214 | init: function() { 215 | var that = this; 216 | $("#J-changeTheme").toggle(function(e) { 217 | that.A(); 218 | }, function(e) { 219 | that.A(); 220 | }); 221 | this.B(); 222 | } 223 | } 224 | /** 225 | * iLotus JS init 226 | */ 227 | iLotus.init = { 228 | run: function() { 229 | iLotus.goTop.run(); 230 | iLotus.changeTheme.init(); 231 | } 232 | }; 233 | //run 234 | iLotus.init.run(); 235 | //pretty 236 | prettyPrint(); 237 | }); -------------------------------------------------------------------------------- /iLotus-jekyll/static/js/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 | contenBigtWidth: 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.contenBigtWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 63 | } else { 64 | 65 | right = parseInt((jQuery(window).width() - that.contentWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 66 | } 67 | if( right < 20 ) { 68 | right = 20; 69 | } 70 | return right; 71 | }, 72 | run: function() { 73 | var that = this, topLink = $(''); 74 | topLink.appendTo($('body')); 75 | topLink.css({ 76 | 'display': 'none', 77 | 'position': 'fixed', 78 | 'right': that._changeRight() + 'px', 79 | 'bottom': that.linkBottom 80 | }); 81 | if(jQuery.scrollTo) { 82 | topLink.click(function() { 83 | that._scrollTop(); 84 | return false; 85 | }); 86 | } 87 | jQuery(window).resize(function() { 88 | that._resizeWindow(that._changeRight()); 89 | }); 90 | jQuery(window).scroll(function() { 91 | that._scrollScreen(); 92 | 93 | }); 94 | 95 | } 96 | } 97 | iLotus.showImg = { 98 | lazyTime: 600, 99 | createDom: function() { 100 | $("
").appendTo($('body')); 101 | }, 102 | showOverLay: function() { 103 | var that = this; 104 | var oWidth = $(window).width(); 105 | var oHeight = $(window).height(); 106 | $("#J-lightbox-overlay").css({ 107 | "height": oHeight, 108 | "width": oWidth 109 | }).fadeIn(that.lazyTime); 110 | }, 111 | end: function() { 112 | var that = this; 113 | $("#J-lightbox-overlay").fadeOut(that.lazyTime); 114 | $("#J-lightbox").hide(); 115 | $("#J-lightbox").find(".lotus-lightbox-close").fadeOut(that.lazyTime); 116 | $("#J-lightbox-cnt").empty(); 117 | $("#J-lightbox").attr("data-show", "false"); 118 | }, 119 | createImg: function(url) { 120 | var that = this; 121 | var img = new Image; 122 | img.src = url; 123 | var iwidth = img.width; 124 | var iheight = img.height; 125 | 126 | that.showOverLay(); 127 | 128 | var top = $(window).scrollTop() + $(window).height() / 5; 129 | var left = $(window).scrollLeft(); 130 | 131 | $("#J-lightbox").css({ 132 | "top": top + "px", 133 | "left": left + "px" 134 | }).fadeIn(that.lazyTime); 135 | 136 | $("#J-lightbox-cnt").animate({ 137 | width: iwidth, 138 | height: iheight 139 | }, that.lazyTime, 'swing'); 140 | 141 | setTimeout(function() { 142 | $("#J-lightbox").attr("data-show", "true"); 143 | $("").appendTo($("#J-lightbox-cnt")).fadeIn(that.lazyTime); 144 | $("#J-lightbox").find(".lotus-lightbox-close").css({ 145 | left: $(window).width()/2 + iwidth/2 + "px" 146 | }).fadeIn(that.lazyTime); 147 | }, that.lazyTime); 148 | 149 | $(window).resize(function() { 150 | if($("#J-lightbox").attr("data-show") == "true"){ 151 | that.showOverLay(); 152 | $("#J-lightbox").find(".lotus-lightbox-close").css({ 153 | left: $(window).width()/2 + iwidth/2 + "px" 154 | }) 155 | } 156 | }); 157 | }, 158 | run: function() { 159 | var that = this; 160 | that.createDom(); 161 | var imgArr = $(".lotus-post img"); 162 | imgArr.each(function(index, el){ 163 | $(el).click(function(e) { 164 | e.stopPropagation(); 165 | var imgUrl = el.src; 166 | that.createImg(imgUrl); 167 | }); 168 | }); 169 | 170 | $("#J-lightbox-overlay").on('click', function() { 171 | that.end(); 172 | return false; 173 | }); 174 | $("#J-lightbox").on('click', function() { 175 | that.end(); 176 | return false; 177 | }); 178 | $("#J-lightbox").find(".lotus-lightbox-close").on('click', function(e) { 179 | that.end(); 180 | return false; 181 | }); 182 | $("#J-lightbox").find(".lotus-lightbox-cnt").on('click', function(e) { 183 | e.stopPropagation(); 184 | }); 185 | } 186 | } 187 | /** 188 | * iLotus JS init 189 | */ 190 | iLotus.init = { 191 | run: function() { 192 | //iLotus.checkServer.run(); 193 | iLotus.goTop.run(); 194 | iLotus.showImg.run(); 195 | 196 | } 197 | }; 198 | //run 199 | iLotus.init.run(); 200 | }); -------------------------------------------------------------------------------- /iLotus-jekyll/static/js/jquery.scrollTo.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery.ScrollTo 3 | * Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com 4 | * Dual licensed under MIT and GPL. 5 | * Date: 4/09/2012 6 | * 7 | * @projectDescription Easy element scrolling using jQuery. 8 | * http://flesler.blogspot.com/2007/10/jqueryscrollto.html 9 | * @author Ariel Flesler 10 | * @version 1.4.3.1 11 | * 12 | * @id jQuery.scrollTo 13 | * @id jQuery.fn.scrollTo 14 | * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements. 15 | * The different options for target are: 16 | * - A number position (will be applied to all axes). 17 | * - A string position ('44', '100px', '+=90', etc ) will be applied to all axes 18 | * - A jQuery/DOM element ( logically, child of the element to scroll ) 19 | * - A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc ) 20 | * - A hash { top:x, left:y }, x and y can be any kind of number/string like above. 21 | * - A percentage of the container's dimension/s, for example: 50% to go to the middle. 22 | * - The string 'max' for go-to-end. 23 | * @param {Number, Function} duration The OVERALL length of the animation, this argument can be the settings object instead. 24 | * @param {Object,Function} settings Optional set of settings or the onAfter callback. 25 | * @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'. 26 | * @option {Number, Function} duration The OVERALL length of the animation. 27 | * @option {String} easing The easing method for the animation. 28 | * @option {Boolean} margin If true, the margin of the target element will be deducted from the final position. 29 | * @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }. 30 | * @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes. 31 | * @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends. 32 | * @option {Function} onAfter Function to be called after the scrolling ends. 33 | * @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends. 34 | * @return {jQuery} Returns the same jQuery object, for chaining. 35 | * 36 | * @desc Scroll to a fixed position 37 | * @example $('div').scrollTo( 340 ); 38 | * 39 | * @desc Scroll relatively to the actual position 40 | * @example $('div').scrollTo( '+=340px', { axis:'y' } ); 41 | * 42 | * @desc Scroll using a selector (relative to the scrolled element) 43 | * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } ); 44 | * 45 | * @desc Scroll to a DOM element (same for jQuery object) 46 | * @example var second_child = document.getElementById('container').firstChild.nextSibling; 47 | * $('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){ 48 | * alert('scrolled!!'); 49 | * }}); 50 | * 51 | * @desc Scroll on both axes, to different values 52 | * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } ); 53 | */ 54 | 55 | ;(function( $ ){ 56 | 57 | var $scrollTo = $.scrollTo = function( target, duration, settings ){ 58 | $(window).scrollTo( target, duration, settings ); 59 | }; 60 | 61 | $scrollTo.defaults = { 62 | axis:'xy', 63 | duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1, 64 | limit:true 65 | }; 66 | 67 | // Returns the element that needs to be animated to scroll the window. 68 | // Kept for backwards compatibility (specially for localScroll & serialScroll) 69 | $scrollTo.window = function( scope ){ 70 | return $(window)._scrollable(); 71 | }; 72 | 73 | // Hack, hack, hack :) 74 | // Returns the real elements to scroll (supports window/iframes, documents and regular nodes) 75 | $.fn._scrollable = function(){ 76 | return this.map(function(){ 77 | var elem = this, 78 | isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1; 79 | 80 | if( !isWin ) 81 | return elem; 82 | 83 | var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem; 84 | 85 | return /webkit/i.test(navigator.userAgent) || doc.compatMode == 'BackCompat' ? 86 | doc.body : 87 | doc.documentElement; 88 | }); 89 | }; 90 | 91 | $.fn.scrollTo = function( target, duration, settings ){ 92 | if( typeof duration == 'object' ){ 93 | settings = duration; 94 | duration = 0; 95 | } 96 | if( typeof settings == 'function' ) 97 | settings = { onAfter:settings }; 98 | 99 | if( target == 'max' ) 100 | target = 9e9; 101 | 102 | settings = $.extend( {}, $scrollTo.defaults, settings ); 103 | // Speed is still recognized for backwards compatibility 104 | duration = duration || settings.duration; 105 | // Make sure the settings are given right 106 | settings.queue = settings.queue && settings.axis.length > 1; 107 | 108 | if( settings.queue ) 109 | // Let's keep the overall duration 110 | duration /= 2; 111 | settings.offset = both( settings.offset ); 112 | settings.over = both( settings.over ); 113 | 114 | return this._scrollable().each(function(){ 115 | // Null target yields nothing, just like jQuery does 116 | if (target == null) return; 117 | 118 | var elem = this, 119 | $elem = $(elem), 120 | targ = target, toff, attr = {}, 121 | win = $elem.is('html,body'); 122 | 123 | switch( typeof targ ){ 124 | // A number will pass the regex 125 | case 'number': 126 | case 'string': 127 | if( /^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ) ){ 128 | targ = both( targ ); 129 | // We are done 130 | break; 131 | } 132 | // Relative selector, no break! 133 | targ = $(targ,this); 134 | if (!targ.length) return; 135 | case 'object': 136 | // DOMElement / jQuery 137 | if( targ.is || targ.style ) 138 | // Get the real position of the target 139 | toff = (targ = $(targ)).offset(); 140 | } 141 | $.each( settings.axis.split(''), function( i, axis ){ 142 | var Pos = axis == 'x' ? 'Left' : 'Top', 143 | pos = Pos.toLowerCase(), 144 | key = 'scroll' + Pos, 145 | old = elem[key], 146 | max = $scrollTo.max(elem, axis); 147 | 148 | if( toff ){// jQuery / DOMElement 149 | attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] ); 150 | 151 | // If it's a dom element, reduce the margin 152 | if( settings.margin ){ 153 | attr[key] -= parseInt(targ.css('margin'+Pos)) || 0; 154 | attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0; 155 | } 156 | 157 | attr[key] += settings.offset[pos] || 0; 158 | 159 | if( settings.over[pos] ) 160 | // Scroll to a fraction of its width/height 161 | attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos]; 162 | }else{ 163 | var val = targ[pos]; 164 | // Handle percentage values 165 | attr[key] = val.slice && val.slice(-1) == '%' ? 166 | parseFloat(val) / 100 * max 167 | : val; 168 | } 169 | 170 | // Number or 'number' 171 | if( settings.limit && /^\d+$/.test(attr[key]) ) 172 | // Check the limits 173 | attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max ); 174 | 175 | // Queueing axes 176 | if( !i && settings.queue ){ 177 | // Don't waste time animating, if there's no need. 178 | if( old != attr[key] ) 179 | // Intermediate animation 180 | animate( settings.onAfterFirst ); 181 | // Don't animate this axis again in the next iteration. 182 | delete attr[key]; 183 | } 184 | }); 185 | 186 | animate( settings.onAfter ); 187 | 188 | function animate( callback ){ 189 | $elem.animate( attr, duration, settings.easing, callback && function(){ 190 | callback.call(this, target, settings); 191 | }); 192 | }; 193 | 194 | }).end(); 195 | }; 196 | 197 | // Max scrolling position, works on quirks mode 198 | // It only fails (not too badly) on IE, quirks mode. 199 | $scrollTo.max = function( elem, axis ){ 200 | var Dim = axis == 'x' ? 'Width' : 'Height', 201 | scroll = 'scroll'+Dim; 202 | 203 | if( !$(elem).is('html,body') ) 204 | return elem[scroll] - $(elem)[Dim.toLowerCase()](); 205 | 206 | var size = 'client' + Dim, 207 | html = elem.ownerDocument.documentElement, 208 | body = elem.ownerDocument.body; 209 | 210 | return Math.max( html[scroll], body[scroll] ) 211 | - Math.min( html[size] , body[size] ); 212 | }; 213 | 214 | function both( val ){ 215 | return typeof val == 'object' ? val : { top:val, left:val }; 216 | }; 217 | 218 | })( jQuery ); -------------------------------------------------------------------------------- /iLotus-jekyll/static/js/test.js: -------------------------------------------------------------------------------- 1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 2 | (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= 3 | [],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), 9 | 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])*(?:`|$))/, 10 | 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]*/, 11 | 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, 12 | "");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), 13 | 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} 14 | 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"], 18 | "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"], 19 | 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"], 20 | 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"+ 21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 22 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 23 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 24 | ["cv","py"]);k(u({keywords:"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",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 25 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 26 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p 2 |

404 Page

3 |

Page not found !

4 |
5 |

The page you requested is no longer here.

6 |

It seems that the page you were trying to reach doesn't exist anymore, or maybe it has just moved. Please feel free to contact us if the problem persists or if you think it is a problem with Product Planner, please contact us.

7 |

It might help to start form the home page.

8 |
9 | -------------------------------------------------------------------------------- /iLotus-wp/category.php: -------------------------------------------------------------------------------- 1 | 2 |

3 |

Category:

4 |
5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 | -------------------------------------------------------------------------------- /iLotus-wp/content.php: -------------------------------------------------------------------------------- 1 |
2 |

3 | 4 |

5 |
-------------------------------------------------------------------------------- /iLotus-wp/footer.php: -------------------------------------------------------------------------------- 1 |
2 |

Copyright © 2010–2014 All rights reserved. Design by zhanxin.

3 |
4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iLotus-wp/functions.php: -------------------------------------------------------------------------------- 1 | '
', 5 | 'after_widget' => '
', 6 | 'before_title' => '

', 7 | 'after_title' => '

', 8 | )); 9 | function archives_list() { 10 | global $wpdb,$month; 11 | $lastpost = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_date <'" . current_time('mysql') . "' AND post_status='publish' AND post_type='post' AND post_password='' ORDER BY post_date DESC LIMIT 1"); 12 | $output = get_option('Archives'.$lastpost); 13 | if(empty($output)){ 14 | $output = ''; 15 | $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'Archives%'"); 16 | $q = "SELECT DISTINCT YEAR(post_date) AS year, MONTH(post_date) AS month, count(ID) as posts FROM $wpdb->posts p WHERE post_date <'" . current_time('mysql') . "' AND post_status='publish' AND post_type='post' AND post_password='' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC"; 17 | $monthresults = $wpdb->get_results($q); 18 | if ($monthresults) { 19 | foreach ($monthresults as $monthresult) { 20 | $thismonth = zeroise($monthresult->month, 2); 21 | $thisyear = $monthresult->year; 22 | $q = "SELECT ID, post_date, post_title, comment_count FROM $wpdb->posts p WHERE post_date LIKE '$thisyear-$thismonth-%' AND post_date AND post_status='publish' AND post_type='post' AND post_password='' ORDER BY post_date DESC"; 23 | $postresults = $wpdb->get_results($q); 24 | if ($postresults) { 25 | $text = sprintf('%s %d', $month[zeroise($monthresult->month,2)], $monthresult->year); 26 | $postcount = count($postresults); 27 | $output .= '
  • ' . $text . '  (' . count($postresults) . ' 篇文章)
      ' . "\n"; 28 | foreach ($postresults as $postresult) { 29 | if ($postresult->post_date != '0000-00-00 00:00:00') { 30 | $url = get_permalink($postresult->ID); 31 | $arc_title = $postresult->post_title; 32 | if ($arc_title) 33 | $text = wptexturize(strip_tags($arc_title)); 34 | else 35 | $text = $postresult->ID; 36 | $title_text = 'View this post 《' . wp_specialchars($text, 1) . '》'; 37 | $output .= '
    • ' . mysql2date('d日', $postresult->post_date) . ': ' . "$text"; 38 | $output .= '
    • ' . "\n"; 39 | } 40 | } 41 | } 42 | $output .= '
' . "\n"; 43 | } 44 | update_option('Archives'.$lastpost,$output); 45 | }else{ 46 | $output = '
Sorry, no posts matched your criteria.
' . "\n"; 47 | } 48 | } 49 | echo $output; 50 | } 51 | ?> -------------------------------------------------------------------------------- /iLotus-wp/header.php: -------------------------------------------------------------------------------- 1 | 6 | id="J-html" class=""> 7 | 8 | 9 | 10 | <?php global $page, $paged; 11 | wp_title(' › ', true, 'right'); 12 | bloginfo('name'); 13 | $site_description = get_bloginfo( 'description', 'display' ); 14 | if ( $paged >= 2 || $page >= 2 ) 15 | echo ' › ' . sprintf( __( 'Page %s', 'iLotus' ), max( $paged, $page ) ); 16 | ?> 17 | 18 | post_excerpt) { 23 | $description = $post->post_excerpt; 24 | } else { 25 | $description = substr(strip_tags($post->post_content),0,270); 26 | } 27 | $keywords = ""; 28 | $tags = wp_get_post_tags($post->ID); 29 | foreach ($tags as $tag ) { 30 | $keywords = $keywords . $tag->name . ", "; 31 | } 32 | } elseif(is_page()) { 33 | if ($post->post_excerpt) { 34 | $description = $post->post_excerpt; 35 | } else { 36 | $description = substr(strip_tags($post->post_content),0,270); 37 | } 38 | $page_data = get_page($post->ID); 39 | $keywords = $page_data->post_title; 40 | } elseif(is_tag()) { 41 | $description = 'PIZn 博客的标签为 ' . single_tag_title( '', false ).' 的页面'; 42 | $keywords = 'Tag, '. single_tag_title( '', false ); 43 | } elseif(is_category()) { 44 | $description = 'PIZn 博客的文章分类为 ' . single_cat_title( '', false ) . ' 的页面'; 45 | $keywords = 'Category, '. single_cat_title( "", false ); 46 | } 47 | ?> 48 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | > 61 | 70 | -------------------------------------------------------------------------------- /iLotus-wp/index.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 |

最新文章

16 |
    17 | 18 |
  • 19 | 20 |
21 |
22 | 29 |
30 | 31 | -------------------------------------------------------------------------------- /iLotus-wp/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/screenshot.png -------------------------------------------------------------------------------- /iLotus-wp/single-archives.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |

8 |

Archives

9 |
10 | 11 |
12 | 13 | -------------------------------------------------------------------------------- /iLotus-wp/single-category.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |

8 |

Categories

9 |
10 |
    11 | 12 |
13 |
14 | -------------------------------------------------------------------------------- /iLotus-wp/single-contact.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |

8 |

About Me

9 |
10 | 11 | 12 | 13 |
14 | -------------------------------------------------------------------------------- /iLotus-wp/single-lab.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |

8 |

Labs

9 |
10 | PIZn 的实验室 11 |

时光飞逝,岁月如歌。经过了 1 年的沉淀,Alice 的思想已经应用到了很多的项目开发中。回头相望,Alice 样式库的解决方案为我们带来了不少的价值,同时,我们又在不停地变化和更新中。

12 |

行事匆匆,人非昔日。我崇尚分享和积累,相信这是一种正能量。但可惜的是,一旦事情多了,那些经验会随着时间而去。于是,趁还有时间,赶紧积累沉淀下来。不为什么,只为这些解决方案,确实不错。

13 |

除了 Alice 之外,这里也会记录我的前端经验,同时还有关于 Jekyll 的相关记录。篇幅较长,这里是列表: 14 |

19 |

20 | 21 | 22 | 23 |

Alice 样式库解决方案

24 |
    25 | 26 |
  • 27 | 28 |
  • 29 | 30 |
31 | 32 | 33 | 34 | 35 |

PIZn 的前端仓库

36 |
    37 | 38 |
  • 39 | 40 |
  • 41 | 42 |
43 | 44 | 45 | 46 | 47 |

Jekyll 相关记录

48 |
    49 | 50 |
  • 51 | 52 |
  • 53 | 54 |
55 | 56 |
57 | 58 | -------------------------------------------------------------------------------- /iLotus-wp/single-link.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |

8 |

Link

9 | 14 | -------------------------------------------------------------------------------- /iLotus-wp/single-tag.php: -------------------------------------------------------------------------------- 1 | 6 | 7 |

8 |

All Tagsname . ' '; 13 | } 14 | } 15 | ?>

16 |
17 | '; 28 | foreach ($tags as $tag){ 29 | //$tt = $tag->count; 30 | //echo $tt; 31 | 32 | $tag_link = get_tag_link($tag->term_id); 33 | $html .= ""; 35 | } 36 | $html .= ''; 37 | echo $html; 38 | ?> 39 |
40 | -------------------------------------------------------------------------------- /iLotus-wp/single.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

7 |

8 |
9 | 10 |

11 |
12 |

文章分类:   标签:', '、'); ?>

13 |

声明: 本文采用 BY-NC-SA 授权。转载请注明转自:

14 |
15 |
上一篇') ): ?>
16 |
') ): ?>
17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /iLotus-wp/static/font/PTSerif.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/font/PTSerif.woff -------------------------------------------------------------------------------- /iLotus-wp/static/font/PTSerifBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/font/PTSerifBold.woff -------------------------------------------------------------------------------- /iLotus-wp/static/font/PTSerifItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/font/PTSerifItalic.woff -------------------------------------------------------------------------------- /iLotus-wp/static/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /iLotus-wp/static/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /iLotus-wp/static/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /iLotus-wp/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-wp/static/images/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/images/404.png -------------------------------------------------------------------------------- /iLotus-wp/static/images/load.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/images/load.gif -------------------------------------------------------------------------------- /iLotus-wp/static/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/images/logo.jpg -------------------------------------------------------------------------------- /iLotus-wp/static/images/zhanxin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pizn/iLotus/6ad2f993e5e7047056552b12b716b61d154c5685/iLotus-wp/static/images/zhanxin.jpg -------------------------------------------------------------------------------- /iLotus-wp/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-wp/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",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 25 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 26 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 27 | ["cv","py"]);k(u({keywords:"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",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 28 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 29 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p 1440) { 165 | right = parseInt((jQuery(window).width() - that.contenBigtWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 166 | } else { 167 | 168 | right = parseInt((jQuery(window).width() - that.contentWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 169 | } 170 | if( right < 20 ) { 171 | right = 20; 172 | } 173 | return right; 174 | }, 175 | run: function() { 176 | var that = this, topLink = $(''); 177 | topLink.appendTo($('body')); 178 | topLink.css({ 179 | 'display': 'none', 180 | 'position': 'fixed', 181 | 'right': that._changeRight() + 'px', 182 | 'bottom': that.linkBottom 183 | }); 184 | if(jQuery.scrollTo) { 185 | topLink.click(function() { 186 | that._scrollTop(); 187 | return false; 188 | }); 189 | } 190 | jQuery(window).resize(function() { 191 | that._resizeWindow(that._changeRight()); 192 | }); 193 | jQuery(window).scroll(function() { 194 | that._scrollScreen(); 195 | 196 | }); 197 | 198 | } 199 | } 200 | iLotus.showImg = { 201 | lazyTime: 600, 202 | createDom: function() { 203 | $("
").appendTo($('body')); 204 | }, 205 | showOverLay: function() { 206 | var that = this; 207 | var oWidth = $(window).width(); 208 | var oHeight = $(window).height(); 209 | $("#J-lightbox-overlay").css({ 210 | "height": oHeight, 211 | "width": oWidth 212 | }).fadeIn(that.lazyTime); 213 | }, 214 | end: function() { 215 | var that = this; 216 | $("#J-lightbox-overlay").fadeOut(that.lazyTime); 217 | $("#J-lightbox").hide(); 218 | $("#J-lightbox").find(".lotus-lightbox-close").fadeOut(that.lazyTime); 219 | $("#J-lightbox-cnt").empty(); 220 | $("#J-lightbox").attr("data-show", "false"); 221 | }, 222 | createImg: function(url) { 223 | var that = this; 224 | var img = new Image; 225 | img.src = url; 226 | var iwidth = img.width; 227 | var iheight = img.height; 228 | 229 | that.showOverLay(); 230 | 231 | var top = $(window).scrollTop() + $(window).height() / 5; 232 | var left = $(window).scrollLeft(); 233 | 234 | $("#J-lightbox").css({ 235 | "top": top + "px", 236 | "left": left + "px" 237 | }).fadeIn(that.lazyTime); 238 | 239 | $("#J-lightbox-cnt").animate({ 240 | width: iwidth, 241 | height: iheight 242 | }, that.lazyTime, 'swing'); 243 | 244 | setTimeout(function() { 245 | $("#J-lightbox").attr("data-show", "true"); 246 | $("").appendTo($("#J-lightbox-cnt")).fadeIn(that.lazyTime); 247 | $("#J-lightbox").find(".lotus-lightbox-close").css({ 248 | left: $(window).width()/2 + iwidth/2 + "px" 249 | }).fadeIn(that.lazyTime); 250 | }, that.lazyTime); 251 | 252 | $(window).resize(function() { 253 | if($("#J-lightbox").attr("data-show") == "true"){ 254 | that.showOverLay(); 255 | $("#J-lightbox").find(".lotus-lightbox-close").css({ 256 | left: $(window).width()/2 + iwidth/2 + "px" 257 | }) 258 | } 259 | }); 260 | }, 261 | run: function() { 262 | var that = this; 263 | that.createDom(); 264 | var imgArr = $(".lotus-post img"); 265 | imgArr.each(function(index, el){ 266 | $(el).click(function(e) { 267 | e.stopPropagation(); 268 | var imgUrl = el.src; 269 | that.createImg(imgUrl); 270 | }); 271 | }); 272 | 273 | $("#J-lightbox-overlay").on('click', function() { 274 | that.end(); 275 | return false; 276 | }); 277 | $("#J-lightbox").on('click', function() { 278 | that.end(); 279 | return false; 280 | }); 281 | $("#J-lightbox").find(".lotus-lightbox-close").on('click', function(e) { 282 | that.end(); 283 | return false; 284 | }); 285 | $("#J-lightbox").find(".lotus-lightbox-cnt").on('click', function(e) { 286 | e.stopPropagation(); 287 | }); 288 | } 289 | } 290 | /** 291 | * iLotus.changeTheme 292 | */ 293 | iLotus.changeTheme = { 294 | A: function() { 295 | if(this.check() == "A") { 296 | $("#J-html").addClass("iLight"); 297 | jQuery.cookie('iTheme', 'B', { expires: 7, path: '/' }); 298 | } else { 299 | $("#J-html").removeClass("iLight"); 300 | jQuery.cookie('iTheme', 'A', { expires: 7, path: '/' }); 301 | } 302 | }, 303 | B: function() { 304 | if(this.check() == "B") { 305 | $("#J-html").addClass("iLight"); 306 | } else { 307 | $("#J-html").removeClass("iLight"); 308 | } 309 | }, 310 | check: function() { 311 | var iThemeCookie = jQuery.cookie("iTheme"); 312 | if(iThemeCookie != null) { 313 | return iThemeCookie; 314 | } else { 315 | jQuery.cookie('iTheme', 'A', { expires: 7, path: '/' }); 316 | return "A"; 317 | } 318 | }, 319 | init: function() { 320 | var that = this; 321 | $("#J-changeTheme").toggle(function(e) { 322 | that.A(); 323 | }, function(e) { 324 | that.A(); 325 | }); 326 | this.B(); 327 | } 328 | } 329 | /** 330 | * iLotus JS init 331 | */ 332 | iLotus.init = { 333 | run: function() { 334 | //iLotus.checkServer.run(); 335 | iLotus.goTop.run(); 336 | iLotus.showImg.run(); 337 | iLotus.changeTheme.init(); 338 | } 339 | }; 340 | //run 341 | iLotus.init.run(); 342 | //pretty 343 | prettyPrint(); 344 | }); -------------------------------------------------------------------------------- /iLotus-wp/static/js/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 | contenBigtWidth: 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.contenBigtWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 63 | } else { 64 | 65 | right = parseInt((jQuery(window).width() - that.contentWidth + 1)/2 - that.linkWidth - that.linkRight, 10); 66 | } 67 | if( right < 20 ) { 68 | right = 20; 69 | } 70 | return right; 71 | }, 72 | run: function() { 73 | var that = this, topLink = $(''); 74 | topLink.appendTo($('body')); 75 | topLink.css({ 76 | 'display': 'none', 77 | 'position': 'fixed', 78 | 'right': that._changeRight() + 'px', 79 | 'bottom': that.linkBottom 80 | }); 81 | if(jQuery.scrollTo) { 82 | topLink.click(function() { 83 | that._scrollTop(); 84 | return false; 85 | }); 86 | } 87 | jQuery(window).resize(function() { 88 | that._resizeWindow(that._changeRight()); 89 | }); 90 | jQuery(window).scroll(function() { 91 | that._scrollScreen(); 92 | 93 | }); 94 | 95 | } 96 | } 97 | iLotus.showImg = { 98 | lazyTime: 600, 99 | createDom: function() { 100 | $("
").appendTo($('body')); 101 | }, 102 | showOverLay: function() { 103 | var that = this; 104 | var oWidth = $(window).width(); 105 | var oHeight = $(window).height(); 106 | $("#J-lightbox-overlay").css({ 107 | "height": oHeight, 108 | "width": oWidth 109 | }).fadeIn(that.lazyTime); 110 | }, 111 | end: function() { 112 | var that = this; 113 | $("#J-lightbox-overlay").fadeOut(that.lazyTime); 114 | $("#J-lightbox").hide(); 115 | $("#J-lightbox").find(".lotus-lightbox-close").fadeOut(that.lazyTime); 116 | $("#J-lightbox-cnt").empty(); 117 | $("#J-lightbox").attr("data-show", "false"); 118 | }, 119 | createImg: function(url) { 120 | var that = this; 121 | var img = new Image; 122 | img.src = url; 123 | var iwidth = img.width; 124 | var iheight = img.height; 125 | 126 | that.showOverLay(); 127 | 128 | var top = $(window).scrollTop() + $(window).height() / 5; 129 | var left = $(window).scrollLeft(); 130 | 131 | $("#J-lightbox").css({ 132 | "top": top + "px", 133 | "left": left + "px" 134 | }).fadeIn(that.lazyTime); 135 | 136 | $("#J-lightbox-cnt").animate({ 137 | width: iwidth, 138 | height: iheight 139 | }, that.lazyTime, 'swing'); 140 | 141 | setTimeout(function() { 142 | $("#J-lightbox").attr("data-show", "true"); 143 | $("").appendTo($("#J-lightbox-cnt")).fadeIn(that.lazyTime); 144 | $("#J-lightbox").find(".lotus-lightbox-close").css({ 145 | left: $(window).width()/2 + iwidth/2 + "px" 146 | }).fadeIn(that.lazyTime); 147 | }, that.lazyTime); 148 | 149 | $(window).resize(function() { 150 | if($("#J-lightbox").attr("data-show") == "true"){ 151 | that.showOverLay(); 152 | $("#J-lightbox").find(".lotus-lightbox-close").css({ 153 | left: $(window).width()/2 + iwidth/2 + "px" 154 | }) 155 | } 156 | }); 157 | }, 158 | run: function() { 159 | var that = this; 160 | that.createDom(); 161 | var imgArr = $(".lotus-post img"); 162 | imgArr.each(function(index, el){ 163 | $(el).click(function(e) { 164 | e.stopPropagation(); 165 | var imgUrl = el.src; 166 | that.createImg(imgUrl); 167 | }); 168 | }); 169 | 170 | $("#J-lightbox-overlay").on('click', function() { 171 | that.end(); 172 | return false; 173 | }); 174 | $("#J-lightbox").on('click', function() { 175 | that.end(); 176 | return false; 177 | }); 178 | $("#J-lightbox").find(".lotus-lightbox-close").on('click', function(e) { 179 | that.end(); 180 | return false; 181 | }); 182 | $("#J-lightbox").find(".lotus-lightbox-cnt").on('click', function(e) { 183 | e.stopPropagation(); 184 | }); 185 | } 186 | } 187 | /** 188 | * iLotus JS init 189 | */ 190 | iLotus.init = { 191 | run: function() { 192 | //iLotus.checkServer.run(); 193 | iLotus.goTop.run(); 194 | iLotus.showImg.run(); 195 | 196 | } 197 | }; 198 | //run 199 | iLotus.init.run(); 200 | }); -------------------------------------------------------------------------------- /iLotus-wp/static/js/jquery.scrollTo.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery.ScrollTo 3 | * Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com 4 | * Dual licensed under MIT and GPL. 5 | * Date: 4/09/2012 6 | * 7 | * @projectDescription Easy element scrolling using jQuery. 8 | * http://flesler.blogspot.com/2007/10/jqueryscrollto.html 9 | * @author Ariel Flesler 10 | * @version 1.4.3.1 11 | * 12 | * @id jQuery.scrollTo 13 | * @id jQuery.fn.scrollTo 14 | * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements. 15 | * The different options for target are: 16 | * - A number position (will be applied to all axes). 17 | * - A string position ('44', '100px', '+=90', etc ) will be applied to all axes 18 | * - A jQuery/DOM element ( logically, child of the element to scroll ) 19 | * - A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc ) 20 | * - A hash { top:x, left:y }, x and y can be any kind of number/string like above. 21 | * - A percentage of the container's dimension/s, for example: 50% to go to the middle. 22 | * - The string 'max' for go-to-end. 23 | * @param {Number, Function} duration The OVERALL length of the animation, this argument can be the settings object instead. 24 | * @param {Object,Function} settings Optional set of settings or the onAfter callback. 25 | * @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'. 26 | * @option {Number, Function} duration The OVERALL length of the animation. 27 | * @option {String} easing The easing method for the animation. 28 | * @option {Boolean} margin If true, the margin of the target element will be deducted from the final position. 29 | * @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }. 30 | * @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes. 31 | * @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends. 32 | * @option {Function} onAfter Function to be called after the scrolling ends. 33 | * @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends. 34 | * @return {jQuery} Returns the same jQuery object, for chaining. 35 | * 36 | * @desc Scroll to a fixed position 37 | * @example $('div').scrollTo( 340 ); 38 | * 39 | * @desc Scroll relatively to the actual position 40 | * @example $('div').scrollTo( '+=340px', { axis:'y' } ); 41 | * 42 | * @desc Scroll using a selector (relative to the scrolled element) 43 | * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } ); 44 | * 45 | * @desc Scroll to a DOM element (same for jQuery object) 46 | * @example var second_child = document.getElementById('container').firstChild.nextSibling; 47 | * $('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){ 48 | * alert('scrolled!!'); 49 | * }}); 50 | * 51 | * @desc Scroll on both axes, to different values 52 | * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } ); 53 | */ 54 | 55 | ;(function( $ ){ 56 | 57 | var $scrollTo = $.scrollTo = function( target, duration, settings ){ 58 | $(window).scrollTo( target, duration, settings ); 59 | }; 60 | 61 | $scrollTo.defaults = { 62 | axis:'xy', 63 | duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1, 64 | limit:true 65 | }; 66 | 67 | // Returns the element that needs to be animated to scroll the window. 68 | // Kept for backwards compatibility (specially for localScroll & serialScroll) 69 | $scrollTo.window = function( scope ){ 70 | return $(window)._scrollable(); 71 | }; 72 | 73 | // Hack, hack, hack :) 74 | // Returns the real elements to scroll (supports window/iframes, documents and regular nodes) 75 | $.fn._scrollable = function(){ 76 | return this.map(function(){ 77 | var elem = this, 78 | isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1; 79 | 80 | if( !isWin ) 81 | return elem; 82 | 83 | var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem; 84 | 85 | return /webkit/i.test(navigator.userAgent) || doc.compatMode == 'BackCompat' ? 86 | doc.body : 87 | doc.documentElement; 88 | }); 89 | }; 90 | 91 | $.fn.scrollTo = function( target, duration, settings ){ 92 | if( typeof duration == 'object' ){ 93 | settings = duration; 94 | duration = 0; 95 | } 96 | if( typeof settings == 'function' ) 97 | settings = { onAfter:settings }; 98 | 99 | if( target == 'max' ) 100 | target = 9e9; 101 | 102 | settings = $.extend( {}, $scrollTo.defaults, settings ); 103 | // Speed is still recognized for backwards compatibility 104 | duration = duration || settings.duration; 105 | // Make sure the settings are given right 106 | settings.queue = settings.queue && settings.axis.length > 1; 107 | 108 | if( settings.queue ) 109 | // Let's keep the overall duration 110 | duration /= 2; 111 | settings.offset = both( settings.offset ); 112 | settings.over = both( settings.over ); 113 | 114 | return this._scrollable().each(function(){ 115 | // Null target yields nothing, just like jQuery does 116 | if (target == null) return; 117 | 118 | var elem = this, 119 | $elem = $(elem), 120 | targ = target, toff, attr = {}, 121 | win = $elem.is('html,body'); 122 | 123 | switch( typeof targ ){ 124 | // A number will pass the regex 125 | case 'number': 126 | case 'string': 127 | if( /^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ) ){ 128 | targ = both( targ ); 129 | // We are done 130 | break; 131 | } 132 | // Relative selector, no break! 133 | targ = $(targ,this); 134 | if (!targ.length) return; 135 | case 'object': 136 | // DOMElement / jQuery 137 | if( targ.is || targ.style ) 138 | // Get the real position of the target 139 | toff = (targ = $(targ)).offset(); 140 | } 141 | $.each( settings.axis.split(''), function( i, axis ){ 142 | var Pos = axis == 'x' ? 'Left' : 'Top', 143 | pos = Pos.toLowerCase(), 144 | key = 'scroll' + Pos, 145 | old = elem[key], 146 | max = $scrollTo.max(elem, axis); 147 | 148 | if( toff ){// jQuery / DOMElement 149 | attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] ); 150 | 151 | // If it's a dom element, reduce the margin 152 | if( settings.margin ){ 153 | attr[key] -= parseInt(targ.css('margin'+Pos)) || 0; 154 | attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0; 155 | } 156 | 157 | attr[key] += settings.offset[pos] || 0; 158 | 159 | if( settings.over[pos] ) 160 | // Scroll to a fraction of its width/height 161 | attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos]; 162 | }else{ 163 | var val = targ[pos]; 164 | // Handle percentage values 165 | attr[key] = val.slice && val.slice(-1) == '%' ? 166 | parseFloat(val) / 100 * max 167 | : val; 168 | } 169 | 170 | // Number or 'number' 171 | if( settings.limit && /^\d+$/.test(attr[key]) ) 172 | // Check the limits 173 | attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max ); 174 | 175 | // Queueing axes 176 | if( !i && settings.queue ){ 177 | // Don't waste time animating, if there's no need. 178 | if( old != attr[key] ) 179 | // Intermediate animation 180 | animate( settings.onAfterFirst ); 181 | // Don't animate this axis again in the next iteration. 182 | delete attr[key]; 183 | } 184 | }); 185 | 186 | animate( settings.onAfter ); 187 | 188 | function animate( callback ){ 189 | $elem.animate( attr, duration, settings.easing, callback && function(){ 190 | callback.call(this, target, settings); 191 | }); 192 | }; 193 | 194 | }).end(); 195 | }; 196 | 197 | // Max scrolling position, works on quirks mode 198 | // It only fails (not too badly) on IE, quirks mode. 199 | $scrollTo.max = function( elem, axis ){ 200 | var Dim = axis == 'x' ? 'Width' : 'Height', 201 | scroll = 'scroll'+Dim; 202 | 203 | if( !$(elem).is('html,body') ) 204 | return elem[scroll] - $(elem)[Dim.toLowerCase()](); 205 | 206 | var size = 'client' + Dim, 207 | html = elem.ownerDocument.documentElement, 208 | body = elem.ownerDocument.body; 209 | 210 | return Math.max( html[scroll], body[scroll] ) 211 | - Math.min( html[size] , body[size] ); 212 | }; 213 | 214 | function both( val ){ 215 | return typeof val == 'object' ? val : { top:val, left:val }; 216 | }; 217 | 218 | })( jQuery ); -------------------------------------------------------------------------------- /iLotus-wp/static/js/test.js: -------------------------------------------------------------------------------- 1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 2 | (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= 3 | [],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), 9 | 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])*(?:`|$))/, 10 | 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]*/, 11 | 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, 12 | "");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), 13 | 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} 14 | 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"], 18 | "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"], 19 | 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"], 20 | 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"+ 21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 22 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 23 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 24 | ["cv","py"]);k(u({keywords:"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",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 25 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 26 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p 2 | 3 | 4 |

7 |

8 |
9 | 10 |
11 |

发表于:   标签:', '、'); ?>

12 |

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: PIZn

13 |
14 |
上一篇') ): ?>
15 |
') ): ?>
16 |
17 | 18 | 19 |
20 |
21 | 32 | 33 |
34 | 35 | -------------------------------------------------------------------------------- /iLotus-wp/style.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /************************* 3 | Theme Name: iLotus 4 | Author: 展新(pizner@gmail.com) 5 | *************************/ 6 | /************************* 7 | * style font 8 | *************************/ 9 | @font-face { 10 | font-family: 'PT Serif'; 11 | font-style: normal; 12 | font-weight: 700; 13 | src: local('PT Serif Bold'), local('PTSerif-Bold'), url(font/PTSerifBold.woff) format('woff'); 14 | } 15 | @font-face { 16 | font-family: 'PT Serif'; 17 | font-style: italic; 18 | font-weight: 400; 19 | src: local('PT Serif Italic'), local('PTSerif-Italic'), url(font/PTSerifItalic.woff) format('woff'); 20 | } 21 | @font-face { 22 | font-family: 'PT Serif'; 23 | font-style: normal; 24 | font-weight: 400; 25 | src: local('PT Serif'), local('PTSerif-Regular'), url(font/PTSerif.woff) format('woff'); 26 | } 27 | 28 | @font-face { 29 | font-family: "FontAwesome"; 30 | src: url('font/fontawesome-webfont.eot'); 31 | src: url('font/fontawesome-webfont.eot?#iefix') format('eot'), url('font/fontawesome-webfont.woff') format('woff'), url('font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg'); 32 | font-weight: normal; 33 | font-style: normal; 34 | } 35 | /************************* 36 | * reset style 37 | *************************/ 38 | html { color: #1F0909; background: #f3f2ee; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } 39 | body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, group, menu, nav, section { margin: 0; padding: 0; } 40 | article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } 41 | audio, canvas, video { display: inline-block; } 42 | body, button, input, select, textarea { font: 500 14px/1.8 'PT Serif', 'Hiragino Sans GB', sans-serif; } 43 | table { border-collapse: collapse; border-spacing: 0; width: 100%; } 44 | th { text-align: inherit; } 45 | fieldset, img { border: 0; } 46 | img { -ms-interpolation-mode: bicubic; } 47 | iframe { display: block; } 48 | blockquote { padding: 0.5em 1em 0.1em 1em; margin-bottom: 1em; background: rgba(214, 214, 214, 0.5); border-width: 1px 1px 1px 0.4em; border-color:#d8d8d8 #d8d8d8 #d8d8d8 #d0d0d0; border-style: solid; vertical-align: middle; border-radius: 0px 2px 2px 0; } 49 | blockquote blockquote { padding: 0 1em 0 1em; margin-left: 2em; border-width: 1px 1px 1px 0.4em; border-style: solid; border-color: rgba(120, 120, 120, 0.1); } 50 | acronym, abbr { border-bottom: 1px dotted; font-variant: normal; } 51 | abbr { cursor: help; } 52 | del { text-decoration: line-through; } 53 | address, caption, cite, code, den, em, th, var { font-style: normal; font-weight: 500; } 54 | ul, ol { list-style: none; } 55 | caption, th { text-align: left; } 56 | q:before, q:after { content: ''; } 57 | sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: text-top\9; } 58 | :root sub, :root sup{ vertical-align: baseline; } 59 | sup { top: -0.5em; } 60 | sub { bottom: -0.25em; } 61 | 62 | a { color: #065588; font-size: 100%; } 63 | a:hover { text-decoration: underline; } 64 | 65 | ins, a { text-decoration: none; } 66 | u, .lotus-u { text-decoration: underline; } 67 | mark { background: #FFFB99; } 68 | pre, code { font-family: "Courier New", Courier, monospace; overflow-x: auto; vertical-align: middle; } 69 | pre { border: 1px solid #d8d8d8; border-left-width: 0.4em; background: rgba(214, 214, 214, 0.5); padding: 10px; } 70 | code { color: #4d4d4d; background: rgba(214, 214, 214, 0.5); padding: 0 0.2em; border: 1px solid #bdbdbd; border-radius: 2px 2px; vertical-align:top;} 71 | small { font-size: 12px; color: #888; } 72 | 73 | ::selection {background: rgba(150, 150, 150, 0.8);} 74 | ::-moz-selection {background: rgba(150, 150, 150, 0.8);} 75 | img::selection {background: rgba(127, 191, 17, 0.2); width: 100%; } 76 | img::-moz-selection {background: rgba(127, 191, 17, 0.2); width: 100%; } 77 | 78 | /************************* 79 | * function 80 | *************************/ 81 | .fn-clear:before, .fn-clear:after { content: ""; display: table; } 82 | .fn-clear:after { clear: both } 83 | .fn-clear { zoom: 1 } 84 | .fn-img { display: block; width: 98%; text-align: center; padding: 4px 4px; border: 1px solid #d8d8d8; border-radius: 1px 1px; background: rgba(224, 224, 224, 0.8); margin-top: .3em; margin-bottom: .3em; opacity: 1;} 85 | .fn-img-lf { width: 32%; float: left; margin-right: .8em; } 86 | .fn-img-rg { width: 32%; float: right; margin-left: .8em; } 87 | .fn-img:hover { border: 1px solid #b8b8b8; box-shadow: 0 0 3px #c8c8c8; background-color: rgba(224, 224, 224, 0.2); opacity: .85; 88 | -moz-transition: box-shadow .2s linear .2s, border .2s linear .1s, background-color .2s linear .1s, opacity .2s linear .1s; 89 | -webkit-transition: box-shadow .2s linear .2s, border .2s linear .1s, background-color .2s linear .1s, opacity .2s linear .1s; 90 | transition: box-shadow .2s linear .2s, border .2s linear .1s, background-color .2s linear .1s, opacity .2s linear .1s; 91 | } 92 | 93 | 94 | /************************* 95 | * font icon 96 | *************************/ 97 | [class^="icon-"]:before, [class*=" icon-"]:before { 98 | font-family: FontAwesome; 99 | font-weight: normal; 100 | font-style: normal; 101 | display: inline-block; 102 | text-decoration: inherit; 103 | } 104 | a [class^="icon-"], a [class*=" icon-"] { 105 | display: inline-block; 106 | text-decoration: inherit; 107 | } 108 | /* makes the font 33% larger relative to the icon container */ 109 | .icon-large:before { 110 | vertical-align: top; 111 | font-size: 1.3333333333333333em; 112 | } 113 | .btn [class^="icon-"], .btn [class*=" icon-"] { 114 | line-height: .9em; 115 | } 116 | li [class^="icon-"], li [class*=" icon-"] { 117 | display: inline-block; 118 | width: 1.25em; 119 | text-align: center; 120 | } 121 | li .icon-large[class^="icon-"], li .icon-large[class*=" icon-"] { 122 | /* 1.5 increased font size for icon-large * 1.25 width */ 123 | 124 | width: 1.875em; 125 | } 126 | li[class^="icon-"], li[class*=" icon-"] { 127 | margin-left: 0; 128 | list-style-type: none; 129 | } 130 | li[class^="icon-"]:before, li[class*=" icon-"]:before { 131 | text-indent: -2em; 132 | text-align: center; 133 | } 134 | li[class^="icon-"].icon-large:before, li[class*=" icon-"].icon-large:before { 135 | text-indent: -1.3333333333333333em; 136 | } 137 | .icon-home:before { content: "\f015"; } 138 | .icon-reorder:before { content: "\f0c9"; } 139 | .icon-envelope-alt:before { content: "\f0e0"; } 140 | .icon-rss:before { content: "\f09e"; } 141 | .icon-search:before { content: "\f002"; } 142 | .icon-plus:before { content: "\f067"; } 143 | .icon-twitter:before { content: "\f099"; } 144 | .icon-github:before { content: "\f09b"; } 145 | .icon-google-plus:before { content: "\f0d5"; } 146 | .icon-circle-arrow-left:before { content: "\f0a8"; } 147 | .icon-circle-arrow-right:before { content: "\f0a9"; } 148 | 149 | /************************* 150 | * lotus design 151 | *************************/ 152 | .lotus p, .lotus pre, .lotus ul, .lotus ol, .lotus dl, .lotus form, .lotus hr, .lotus table, 153 | .lotus-p, .lotus-pre, .lotus-ul, .lotus-ol, .lotus-dl, .lotus-form, .lotus-hr, .lotus-table { margin-bottom: 1em; vertical-align: middle; } 154 | 155 | h1, h2, h3, h4, h5, h6{ font-weight: 500; font-weight: 700\9; color:#333; } 156 | 157 | .lotus h1, .lotus h2, .lotus h3, .lotus h4, .lotus h5, .lotus h6, 158 | .lotus-h1, .lotus-h2, .lotus-h3, .lotus-h4, .lotus-h5, .lotus-h6 { margin-bottom: 0.4em; line-height: 1.5;} 159 | .lotus h1, .lotus-h1 { font-size: 1.8em; } 160 | .lotus h2, .lotus-h2 { font-size: 1.6em; } 161 | .lotus h3, .lotus-h3 { font-size: 1.4em; border-bottom: 1px dotted #d8d8d8; margin-top: 1.4em;} 162 | .index h3 { margin-top: 0; } 163 | .lotus h4, .lotus-h4 { font-size: 1.2em; } 164 | .lotus h5, .lotus h6, .lotus-h5, .lotus-h6 { font-size: 1em; } 165 | .lotus .lotus-break { line-height: 18px; font-size: 14px; font-style: italic; font-weight: 400; border-bottom: 1px dotted #e8e8e8; color: #898989; } 166 | .lotus .lotus-pagetit { padding-bottom: 0.5em; margin-bottom: 0.5em; border-bottom: 1px solid #C5C5C5; } 167 | .lotus .lotus-tagline { color: #888; font-size: 13px; margin: 0 0 1.2em; font-weight: 400; } 168 | .lotus .lotus-tagline .lotus-tagline-catg { margin-left: 1em; } 169 | .lotus ul, .lotus-ul { margin-left: 1.3em; list-style: disc; } 170 | .lotus ol, .lotus-ol { list-style: decimal; margin-left: 1.9em; } 171 | .lotus li ul, .lotus li ol, .lotus-ul ul, .lotus-ul ol, .lotus-ol ul, .lotus-ol ol { margin-top: 0; margin-bottom: 0; margin-left: 2em; } 172 | .lotus li ul, .lotus-ul ul, .lotus-ol ul { list-style: circle; } 173 | .lotus table th, .lotus table td, .lotus-table th, .lotus-table td { border: 1px solid #d0d0d0; padding: 5px 10px; } 174 | .lotus table th, .lotus-table th { background: rgba(214, 214, 214, 0.5); } 175 | .lotus table thead th, .lotus-table thead th { background: rgba(214, 214, 214, 0.8);} 176 | .lotus-em, .lotus em { font-weight: 700; } 177 | .lotus-first:first-letter { display: block; float:left; line-height: 36px; height: 36px; font-size: 280%; padding: 3px 3px; margin: 5px 10px 0 0; font-weight: blod; overflow: hidden; } 178 | .lotus .lotus-last { margin-bottom: 0; } 179 | .lotus .lotus-last-view { color: #a8a8a8; font-size: 12px; } 180 | .lotus .lotus-squ { padding: 0 10px; color: #a8a8a8; font-size: 14px; } 181 | .lotus .lotus-pagebtn { border-bottom: 1px solid #dedede; margin-top: 2.2em; margin-bottom: 3px; } 182 | .lotus .lotus-anno { text-align: right; font-size: 12px; color: #A0A0A0;} 183 | .lotus .lotus-anno a { color: #1F0909; } 184 | /************************* 185 | * lotus layout 186 | *************************/ 187 | .lotus { width: 720px; padding: 1em 0 0em 0; margin: 0 auto; } 188 | .index { padding: 1em 0 0 0;} 189 | .index h3 { border-bottom: none; } 190 | .lotus-nav { 191 | width: 58px; 192 | height: 100%; 193 | background: #474747; 194 | background: -moz-linear-gradient( 180deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 195 | background: -webkit-linear-gradient( 180deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 196 | background: -ms-linear-gradient( 180deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 197 | background: linear-gradient( 180deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 198 | border-left: 1px solid #212121; 199 | position: fixed; 200 | left: 0; 201 | top: 0; 202 | } 203 | .lotus-nav ul { list-style: none; width: 58px; margin: 0 0; border-bottom: 1px solid #313131; } 204 | .lotus-nav ul li { height: 42px; display: block; font-size: 20px; line-height: 42px; text-align: center; border-top: 1px solid #313131; } 205 | .lotus-nav ul .home { margin-bottom: 3.8em; border-top: 0; } 206 | .lotus-nav ul li a { color: #ffffff; display: block; cursor: pointer; } 207 | .lotus-nav ul li a:hover, .lotus-nav ul .current a { text-decoration: none; 208 | box-shadow: 1px 1px 24px rgba(0, 0, 0, 0.8) inset; 209 | -moz-transition: box-shadow .3s linear; 210 | -webkit-transition: box-shadow .3s linear; 211 | transition: box-shadow .3s linear; 212 | text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); 213 | } 214 | .lotus-nav ul .last { position: relative; } 215 | .lotus-logo { 216 | border-bottom: 1px solid #d0d0d0; 217 | } 218 | .lotus-article { 219 | margin: 2em 0 2em 0; 220 | border-bottom: 1px dotted #c8c8c8; 221 | } 222 | .lotus-date { color: #a0a0a0; } 223 | .lotus-double { 224 | margin-bottom: 3em; 225 | } 226 | 227 | .lotus-double .article { 228 | float: left; 229 | } 230 | .lotus-double .article-first { 231 | width: 54%; 232 | border-right: 1px dotted #C8C8C8; 233 | } 234 | .lotus-double .article-last { 235 | width: 42%; 236 | margin-left: 1.5em; 237 | } 238 | .lotus-breadcrub { 239 | padding-bottom: 1em; 240 | } 241 | .lotus-archives { 242 | margin-top: 1.5em; 243 | } 244 | .lotus-archives .count { 245 | color: #898989; 246 | font-weight: 400; 247 | } 248 | .lotus-pages { 249 | margin-top: 1em; 250 | } 251 | .lotus-pages a, .lotus-pages span { 252 | text-decoration:none; 253 | float:left; 254 | display: inline; 255 | margin:0 5px 0 0; 256 | } 257 | .lotus-pages .pages { 258 | line-height:22px; 259 | float:left; 260 | display:inline; 261 | margin-right:10px; 262 | margin-left: 0; 263 | height:22px; 264 | position:relative; 265 | top:-1px; 266 | } 267 | .lotus-pages a.page, .lotus-pages .last, .lotus-pages .first { 268 | height:20px; 269 | line-height:20px; 270 | padding:0 8px; 271 | margin-top:1px; 272 | font-weight: normal; 273 | } 274 | .lotus-pages a:hover, .lotus-pages span.current, .lotus-pages a.last:hover, .lotus-pages a.first:hover { 275 | height: 20px; 276 | line-height: 20px; 277 | padding: 0 8px; 278 | } 279 | .lotus-pages a.page:hover { 280 | height:20px; 281 | line-height:20px; 282 | padding:0 8px; 283 | background: #065588; 284 | color: #f3f2ee; 285 | } 286 | 287 | .lotus-pages span.current { 288 | height: 20px; 289 | line-height: 20px; 290 | padding: 0 8px; 291 | } 292 | .lotus-pages .extend { 293 | float:left; 294 | display:inline; 295 | margin:0 5px; 296 | line-height: 16px; 297 | font-weight:bold; 298 | } 299 | .lotus-tags a, .lotus-tags .tags-normal { 300 | display: inline; 301 | padding: 2px 8px; 302 | } 303 | .lotus-tags .tags-big { 304 | font-size: 20px; 305 | font-weight: 500; 306 | } 307 | .lotus-tag .tags-larget { 308 | font-size: 28px; 309 | font-weight: 500; 310 | } 311 | .lotus-tags a:hover { 312 | } 313 | #link .lotus-link { 314 | list-style: none; 315 | margin-left: 0; 316 | } 317 | #link .lotus-link-item { 318 | margin-bottom: 1em; 319 | } 320 | .lotus-404 { 321 | padding-top: 20em; 322 | background: url(images/404.png) no-repeat center 0; 323 | } 324 | .lotus-nextpage { 325 | margin-top: 1em; 326 | } 327 | .lotus-nextpage .lotus-nextpage-left { 328 | float: left; 329 | } 330 | .lotus-nextpage .lotus-nextpage-right { 331 | float: right; 332 | } 333 | .lotus-disqus { 334 | margin-top: 2em; 335 | } 336 | .lotus-footer { 337 | margin-top: 3em; 338 | } 339 | .lotus-footer-link a { 340 | color: #f3f2ee; 341 | } 342 | 343 | 344 | /************************* 345 | * violet logo 346 | *************************/ 347 | .violet-logo { float: left; position: relative; width: 66px; height: 66px; margin: 20px 0 12px 0px; -moz-border-radius: 33px 33px; -webkit-border-radius: 33px 33px; -o-border-radius: 33px 33px; border-radius: 33px 33px; } 348 | .v-position-1, .v-position-2, .v-position-3, .v-position-4, .v-position-5, .v-position-6, .v-position-7 { position: absolute; } 349 | .violet-logo .v-position-1 { top: 0; left: 23px;} 350 | .violet-logo .v-position-2 { top: 9px; right: 6px; } 351 | .violet-logo .v-position-3 { bottom: 9px; right: 6px; } 352 | .violet-logo .v-position-4 { bottom: 0; left: 23px; } 353 | .violet-logo .v-position-5 { bottom: 9px; left: 6px; } 354 | .violet-logo .v-position-6 { top: 9px; left: 6px;} 355 | .violet-logo .v-petal { position: relative; width: 20px; height: 28px; } 356 | .v-deg-0 { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 357 | .v-deg-60 { -webkit-transform: rotate(60deg); -moz-transform: rotate(60deg); -o-transform: rotate(60deg); transform: rotate(60deg); } 358 | .v-deg-120 { -webkit-transform: rotate(120deg); -moz-transform: rotate(120deg); -o-transform: rotate(120deg); transform: rotate(120deg); } 359 | .v-deg-180 { -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } 360 | .v-deg-240 { -webkit-transform: rotate(-120deg); -moz-transform: rotate(-120deg); -o-transform: rotate(-120deg); transform: rotate(-120deg); } 361 | .v-deg-300 { -webkit-transform: rotate(-60deg); -moz-transform: rotate(-60deg); -o-transform: rotate(-60deg); transform: rotate(-60deg); } 362 | .v-color-1 .v-petal-top, .v-color-1 .v-petal-left-det, .v-color-1 .v-petal-right-det { background: #525252; } 363 | .v-color-2 .v-petal-top, .v-color-2 .v-petal-left-det, .v-color-2 .v-petal-right-det { background: #525252; } 364 | .v-color-3 .v-petal-top, .v-color-3 .v-petal-left-det, .v-color-3 .v-petal-right-det { background: #525252; } 365 | .v-color-4 .v-petal-top, .v-color-4 .v-petal-left-det, .v-color-4 .v-petal-right-det { background: #525252; } 366 | .v-color-5 .v-petal-top, .v-color-5 .v-petal-left-det, .v-color-5 .v-petal-right-det { background: #525252; } 367 | .v-color-6 .v-petal-top, .v-color-6 .v-petal-left-det, .v-color-6 .v-petal-right-det { background: #525252; } 368 | .v-petal-left, .v-petal-right { position: absolute; top: 8px; height: 20px; overflow: hidden;} 369 | .v-petal-left { left: 0; width: 11px; } 370 | .v-petal-right { right: 0px; width: 10px; } 371 | .v-petal-top, .v-petal-left-det, .v-petal-right-det { position: absolute; width: 20px; } 372 | .v-petal-top { top: 0; right: 0; height: 10px; -moz-border-radius: 9px 9px 0 0; -webkit-border-radius: 9px 9px 0 0; -o-border-radius: 9px 9px 0 0; border-radius: 9px 9px 0px 0px; } 373 | .v-petal-left-det { left: 0; height: 20px; -moz-border-radius: 0 0 0 20px; -webkit-border-radius: 0 0 0 20px; -o-border-radius: 0 0 0 20px; border-radius: 0 0 0 20px; } 374 | .v-petal-right-det { right: 0; height: 20px; -moz-border-radius: 0 0 20px 0; -webkit-border-radius: 0 0 20px 0; -o-border-radius: 0 0 20px 0; border-radius: 0px 0px 20px 0px; } 375 | 376 | /** violet-site **/ 377 | .violet-site { float: left; margin: 20px 0 12px 14px; position: relative; width: 200px; color: #525252; } 378 | .violet-site h1, .violet-site h1 a { font-family: "Times New Roman",Times,serif; font-size: 32px; font-weight: normal; color: #525252; margin-bottom: 0;} 379 | .violet-site h1 a:hover { color: #323232; text-decoration: none; } 380 | .violet-site h1 span { display: inline; padding: 0px 5px 0 3px; position: relative; line-height: 12px; font-size: 10px; font-family: Verdana,Arial,Helvetica,sans-serif; color: #525252; background: #d8d8d8; border-radius: 7px 0px 7px 0; top: -23px; left: 5px; font-weight: 600;} 381 | .violet-site h2 { padding-top: 2px; font-size: 14px; line-height: 14px; border-top: 1px solid #313131; } 382 | 383 | 384 | /************************* 385 | * iPad 386 | *************************/ 387 | @media only screen and (min-width: 768px) and (max-width: 1024px) { 388 | .lotus { 389 | width: 600px; 390 | } 391 | } 392 | /************************* 393 | * iPhone 394 | *************************/ 395 | @media only screen and (min-width: 320px) and (max-width: 767px) { 396 | 397 | .lotus { 398 | width: 90%; 399 | padding: 7em 5% 0 5%; 400 | position: relative; 401 | } 402 | .index { 403 | padding-top: 3em; 404 | } 405 | .lotus-nav { 406 | width: 100%; 407 | height: 45px; 408 | top: 0; 409 | position: absolute; 410 | z-index: 1000; 411 | background: -moz-linear-gradient( 90deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 412 | background: -webkit-linear-gradient( 90deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 413 | background: -ms-linear-gradient( 90deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 414 | background: linear-gradient( 90deg, #292929 0%, #404040 8%, #474747 14%, #474747 100%); 415 | border-left: none; 416 | border-bottom: 1px solid #212121; 417 | } 418 | .lotus-nav ul { width: 320px; margin: 0 auto; } 419 | .lotus-nav ul li { float: left; width: 60px; line-height: 42px; border-top: 0; } 420 | .lotus-nav ul .home { margin-bottom: 0 ;} 421 | .lotus-double .article-first { 422 | width: 100%; 423 | border-right: none; 424 | border-bottom: 1px dotted #C8C8C8; 425 | } 426 | .lotus-double .article-last { 427 | width: 100%; 428 | margin-left: 0; 429 | margin-top: 2em; 430 | } 431 | } 432 | -------------------------------------------------------------------------------- /iLotus-wp/tag.php: -------------------------------------------------------------------------------- 1 | 2 |

3 |

Tag:

4 |
5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 | --------------------------------------------------------------------------------