-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
163 lines (159 loc) · 3.54 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
---
---
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{ site.title }}</title>
{% include head.meta %}
<!-- 为了方便别人修改,页面的css只用于当前页面 -->
<style type="text/css">
html {
display: block;
height: 100%;
overflow-y: scroll;
}
body {
display: block;
height: 100%;
margin: 0 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.header {
position: fixed;
top: 0;
right: 0;
z-index: 100;
width: 590px;
font-size: 13px;
text-align: right;
color: #999;
}
.header a.menu {
position: relative;
height: 32px;
line-height: 32px;
margin-left: 10px;
margin-right: 16px;
color: #ffffff;
text-decoration: underline;
outline: none;
display: inline-block;
text-shadow: none;
}
.header-bg {
display: block;
background-image: url("{{ site.w3c_url }}images/index.jpg");
top: 0;
left: 0;
height: 100%;
width: 100%;
background-position: center 0;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
zoom: 1;
}
.content {
position: relative;
z-index: 1;
width: 100%;
}
.talk {
width: 100%;
position: absolute;
z-index: 3;
bottom: 12px;
left: 0;
overflow: hidden;
color: #ffffff;
zoom: 1;
margin: 0;
text-align: center;
}
.link {
text-decoration: none;
color: white;
background: white;
padding: 3px;
display: inline-block; /* make it the size of the content */
}
</style>
<style type="text/css">
@media (max-width: 768px)
{
}
</style>
<style type="text/css">
@keyframes fadein
{
from { opacity:0; }
to { opacity:1; }
}
@-moz-keyframes fadein /* Firefox */
{
from { opacity:0; }
to { opacity:1; }
}
@-webkit-keyframes fadein /* Safari 和 Chrome */
{
from { opacity:0; }
to { opacity:1; }
}
@-o-keyframes fadein /* Opera */
{
from { opacity:0; }
to { opacity:1; }
}
.fadein {
animation:fadein 3s;
-moz-animation:fadein 3s; /* Firefox */
-webkit-animation:fadein 3s; /* Safari and Chrome */
-o-animation:fadein 3s; /* Opera */
}
.fadein-long {
animation:fadein 6s;
-moz-animation:fadein 6s; /* Firefox */
-webkit-animation:fadein 6s; /* Safari and Chrome */
-o-animation:fadein 6s; /* Opera */
}
}
</style>
</head>
<body>
<div class="header">
<!-- <a class="menu" href="{{ site.base }}/article.html">Enter</a> -->
</div>
<div class="header-bg fadein"></div>
<div class="content">
<!-- duoshuo -->
<div name="comments" id="comments">
<div class="ds-thread" data-thread-key="shuoshuo" data-max-depth="{{ site.duoshuo_max_depth }}" data-title="{{ site.title }}" data-url="{{ site.domain }}"></div>
</div>
</div>
<div class="talk">
<h3><a class="link fadein-long" href="{{ site.base }}/article.html"><img src="{{ site.w3c_url }}images/door.png" style="width:55px;height:auto;"alt="Enter" title="任意門"></img></a></h3>
<p>© {{ site.title }}</p>
</div>
<div class="footer"></div>
<!-- jQuery -->
<script src="{{ site.jquery_url }}"></script>
<script>
$(function(){
var executeOnLoad = function(selector, loaded_callback) {
// console.log("[executeOnLoad] running with selector: " + selector);
var $elements = $(selector);
if($elements.length) {
$elements.each(function(){
loaded_callback.call($(this));
});
} else {
setTimeout(function() { executeOnLoad(selector, loaded_callback); }, 100);
}
}
// jquery 3.x remove selector method so I can not get the selector inner
// OR I can change it to $(selecor).executeOnLoad(function(){ // code here });
});
</script>
</body>
</html>