-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
896 lines (493 loc) · 22.6 KB
/
index.html
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
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
<!DOCTYPE HTML>
<html lang="zh-CN">
<script type="text/javascript">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?95abaf5b7869332b63c3c8085d28e860";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</script>
<head>
<meta charset="UTF-8">
<title>junwenZhang's room</title>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<meta name="author" content="junwenZhang">
<meta name="description" content="stay hungry, stay foolish">
<meta property="og:type" content="website">
<meta property="og:title" content="junwenZhang's room">
<meta property="og:url" content="http://junwenzhang.com/index.html">
<meta property="og:site_name" content="junwenZhang's room">
<meta property="og:description" content="stay hungry, stay foolish">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="junwenZhang's room">
<meta name="twitter:description" content="stay hungry, stay foolish">
<link rel="alternative" href="/atom.xml" title="junwenZhang's room" type="application/atom+xml">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/jacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/jacman.jpg">
<link rel="stylesheet" href="/css/style.css" type="text/css">
</head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/logo.png" alt="junwenZhang's room" title="junwenZhang's room"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="junwenZhang's room">junwenZhang's room</a></h1>
<h2 class="blog-motto">stay hungry, stay foolish</h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">首页</a></li>
<li><a href="/archives">归档</a></li>
<li><a href="/about">关于</a></li>
<li>
<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
<label>Search</label>
<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="搜索" />
<input type="hidden" name="q" value="site:junwenzhang.com">
</form>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/09/02/爬虫抓取虾米民谣信息/" title="爬虫抓取虾米民谣信息" itemprop="url">爬虫抓取虾米民谣信息</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-09-02T12:00:00.000Z" itemprop="datePublished"> 发表于 2015-09-02</time>
</p>
</header>
<div class="article-content">
<p>经常用虾米听歌,突然想知道虾米上播放量最高的民谣歌曲是哪些<br>空闲时间写了个爬虫程序爬了所有民谣歌手歌曲播放量的数据,找出前100位,并且做了一个精选集<br>结果如下:</p>
<p class="article-more-link">
<a href="/2015/09/02/爬虫抓取虾米民谣信息/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Python/">Python</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/Python/">Python</a><a href="/tags/music/">music</a><a href="/tags/xiami/">xiami</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/09/02/爬虫抓取虾米民谣信息/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/09/02/爬虫抓取虾米民谣信息/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/08/17/批量下载百度图片/" title="用Python批量下载百度搜索出来的图片" itemprop="url">用Python批量下载百度搜索出来的图片</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-08-17T09:00:00.000Z" itemprop="datePublished"> 发表于 2015-08-17</time>
</p>
</header>
<div class="article-content">
<p>经常要找一些图片素材,每次都是通过百度来进行搜索找图,但每次打开一张图片下载未免有点效率太低<br>尝试写一个脚本来做自动下载图片,Python是最适合做这个事情的语言了,直接看代码吧</p>
<p class="article-more-link">
<a href="/2015/08/17/批量下载百度图片/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Python/">Python</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/Image/">Image</a><a href="/tags/Python/">Python</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/08/17/批量下载百度图片/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/08/17/批量下载百度图片/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/08/09/保留Eclipse目录结构,工程无缝导入Android Studio/" title="保留Eclipse目录结构,工程无缝导入Android Studio" itemprop="url">保留Eclipse目录结构,工程无缝导入Android Studio</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-08-09T10:00:00.000Z" itemprop="datePublished"> 发表于 2015-08-09</time>
</p>
</header>
<div class="article-content">
<h1 id="前言">前言</h1><p>上一次Android Studio导入YunOS Eclipse工程遗留一个问题:如何在导入之后还可以保持原有的目录结构,方便我们使用Git进行代码版本管理,接下来我们就来解决这个问题<br>Android Studio版本:1.3</p>
<p class="article-more-link">
<a href="/2015/08/09/保留Eclipse目录结构,工程无缝导入Android Studio/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Android技术/">Android技术</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/Android-Studio/">Android Studio</a><a href="/tags/Eclipse/">Eclipse</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/08/09/保留Eclipse目录结构,工程无缝导入Android Studio/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/08/09/保留Eclipse目录结构,工程无缝导入Android Studio/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/06/28/AndroidStuido快速导入Eclipse工程/" title="AndroidStudio快速导入Eclipse工程---1/2" itemprop="url">AndroidStudio快速导入Eclipse工程---1/2</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-06-28T02:55:00.000Z" itemprop="datePublished"> 发表于 2015-06-28</time>
</p>
</header>
<div class="article-content">
<h1 id="前言">前言</h1><p> 目前Android studio已经成为google主推的IDE工具,同时也有很多方便的工具可以供使用,例如memory monitor,cpu info等等,本文主要讲述如何将Eclipse工程导入Android studio, 以Gallery相册为例,先行记录下来,避免忘记。因时间有限,遗留了很多问题,希望一起讨论解决</p>
<p class="article-more-link">
<a href="/2015/06/28/AndroidStuido快速导入Eclipse工程/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/Android技术/">Android技术</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/Android-Studio/">Android Studio</a><a href="/tags/Eclipse/">Eclipse</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/06/28/AndroidStuido快速导入Eclipse工程/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/06/28/AndroidStuido快速导入Eclipse工程/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/06/17/Mac下基于Github搭建个人Blog/" title="Mac下基于Github搭建个人Blog" itemprop="url">Mac下基于Github搭建个人Blog</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-06-17T06:42:11.000Z" itemprop="datePublished"> 发表于 2015-06-17</time>
</p>
</header>
<div class="article-content">
<p>记录一下在Mac下机遇Github搭建个人blog的过程<br>主要参考<a href="http://cnfeat.com/2014/05/10/2014-05-11-how-to-build-a-blog/">如何搭建一个独立博客——简明Github Pages与Hexo教程</a><br>
<p class="article-more-link">
<a href="/2015/06/17/Mac下基于Github搭建个人Blog/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/个人站点/">个人站点</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/Github/">Github</a><a href="/tags/Hexo/">Hexo</a><a href="/tags/Mac/">Mac</a><a href="/tags/Markdown/">Markdown</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/06/17/Mac下基于Github搭建个人Blog/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/06/17/Mac下基于Github搭建个人Blog/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/06/16/马拉松计划/" title="马拉松计划" itemprop="url">马拉松计划</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-06-16T08:17:50.000Z" itemprop="datePublished"> 发表于 2015-06-16</time>
</p>
</header>
<div class="article-content">
<p>目标 : 北马<br>参赛时间 : 2015.9.20<br>训练时间 : 2015.6.15-2015.9.20<br>训练计划 : 共14周</p>
<p class="article-more-link">
<a href="/2015/06/16/马拉松计划/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/旅行运动/">旅行运动</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/马拉松/">马拉松</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/06/16/马拉松计划/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/06/16/马拉松计划/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/06/16/JPG-Flash-Flag/" title="JPG Flash Flag" itemprop="url">JPG Flash Flag</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-06-16T07:57:55.000Z" itemprop="datePublished"> 发表于 2015-06-16</time>
</p>
</header>
<div class="article-content">
<p>相册中的闪关灯的开关值是通过exif parse出来的,Exif 2.1标准中通过判断返回值为0则认为关闭了闪关灯<br>但是Exif 2.2 标准中规定了有3个值可以认为是关闭了闪关灯,见下图代码<br>
<p class="article-more-link">
<a href="/2015/06/16/JPG-Flash-Flag/#more">Read More</a>
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-tags">
<span></span> <a href="/tags/Image/">Image</a><a href="/tags/Study/">Study</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/06/16/JPG-Flash-Flag/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/06/16/JPG-Flash-Flag/" data-count-type="comments"> </a>
</div>
</footer>
</article>
<article class="post-expand post" itemprop="articleBody">
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="/2015/06/16/my-first-post/" title="Junwen Blog" itemprop="url">Junwen Blog</a>
</h1>
<p class="article-author">By
<a href="/about" title="junwenZhang" target="_blank" itemprop="author">junwenZhang</a>
<p class="article-time">
<time datetime="2015-06-16T03:35:37.000Z" itemprop="datePublished"> 发表于 2015-06-16</time>
</p>
</header>
<div class="article-content">
<p>什么都懂一点的土著非典型程序员,记录对这个世界的认知</p>
<p class="article-more-link">
</p>
</div>
<footer class="article-footer clearfix">
<div class="article-catetags">
<div class="article-categories">
<span></span>
<a class="article-category-link" href="/categories/随笔生活/">随笔生活</a>
</div>
<div class="article-tags">
<span></span> <a href="/tags/随笔/">随笔</a>
</div>
</div>
<div class="comments-count">
<span></span>
<a href="/2015/06/16/my-first-post/#comments" class="ds-thread-count comments-count-link" data-thread-key="2015/06/16/my-first-post/" data-count-type="comments"> </a>
</div>
</footer>
</article>
</div>
<div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">
<div class="categorieslist">
<p class="asidetitle">分类</p>
<ul>
<li><a href="/categories/Android技术/" title="Android技术">Android技术<sup>2</sup></a></li>
<li><a href="/categories/Python/" title="Python">Python<sup>2</sup></a></li>
<li><a href="/categories/个人站点/" title="个人站点">个人站点<sup>1</sup></a></li>
<li><a href="/categories/旅行运动/" title="旅行运动">旅行运动<sup>1</sup></a></li>
<li><a href="/categories/随笔生活/" title="随笔生活">随笔生活<sup>1</sup></a></li>
</ul>
</div>
<div class="tagslist">
<p class="asidetitle">标签</p>
<ul class="clearfix">
<li><a href="/tags/Image/" title="Image">Image<sup>2</sup></a></li>
<li><a href="/tags/Android-Studio/" title="Android Studio">Android Studio<sup>2</sup></a></li>
<li><a href="/tags/Eclipse/" title="Eclipse">Eclipse<sup>2</sup></a></li>
<li><a href="/tags/Python/" title="Python">Python<sup>2</sup></a></li>
<li><a href="/tags/Study/" title="Study">Study<sup>1</sup></a></li>
<li><a href="/tags/Markdown/" title="Markdown">Markdown<sup>1</sup></a></li>
<li><a href="/tags/随笔/" title="随笔">随笔<sup>1</sup></a></li>
<li><a href="/tags/马拉松/" title="马拉松">马拉松<sup>1</sup></a></li>
<li><a href="/tags/Mac/" title="Mac">Mac<sup>1</sup></a></li>
<li><a href="/tags/Github/" title="Github">Github<sup>1</sup></a></li>
<li><a href="/tags/Hexo/" title="Hexo">Hexo<sup>1</sup></a></li>
<li><a href="/tags/xiami/" title="xiami">xiami<sup>1</sup></a></li>
<li><a href="/tags/music/" title="music">music<sup>1</sup></a></li>
</ul>
</div>
<div class="linkslist">
<p class="asidetitle">友情链接</p>
<ul>
<li>
<a href="https://coderq.com" target="_blank" title="一个面向程序员交流分享的新一代社区">码农圈</a>
</li>
<li>
<a href="http://wuchong.me" target="_blank" title="Jark's Blog">Jark's Blog</a>
</li>
<li>
<a href="http://weibo.com/1307558894" target="_blank" title="微博">微博</a>
</li>
<li>
<a href="http://www.zhihu.com/people/xi-you-80-1" target="_blank" title="知乎">知乎</a>
</li>
</ul>
</div>
<div class="rsspart">
<a href="/atom.xml" target="_blank" title="rss">RSS 订阅</a>
</div>
</aside>
</div>
</div>
<footer><div id="footer" >
<div class="line">
<span></span>
<div class="author"></div>
</div>
<section class="info">
<p> Hello ,I'm JunwenZhang in Alibaba. <br/>
This is my room, believe it or not.</p>
</section>
<div class="social-font" class="clearfix">
<a href="http://weibo.com/http://weibo.com/1307558894" target="_blank" class="icon-weibo" title="微博"></a>
<a href="mailto:[email protected]" target="_blank" class="icon-email" title="Email Me"></a>
</div>
<p class="copyright">
Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2015
<a href="/about" target="_blank" title="junwenZhang">junwenZhang</a>
</p>
</div>
</footer>
<script src="/js/jquery-2.0.3.min.js"></script>
<script src="/js/jquery.imagesloaded.min.js"></script>
<script src="/js/gallery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
});
</script>
<script type="text/javascript">
var duoshuoQuery = {short_name:"junwenzhang"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.article-content').each(function(i){
$(this).find('img').each(function(){
if ($(this).parent().hasClass('fancybox')) return;
var alt = this.alt;
if (alt) $(this).after('<span class="caption">' + alt + '</span>');
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
});
$(this).find('.fancybox').each(function(){
$(this).attr('rel', 'article' + i);
});
});
if($.fancybox){
$('.fancybox').fancybox();
}
});
</script>
<!-- Analytics Begin -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fnull' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- Analytics End -->
<!-- Totop Begin -->
<div id="totop">
<a title="返回顶部"><img src="/img/scrollup.png"/></a>
</div>
<script src="/js/totop.js"></script>
<!-- Totop End -->
<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->
<!-- MathJax End -->
<!-- Tiny_search Begin -->
<!-- Tiny_search End -->
</body>
</html>