-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
288 lines (195 loc) · 11.1 KB
/
index.html
File metadata and controls
288 lines (195 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>LRain 2021</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="LRain">
<meta property="og:url" content="http://yoursite.com/index.html">
<meta property="og:site_name" content="LRain">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="LRain">
<meta name="twitter:description">
<link rel="alternative" href="/atom.xml" title="LRain" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link rel="stylesheet" href="/css/style.css" type="text/css">
<!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.min.js"></script><![endif]-->
</head>
<body>
<div id="container">
<div id="wrap">
<header id="header">
<div id="banner"></div>
<div id="header-outer" class="outer">
<div id="header-title" class="inner">
<h1 id="logo-wrap">
<a href="/" id="logo">LRain 2021</a>
</h1>
</div>
<div id="header-inner" class="inner">
<nav id="main-nav">
<a id="main-nav-toggle" class="nav-icon"></a>
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
</nav>
<nav id="sub-nav">
<a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
<a id="nav-search-btn" class="nav-icon" title="Search"></a>
</nav>
<div id="search-form-wrap">
<form action="http://www.baidu.com/baidu" method="get" accept-charset="utf-8" class="search-form">
<input type="search" name="word" maxlength="20" class="search-form-input" placeholder="Search">
<input type="submit" value="" class="search-form-submit">
<input name=tn type=hidden value="bds">
<input name=cl type=hidden value="3">
<input name=ct type=hidden value="2097152">
<input type="hidden" name="si" value="yoursite.com">
</form>
</div>
</div>
</div>
</header>
<div class="outer">
<section id="main">
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2015/08/20/hello-world/" class="article-date">
<time datetime="2015-08-20T05:31:48.000Z" itemprop="datePublished">2015-08-20</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2015/08/20/hello-world/">Hello World</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Welcome to <a href="http://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="http://hexo.io/docs/" target="_blank" rel="external">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="http://hexo.io/docs/troubleshooting.html" target="_blank" rel="external">trobuleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="external">GitHub</a>.</p>
<h2 id="Quick_Start">Quick Start</h2><h3 id="Create_a_new_post">Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/writing.html" target="_blank" rel="external">Writing</a></p>
<h3 id="Run_server">Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/server.html" target="_blank" rel="external">Server</a></p>
<h3 id="Generate_static_files">Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<h3 id="Deploy_to_remote_sites">Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="http://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2015/08/20/hello-world/" data-id="cidjtycgh0001vchfv21sgow3" class="article-share-link" data-share="baidu">分享到</a>
<a href="http://yoursite.com/2015/08/20/hello-world/#ds-thread" class="article-comment-link">Comments</a>
</footer>
</div>
</article>
<article id="post-My-New-Post" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2014/09/16/My-New-Post/" class="article-date">
<time datetime="2014-09-16T02:00:59.000Z" itemprop="datePublished">2014-09-16</time>
</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2014/09/16/My-New-Post/">键盘事件keydown、keypress、keyup随笔整理总结</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<hr>
<p>####英文输入法:####</p>
<p>事件触发顺序:<code>keydown</code> - > <code>keypress</code> - > <code>keyup</code></p>
<p>####中文输入法:####</p>
<ul>
<li>firfox:输入触发<code>keydown</code>,回车确认输入触发<code>keyup</code></li>
<li>chrome:输入触发<code>keydown</code>、<code>keyup</code>,回车确认输入只触发<code>keydown</code></li>
<li>IE:输入触发<code>keydown</code>、<code>keyup</code>,回车确认输入触发<code>keydown</code>,<code>keyup</code></li>
<li>Safari:输入触发<code>keydown</code>、<code>keyup</code>,回车确认输入触发<code>keydown</code>,<code>keyup</code></li>
<li>opera:输入触发<code>keydown</code>、<code>keyup</code>,回车确认输入触发<code>keydown</code>,<code>keyup</code></li>
</ul>
<p><code>keypress</code>事件不能对系统功能键(例如:后退、删除等,其中对中文输入法不能有效响应)进行正常的响应,</p>
<p><code>keydown</code>和<code>keyup</code>均可以对系统功能键进行有效的拦截,但事件截获的位置不同。</p>
<p>键盘中的键分为字符(可打印)键和功能键(不可打印),系统功能键包括如下:</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$(<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>{</span><br><span class="line"> $(<span class="string">'div'</span>).html(<span class="string">'I am a div.'</span>);</span><br><span class="line">});</span><br></pre></td></tr></table></figure>
</div>
<footer class="article-footer">
<a data-url="http://yoursite.com/2014/09/16/My-New-Post/" data-id="cidjtycfx0000vchfn1v4o07i" class="article-share-link" data-share="baidu">分享到</a>
<a href="http://yoursite.com/2014/09/16/My-New-Post/#ds-thread" class="article-comment-link">Comments</a>
</footer>
</div>
</article>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/08/">八月 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/09/">九月 2014</a><span class="archive-list-count">1</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">近期文章</h3>
<div class="widget">
<ul>
<li>
<a href="/2015/08/20/hello-world/">Hello World</a>
</li>
<li>
<a href="/2014/09/16/My-New-Post/">键盘事件keydown、keypress、keyup随笔整理总结</a>
</li>
</ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">友情链接</h3>
<div class="widget">
<ul>
</ul>
</div>
</div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2015 LRain<br>
Powered by <a href="http://zespia.tw/hexo/" target="_blank">Hexo</a>
.
Theme by <a href="https://github.com/xiangming/landscape-plus" target="_blank">Landscape+</a>
</div>
</div>
</footer>
</div>
<nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
</nav>
<!-- 多说公共js代码 start -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"true"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共js代码 end -->
<!-- 百度分享 start -->
<div id="article-share-box" class="article-share-box">
<div id="bdshare" class="bdsharebuttonbox article-share-links">
<a class="article-share-weibo" data-cmd="tsina" title="分享到新浪微博"></a>
<a class="article-share-weixin" data-cmd="weixin" title="分享到微信"></a>
<a class="article-share-qq" data-cmd="sqq" title="分享到QQ"></a>
<a class="article-share-renren" data-cmd="renren" title="分享到人人网"></a>
<a class="article-share-more" data-cmd="more" title="更多"></a>
</div>
</div>
<script>window._bd_share_config={"common":{},"share":{"bdCustomStyle":"nocss.css"}};with(document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion="+~(-new Date()/36e5)];</script>
<!-- 百度分享 end -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/js/script.js" type="text/javascript"></script>
</div>
</body>
</html>