-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (91 loc) · 3.82 KB
/
index.html
File metadata and controls
100 lines (91 loc) · 3.82 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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Xin Meng</title>
<link rel="stylesheet" type="text/css" href="assets/css/main.css"/>
</head>
<body>
<div class="vi">
<div class="sidebar">
<div class="header">
<h1>Xin</h1>
<div class="quote">
<!--<p class="quote-text animate-init">不积跬步,无以至千里。不积小流,无以成江海。</p>
<p class="quote-author animate-init">《劝学篇》—— <strong>荀子</strong></p>-->
<p class="quote-text animate-init">Reading makes a full man, conference a ready man, and writing an exact man.</p>
<p class="quote-author animate-init"><a href="https://www.enotes.com/homework-help/what-does-writing-makes-an-exct-man-mean-465204">Of Studies</a>—— <strong>Francis Bacon</strong></p>
</div>
</div>
<div class="menu">
<a href="https://github.com/xmeng1" class="animate-init">GitHub</a>
<a href="https://blog.csdn.net/xmeng1" class="animate-init">CSDN</a>
<a href="https://my.oschina.net/mengxin" class="animate-init">OSChina</a>
<a href="https://blog.mengxin.science" class="animate-init">English</a>
<a href="https://notes.mengxin.science" class="animate-init">Chinese</a>
<a href="https://mengxin.science/me" class="animate-init">CV-PDF</a>
<a href="https://cv.mengxin.science" class="animate-init">CV-HTML</a>
<!-- <a href="http://douban.com/people/iissnan" class="animate-init">DouBan</a>
<a href="http://weibo.com/iissnan" class="animate-init">WeiBo</a> -->
<!-- <p>
<a href="http://dudu.zhihu.com/circle/257517" class="animate-init">
奥义·复制粘贴加调试
</a>
</p> -->
</div>
<div class="location">
<i class="location-icon"></i>
<span class="location-text animate-init">Milton Keynes - UK</span>
</div>
<div class="relocating">
Navigating to: <span class="relocate-location"></span>...
</div>
</div>
<div class="content">
<span class="close">close</span>
</div>
</div>
<script type="text/javascript" src="assets/vendors/jquery/index.js"></script>
<script>
$(document).ready(function () {
var delay = 1;
var DELAY_STEP = 200;
var animationOptions = { opacity: 1, top: 0};
$('h1').animate(animationOptions).promise()
.pipe(animateMain)
.pipe(animateLocationIcon);
function animateMain() {
var dfd = $.Deferred();
var els = $('.animate-init');
var size = els.size();
els.each(function (index, el) {
delay++;
$(el).delay(index * DELAY_STEP)
.animate(animationOptions);
(size - 1 === index) && dfd.resolve();
});
return dfd.promise();
}
function animateLocationIcon() {
$('.location-icon').delay(delay * DELAY_STEP).animate({
opacity: 1,
top: 0
}).promise().done(animationQuote);
}
function animationQuote() {}
$(document.body).on('keydown', function (event) {
// Press 'b' key
if (event.which === 66) {
$('.relocate-location').text('Bookmark Page');
$('.relocating').css('opacity', 1);
window.setTimeout(function () {
window.location.href = '/bookmarks.html';
}, 1000);
}
});
});
</script>
</body>
</html>