-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
779 lines (595 loc) · 30.7 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
<!DOCTYPE html>
<html class="full-height">
<head>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.1/css/bulma.min.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<title>Tong's blog</title>
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Tong Zhang's personal blog">
<meta property="og:type" content="website">
<meta property="og:title" content="Tong's blog">
<meta property="og:url" content="http://tongzhang.me/index.html">
<meta property="og:site_name" content="Tong's blog">
<meta property="og:description" content="Tong Zhang's personal blog">
<meta property="og:locale" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Tong's blog">
<meta name="twitter:description" content="Tong Zhang's personal blog">
<link rel="alternate"
href="/atom.xml"
title="Tong's blog"
type="application/atom+xml">
<link rel="icon"
href="/images/favicon.gif">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro"
rel="stylesheet"
type="text/css">
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="/css/nav.css">
<link rel="stylesheet" href="/css/layout.css">
</head>
<body>
<header id="navbar" class="overflow-hidden">
<div class="container">
<nav class="nav">
<div class="nav-left">
<a href="/" class="nav-item" style="font-size: 20px;">
<span class="logo">Tong</span>'s Blog
</a>
</div>
<div class="nav-center is-hidden position-relative" id="search_container">
<div class="nav-item full-width full-height">
<i class="fa fa-search has-padding" aria-hidden="true"></i>
<input type="text" id="search_input" class="search-input full-height full-width" placeholder="Search post" autofocus>
<i id="close_search" class="fa fa-times" aria-hidden="true"></i>
</div>
<div id="search_result"></div>
</div>
<div class="nav-right nav-menu">
<a class="nav-item" id="search">
<i class="fa fa-search" aria-hidden="true"></i>
</a>
<a class="nav-item" href="/">
Home
</a>
<a class="nav-item" href="/works">
My Works
</a>
<a class="nav-item" href="/about">
About
</a>
<a class="nav-item" href="/tags">
Tags
</a>
</div>
<span class="nav-toggle" id="navMenuDropdown">
<span></span>
<span></span>
<span></span>
</span>
</nav>
<div class="navbar-menu position-absolute full-width content-box is-hidden-desktop is-flex flex-column center" style="z-index: 2">
<a class="nav-item flex-1" href="/">
Home
</a>
<a class="nav-item flex-1" href="/works">
My Works
</a>
<a class="nav-item flex-1" href="/about">
About
</a>
<a class="nav-item flex-1" href="/tags">
Tags
</a>
</div>
</div>
</header>
<div id="main-wrap" class="position-relative" style="margin-top: 55px;">
<div class="main-inner-content">
<style>
.post-hover:hover {
box-shadow: inset 0 0 100px #000;
transition: box-shadow .2s;
}
.sub-post-container .post-hover:hover h3 {
text-decoration: underline gray;
}
.primary-item-main {
height: 330px;
background-size: cover;
}
.primary-container .title,
.primary-container .sub-title,
.primary-container .post-content-text,
.primary-container .date {
color: #fff;
}
.post-content-text {
color: #f1f1f1!important;
}
.primary-container .post-hover {
background: black;
}
.content-bg-mask {
background: rgba(0,0,0,.4);
}
</style>
<div style="background: #f5f8f9;">
<div id="main-container" class="container" style="padding-top: 20px;">
<div class="is-flex main-content justify-center">
<section class="column is-9">
<div class="primary-container content-box is-flex-desktop clear-padding bottom-line" style="margin-bottom: 25px;">
<div class="column is-7-desktop">
<a href="/2017/01/28/UI-Router-in-AngularJS/">
<div class="full-height post-hover"
style="
background-image: url('');
height: 350px;
background-size: cover;
background-repeat: no-repeat;
">
<div class=" is-flex flex-column center content has-text-centered full-height has-padding content-bg-mask">
<h1 class="title text-shadow" style="margin-bottom: 15px;">
UI-Router in AngularJS
</h1>
<div>
`
<span class="tag is-post-tag">AngularJS</span>
</div>
<p class="post-content-text is-marginless has-padding text-shadow">
UI-Router is a client-side router for single page web applications
A client-side router updates the browser URL as th..
</p>
<p class="date text-shadow">2017-01-28</p>
<button class="button is-info is-small">Read More</button>
</div>
</div>
</a>
</div>
<div class="column is-5 is-hidden-touch" style="padding-left: 0;">
<div class="full-height is-flex flex-column justify-space-between" style="min-height: 350px;">
<a class="post-hover" href="/2016/11/29/Testing-Framework-Mocha-js/" style="height: 48.5%">
<div class="content is-hidden-touch full-height overflow-hidden" style="background-image: url('')">
<div class="content-bg-mask full-width full-height has-padding">
<h3 class="title is-marginless text-shadow">
Testing Framework Mocha.js
</h3>
<span class="tag is-post-tag">MochaJs</span>
<p class="sub-title text-shadow"></p>
<p class="is-marginless text-shadow post-content-text">
Test framework is a tool to run the script writt..
</p>
<p class="date text-shadow is-marginless">2016-11-29</p>
</div>
</div>
</a>
<a class="post-hover" href="/2016/11/20/DOM-Events-in-Javascript/" style="height: 48.5%">
<div class="content is-hidden-touch full-height overflow-hidden" style="background-image: url('/2016/11/20/DOM-Events-in-Javascript/eventObject.jpg')">
<div class="content-bg-mask full-width full-height has-padding">
<h3 class="title is-marginless text-shadow">
DOM Events in Javascript
</h3>
<span class="tag is-post-tag">Javascript</span>
<p class="sub-title text-shadow"></p>
<p class="is-marginless text-shadow post-content-text">
Javascript Basic review Part 6
As developers, ..
</p>
<p class="date text-shadow is-marginless">2016-11-20</p>
</div>
</div>
</a>
</div>
</div>
<div class="column is-12 is-hidden-desktop">
<a class="post-hover" href="/2016/11/29/Testing-Framework-Mocha-js/" style="height: 48.5%">
<div class="content is-hidden-touch full-height overflow-hidden" style="background-image: url('')">
<div class="content-bg-mask full-width full-height has-padding">
<h3 class="title is-marginless text-shadow">
Testing Framework Mocha.js
</h3>
<span class="tag is-post-tag">MochaJs</span>
<p class="sub-title text-shadow"></p>
<p class="is-marginless text-shadow post-content-text">
Test framework is a tool to run the script writt..
</p>
<p class="date text-shadow is-marginless">2016-11-29</p>
</div>
</div>
</a>
<a class="post-hover" href="/2016/11/20/DOM-Events-in-Javascript/" style="height: 48.5%">
<div class="content is-hidden-touch full-height overflow-hidden" style="background-image: url('/2016/11/20/DOM-Events-in-Javascript/eventObject.jpg')">
<div class="content-bg-mask full-width full-height has-padding">
<h3 class="title is-marginless text-shadow">
DOM Events in Javascript
</h3>
<span class="tag is-post-tag">Javascript</span>
<p class="sub-title text-shadow"></p>
<p class="is-marginless text-shadow post-content-text">
Javascript Basic review Part 6
As developers, ..
</p>
<p class="date text-shadow is-marginless">2016-11-20</p>
</div>
</div>
</a>
</div>
</div>
<div class="content-box is-hidden-desktop" style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/11/29/Testing-Framework-Mocha-js/">
<div class="columns" style="min-height: 230px;">
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>Testing Framework Mocha.js</h3>
<p>
<span class="tag is-post-tag">MochaJs</span>
</p>
<p>
Test framework is a tool to run the script written for testing the source code
Use the assertion library Chai.js
Mocha.js was born in 2011 and is one of the most popular JavaSc..
</p>
<p>2016-11-29</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<div class="content-box is-hidden-desktop" style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/11/20/DOM-Events-in-Javascript/">
<div class="columns" style="min-height: 230px;">
<div class="column is-4-desktop is-5-tablet post-avatar is-hidden-mobile"
style="margin: 10px; background-size: cover;background-image: url('/2016/11/20/DOM-Events-in-Javascript/eventObject.jpg')">
</div>
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>DOM Events in Javascript</h3>
<p>
<span class="tag is-post-tag">Javascript</span>
</p>
<p>
Javascript Basic review Part 6
As developers, we should understand what is DOM event model, how DOM events work and event triggering process.
What is Event?
Javascript dynamic..
</p>
<p>2016-11-20</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<div class="content-box " style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/11/10/Scope-chain-and-execution-context-in-Javascript/">
<div class="columns" style="min-height: 230px;">
<div class="column is-4-desktop is-5-tablet post-avatar is-hidden-mobile"
style="margin: 10px; background-size: cover;background-image: url('/2016/11/10/Scope-chain-and-execution-context-in-Javascript/function_implement.jpg')">
</div>
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>Scope chain and execution context in Javascript</h3>
<p>
<span class="tag is-post-tag">Javascript</span>
</p>
<p>
Javascript Basic review Part 5
Understanding the unique feature of Javascript: Scope chain and Execution context
Javascript is a single-thread language, so whenever a function..
</p>
<p>2016-11-10</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<div class="content-box " style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/10/20/Inheritance-and-the-prototype-chain/">
<div class="columns" style="min-height: 230px;">
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>Inheritance and the Prototype chain</h3>
<p>
<span class="tag is-post-tag">Javascript</span>
</p>
<p>
Javascript Basic review Part 4
What is Prototype chain and how to realize inheritance in Javascript
What is Prototype ChainWhy we need a prototype is JavascriptProblemOne of t..
</p>
<p>2016-10-20</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<div class="content-box " style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/10/12/JSON-object-and-JSON-string/">
<div class="columns" style="min-height: 230px;">
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>JSON, JavaScript Object literals and JSON string</h3>
<p>
<span class="tag is-post-tag">JSON</span>
</p>
<p>
Talk about the difference between JSON, JavaScript Object literals and JSON string including their convertion methods
JSON in JavascriptData can be stored in many ways, but if ..
</p>
<p>2016-10-12</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<div class="content-box " style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/09/30/Javascript-type-value-and-variable/">
<div class="columns" style="min-height: 230px;">
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>Javascript type, value and variable</h3>
<p>
<span class="tag is-post-tag">Javascript</span>
</p>
<p>
Javascript Basic review Part 3
Basic knowledge of Javascript’s data type, value and variable
Dynamic Typing
JavaScript is a loosely typed or a dynamic language. That me..
</p>
<p>2016-09-30</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<div class="content-box " style="margin-bottom: 27px;">
<a class="post-hover" href="/2016/09/17/The-JavaScript-Event-Loop/">
<div class="columns" style="min-height: 230px;">
<div class="column is-4-desktop is-5-tablet post-avatar is-hidden-mobile"
style="margin: 10px; background-size: cover;background-image: url('/2016/09/17/The-JavaScript-Event-Loop/eventLoop.png')">
</div>
<div class="column is-8-desktop post-content is-flex align-center">
<div class="content">
<h3>The JavaScript Event Loop</h3>
<p>
<span class="tag is-post-tag">Javascript</span>
</p>
<p>
Javascript Basic review Part 2
Basic understanding of Javascript’s event-driven interaction model
Single-thread JavascriptA major feature of JavaScript language is sing..
</p>
<p>2016-09-17</p>
<button class="button is-small">Read More</button>
</div>
</div>
</div>
</a>
</div>
<!--翻頁-->
<nav class="pagination is-flex" style="justify-content: flex-end">
<a class="pagination-next" href="/page/2/">Next page ></a>
</nav>
</section>
<style>
/*user info start*/
.user-info {
padding: 15px 0 0;
}
.user-info .avatar {
border-radius: 40px;
}
.sns-container {
flex-wrap: wrap;
}
.sns-container a{
color: #f97442;
}
/*user info end*/
/*Tag start*/
#tag_cloud .tags-item{
display: inline-block;
color: #000;
border: 1px solid gray;
margin: 4px 2px;
padding: 0 4px;
border-radius: 6px;
}
/*Tag end*/
/*Site box start*/
.site-box {
height: 60px;
}
/*Site box end*/
.category-list-item,
.archive-list-item {
display: flex;
margin-bottom: 4px;
justify-content: space-between;
}
.category-list-link,
.archive-list-link {
color: black;
}
.category-list-count,
.archive-list-count {
width: 32px;
text-align: center;
border-radius: 4px;
color: #fff;
background-color: gray;
}
</style>
<aside class="column is-hidden-touch is-3" style="max-width: 280px; min-width: 230px">
<div class="content-box user-info">
<div class="has-padding">
<header class="has-text-centered">
<img class="avatar" src="/images/avatar.jpeg">
</header>
<section class="has-text-centered">
<h3><strong>Tong</strong></h3>
<p class="sub-title">Frontend Developer</p>
<p class="is-flex center" style=" color: gray">
<i class="fa fa-map-marker" style="padding: 5px"></i>
Pittsburgh, USA
</p>
</section>
</div>
<div class="top-line">
<ul class="sns-container justify-center is-flex has-padding">
<li>
<a target="_blank" href="https://twitter.com/Gavin_zt">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a target="_blank" href="https://www.facebook.com/tong.zhang.90260">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a target="_blank" href="https://github.com/TongZhangzt">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li>
<a target="_blank" href="https://www.linkedin.com/in/tongzhang-1104">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>
</div>
</div>
<div class="content-box">
<!--post数量和tag category 数量-->
<div class="site-box is-flex">
<div class="flex-1 is-flex flex-column center full-height right-line">
<strong>15</strong>
<p>Posts</p>
</div>
<div class="flex-1 is-flex flex-column center full-height">
<strong>9</strong>
<p>Tags</p>
</div>
</div>
</div>
<div id='tag_cloud' class="content-inner content-box">
<div class="has-text-centered">
<strong>Tags</strong>
</div>
<div class="content-inner is-flex flex-wrap justify-space-between">
<a class="tags-item" href="/tags/Javascript/" title="Javascript" rel="6">
Javascript
</a>
<a class="tags-item" href="/tags/CSS/" title="CSS" rel="1">
CSS
</a>
<a class="tags-item" href="/tags/JSON/" title="JSON" rel="1">
JSON
</a>
<a class="tags-item" href="/tags/Life/" title="Life" rel="1">
Life
</a>
<a class="tags-item" href="/tags/Sass/" title="Sass" rel="1">
Sass
</a>
<a class="tags-item" href="/tags/AngularJS/" title="AngularJS" rel="2">
AngularJS
</a>
<a class="tags-item" href="/tags/MochaJs/" title="MochaJs" rel="1">
MochaJs
</a>
<a class="tags-item" href="/tags/Hexo/" title="Hexo" rel="1">
Hexo
</a>
<a class="tags-item" href="/tags/jQuery/" title="jQuery" rel="1">
jQuery
</a>
</div>
</div>
<div class="content-inner content-box">
<div class="has-text-centered">
<strong>Categories</strong>
</div>
<div class="content-inner">
<ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Javascript-Basic/">Javascript Basic</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Javascript-Framework/">Javascript Framework</a><span class="category-list-count">4</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Style-Sheet/">Style Sheet</a><span class="category-list-count">2</span></li></ul>
</div>
</div>
<div class="content-inner content-box">
<div class="has-text-centered">
<strong>Archives</strong>
</div>
<div class="content-inner">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/">January 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">November 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/">October 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">September 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/">August 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/">July 2016</a><span class="archive-list-count">3</span></li></ul>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
</div>
<style>
#footer {
min-height: 10vh;
background: black;
color: #fff;
}
#footer a {
color: #e1e1e1;
}
.footer-content {
padding: 1rem;
margin: 0 auto;
}
</style>
<link rel="stylesheet"
href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<footer id="footer"
class="has-text-centered is-flex center">
<div class="container has-padding">
<div>
<div class="footer-content">
<i class="fa fa-eye"
style="position: relative; top: 3px;right: 5px"></i><span id="busuanzi_value_page_pv"><i
class="fa fa-spinner fa-spin"></i></span> Visits
<br> Copyright ©
Tong Zhang
2019
<br> Powered by
<a href="http://hexo.io/"
target="_blank">Hexo</a>
</div>
</div>
</div>
</footer>
<script async
src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<script src="/js/search_core.js"></script>
<script src="/js/script.js"></script>
</body>
</html>