-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
221 lines (200 loc) · 6.26 KB
/
index.html
File metadata and controls
221 lines (200 loc) · 6.26 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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>cssmini</title>
<meta property="og:type" content="blog" />
<meta property="og:image" content="/portrait.jpg" />
<meta property="og:release_date" content="2020-03-31T09:40:53.797Z" />
<meta property="og:title" content="cssmini" />
<meta property="og:description" content="Welcome to my site." />
<meta property="og:author" content="乘风 hexiii" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black-translucent" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta name="description" content="Welcome to my site. -- 乘风 hexiii">
<meta name="keywords" content="乘风 hexiii,hexiii,随风而逝,cssmini,cssmini.com">
<link rel="Shortcut Icon" href="/favicon.ico">
<link rel="bookmark" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon.png">
<link rel="alternate" type="application/atom+xml" href="/atom.xml">
<link rel="stylesheet" href="css/animate.css">
</head>
<style>
@font-face {
font-family: 'BlockFont';
src: url('font/BlockFont.ttf');
}
@font-face {
font-family: 'Aldo_Open';
src: url('font/Aldo_Open.otf');
}
@font-face {
font-family: 'BAD GRUNGE';
src: url('font/BAD GRUNGE.ttf');
}
@font-face {
font-family: 'Hyeenan haukotus';
src: url('font/Hyeenan haukotus.ttf');
}
@font-face {
font-family: 'kristinprint';
src: url('font/kristinprint.ttf');
}
@font-face {
font-family: 'MiFu';
src: url('font/MiFu.otf');
}
@font-face {
font-family: 'RuachStd';
src: url('font/RuachStd.otf');
}
@font-face {
font-family: 'zincboomerang';
src: url('font/zincboomerang.ttf');
}
@font-face {
font-family: 'Video Terminal Screen';
src: url('font/Video Terminal Screen.TTF');
}
body{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
body{
position: absolute;
width: 100%;
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.page{
width: 370px;
}
article {
text-align: center;
}
.title-box{
height: 200px;
}
#title {
font-size: 84px;
text-align: center;
margin: 10px 0px;
}
nav {
text-align: center;
}
a {
margin: 0 10px;
color: black;
}
a:hover {
color: #26639c;
}
#describe {
margin: 10px 0px 30px 0px;
font-size: 32px;
text-align: center;
}
footer {
font-size: 12px;
text-align: center;
}
</style>
<body>
<div class="page">
<article>
<div class="title-box">
<p id="title">cssmini</p>
<p id="describe"></p>
</div>
<nav id="nav">
<a href="https://cssmini.github.io/cssmini_index">BLOG</a>
<a href="mailto:cssmini@foxmail.com">CONTACT ME</a>
<a href="https://github.com/cssmini">GITHUB</a>
</nav>
</article>
<footer id="footer">
<!-- -->
<p>
Copyright © 2019 cssmini
</p>
<p>
</p>
</footer>
</div>
<script async type="text/javascript" size="90" alpha="0.2" zIndex="0" src="js/ribbon.js"></script>
<script type="text/javascript">
let animated = "animated slower"
let fadeInDown = " fadeInDown";
let fadeOut = " fadeOut";
let tempAnimated = animated + fadeInDown;
document.getElementById("nav").className = tempAnimated;
document.getElementById("footer").className = tempAnimated;
setAnimated(tempAnimated);
describe();
setFont();
setInterval(function() {
let classStr = document.getElementById("describe").className;
let tempAnimated = '';
if (classStr == animated + fadeInDown) {
setTimeout(()=>{
tempAnimated = animated + fadeOut;
setAnimated(tempAnimated);
},1000)
} else {
describe();
setFont();
// preload font files,then showing
setTimeout(()=>{
tempAnimated = animated + fadeInDown;
setAnimated(tempAnimated);
},1000)
}
}, 4000);
function setAnimated(tempAnimated) {
document.getElementById("title").className = tempAnimated;
document.getElementById("describe").className = tempAnimated;
}
function describe() {
let describeArray = [
'Just do it!',
'Hello :)',
'Welcome',
];
let describeMAX = describeArray.length - 1;
let describeIndex = parseInt(Math.random() * (describeMAX + 1), 10);
document.getElementById("describe").innerHTML = describeArray[describeIndex];
}
function setFont() {
let fontArray = [
"Aldo_Open",
"BAD GRUNGE",
"BlockFont",
"Hyeenan haukotus",
"kristinprint",
"MiFu",
"RuachStd",
"Video Terminal Screen",
"zincboomerang",
];
let fontArrayMAX = fontArray.length - 1;
let title = document.getElementById('title');
let fontIndex = parseInt(Math.random() * (fontArrayMAX + 1), 10);
title.setAttribute('style', "font-family: '" + fontArray[fontIndex] + "'");
}
</script>
</body>
</html>