-
Notifications
You must be signed in to change notification settings - Fork 41
/
index.html
614 lines (608 loc) · 16.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="keywords" content="程序员爱情表白, 时间轴, 爱情时间轴" />
<meta name="description" content="史上最震撼的情人节神器,瞬间感动她(他),无论是否为程序员,快来制作属于自己的爱情时间轴吧,!!!@颜海镜 <http://yanhaijing.com> " />
<title>loveTimeline</title>
<link href="css/default.css" rel="stylesheet" />
<link href="css/history.css" rel="stylesheet" />
<!-- 添加百度统计 -->
<script src="//yanhaijing.com/assets/plugin/tongji/baidu.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/garden_dev.js"></script>
<script type="text/javascript" src="js/functions_dev.js"></script>
</head>
<body>
<!-- 代码 开始 -->
<div id="mainDiv">
<div id="content" style="width: 1110px; height: 625px; margin-top: 57px; margin-left: 165px;">
<div id="loveHeart">
<canvas id="garden" width="670" height="625"></canvas>
<div id="words">
<div id="messages">
We love so long
<div id="elapseClock"><span class="digit">0</span> 年 <span class="digit">0</span> 月 <span class="digit">0</span> 天 <span class="digit">0</span> 时 <span class="digit">0</span> 分 <span class="digit">0</span> 秒</div>
</div>
<div id="loveu">
Love in accumulation, any time!<br>
<div class="signature">——<a href="http://yanhaijing.com" target="_blank">颜海镜</a></div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var displayMode = 1;
var together = new Date();
together.setFullYear(1970, 0, 0);
together.setHours(0);
together.setMinutes(0);
together.setSeconds(0);
together.setMilliseconds(0);
$("#loveHeart").click(function(){
displayMode *= -1;
timeElapse(together, displayMode);
});
if (!document.createElement('canvas').getContext) {
var msg = document.createElement("div");
msg.id = "errorMsg";
msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
document.body.appendChild(msg);
$("#code").css("display", "none")
$("#copyright").css("position", "absolute");
$("#copyright").css("bottom", "10px");
document.execCommand("stop");
} else {
setTimeout(function () {
adjustWordsPosition();
startHeartAnimation();
}, 100);
timeElapse(together, displayMode);
setInterval(function () {
timeElapse(together, displayMode);
}, 500);
adjustCodePosition();
$("#code").typewriter();
}
</script>
<div class="head-warp">
<div class="head">
<div class="nav-box">
<ul>
<li class="cur" style="text-align:center; font-size:62px; font-family:'微软雅黑', '宋体';color:#fff">Love Memory</li>
</ul>
</div>
</div>
</div>
<div class="main">
<div class="history">
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2014年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
那天
</h4>
<div class="wrap">
<img src="photo/2010081111284911.jpg">
<p>那天,I miss U…
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2013年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
爱
</h4>
<div class="wrap">
<img src="photo/2010081111290653.jpg">
<p>爱,能持续多久?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2012年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
从开始到结束
</h4>
<div class="wrap">
<img src="photo/2010081111291720.jpg">
<p>从开始到结束,需要多久?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2011年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
如果我带来的只是灾难
</h4>
<div class="wrap">
<img src="photo/2010081111294255.jpg">
<p>如果我带来的只是灾难,你是否依然有勇气陪我走完?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2010年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
能再给我一次机会么?
</h4>
<div class="wrap">
<img src="photo/2010081111300780.jpg">
<p>能再给我一次机会么?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2009年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
因为你
</h4>
<div class="wrap">
<img src="photo/2010081111303050.jpg">
<p>因为你,我的世界才精彩。
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2008年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
我何时才能够得到你的回应?
</h4>
<div class="wrap">
<img src="photo/2010081111310414.jpg">
<p>我何时才能够得到你的回应?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2007年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
只为搜索你的身影…
</h4>
<div class="wrap">
<img src="photo/2010081111312754.jpg">
<p>只为搜索你的身影…
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2006年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
爱
</h4>
<div class="wrap">
<img src="photo/2010081111315293.jpg">
<p>爱,让她安静的离开…
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2005年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
只是因为你
</h4>
<div class="wrap">
<img src="photo/2010081111321393.jpg">
<p>让自己变完美,只是因为你。
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2004年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
删除记忆
</h4>
<div class="wrap">
<img src="photo/2010081111324592.jpg">
<p>删除记忆?可是,我没有勇气…
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2003年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
该如何控制自己才能够不去想你?
</h4>
<div class="wrap">
<img src="photo/2010081111332023.jpg">
<p>该如何控制自己才能够不去想你?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2002年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
我为你创造了世界
</h4>
<div class="wrap">
<img src="photo/2010081111335342.jpg">
<p>我为你创造了世界,但你依然沉睡在你仅有的梦中…
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2001年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
恋爱.结婚
</h4>
<div class="wrap">
<img src="photo/2010081111342227.jpg">
<p>恋爱=MAC?结婚=Windows?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">2000年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
我颠覆了整个世界
</h4>
<div class="wrap">
<img src="photo/2010081111344385.jpg">
<p>我颠覆了整个世界,只为了摆正你的倒影。
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1999年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
When you touch me
</h4>
<div class="wrap">
<img src="photo/2010081111351442.jpg">
<p>When you touch me ican touch you to find out the dream is true.
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1998年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
有多少爱情
</h4>
<div class="wrap">
<img src="photo/2010081111353425.jpg">
<p>有多少爱情,最终输给了时间?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1997年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
你听得到么?
</h4>
<div class="wrap">
<img src="photo/2010081111355040.jpg">
<p>大声喊,我爱你!你听得到么?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1996年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
I want be u.
</h4>
<div class="wrap">
<img src="photo/2010081111361028.jpg">
<p>I want be u.
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1995年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
如果我一无所有
</h4>
<div class="wrap">
<img src="photo/2010081111363186.jpg">
<p>如果我一无所有,你还会喜欢我么?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1994年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
结束?
</h4>
<div class="wrap">
<img src="photo/2010081111364871.jpg">
<p>结束?还是..重新开始?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1997年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
你听得到么?
</h4>
<div class="wrap">
<img src="photo/2010081111355040.jpg">
<p>大声喊,我爱你!你听得到么?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
<div class="history-date">
<ul>
<h2 class="first"><a href="#nogo">1997年</a></h2>
<li class="green">
<h3>02.14</h3>
<dl>
<dt>
<div class="feed_arrow">
</div>
<h4>
你听得到么?
</h4>
<div class="wrap">
<img src="photo/2010081111355040.jpg">
<p>大声喊,我爱你!你听得到么?
</p>
</div>
</dt>
</dl>
</li>
</ul>
</div><!-- .history-date -->
</div>
</div>
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
<!-- 代码 结束 -->
<div id="copyright">
© 2014 <a href="http://yanhaijing.com" target="_blank">颜海镜</a>
<a class="github" href="https://github.com/yanhaijing/loveTimeline" target="_blank" title="Fork me on GitHub"> <img width="20" height="20" align="Fork me on GitHub" src="images/auth-github.png" /></a>
<a class="weibo" href="http://weibo.com/yanhaijing1234/profile" target="_blank" title="weibo"> <img width="20" height="20" align="weibo" src="images/auth-weibo.png" /></a>
<a class="alipay" href='http://yanhaijing.com/mywallet/' target="_blank" title="alipay"> <img width="80" height="19" alt="alipay" src='images/btn-index.png' /></a>
</div>
<div style="text-align:center;margin:20px 0 60px 0;line-height:28px">
idea from:<a href="http://hackerzhou.me/love/" target="_blank">hackerzhou.me</a><br>
Inspired by <a href="http://www.openrise.com/lab/FlowerPower/">FlowerPower</a> project.<br>
lovetime from:<a href="http://www.lanrentuku.com/" target="_blank">懒人图库</a> <br>
memory image from:<a href="http://jianyun.org/archives/136.html" target="_blank">闲云博客</a><br>
background-image from: 百度图片
</div>
<a class="bshareDiv" href="https://www.bshare.cn/share">分享按钮</a><script type="text/javascript" charset="utf-8" src="https://static.bshare.cn/b/button.js#uuid=9c63467b-a311-422d-82bb-485c01affd39&style=3&fs=4&textcolor=#fff&bgcolor=#9C3&text=分享到"></script>
</body>
</html>