-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (112 loc) · 2.77 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
<!doctype html>
<!--
.--, .--,
( ( \.---./ ) )
'.__/o o\__.'
{= =}
> - <
/ \
// \\
//| . |\\
"'\ /'"_.-~`'-.
\ _ /--'
___)( )(___
(((__) (__)))
the valiant knights of programming who toil away.
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
footer{
position: absolute;
bottom: 20px;
width: 100%;
}
footer div{
display: block;
width: 100%;
text-align: center;
font-weight: 600;
color: #fff;
text-shadow: 1px 1px 2px #000;
}
footer div a{
color: #fff;
display: inline-block;
}
</style>
<title>Handsome</title>
<link rel="icon" href="./blog/images/handsome1.ico" type="image/x-cio" />
<link rel="stylesheet" type="text/css" href="./blog/css/css-style.css" />
</head>
<body style="overflow: hidden;">
<div id="bodyPage">
<a href="./blog/home.html">
<img id="img" src="./blog/images/chrome.jpg" class="bg">
</a>
</div>
<div id="content">
<a href="./blog/home.html">
<h1 class="time">10:50</h1>
<div class="greeting">
<h2>Good
<span class="period">morning,</span>
<span class="name">远.</span>
</h2>
</div>
<!-- <div class="below">
<h2>Welcome to WEB WANG blog. </h2>
</div> -->
</a>
</div>
<footer>
<div>
Copyright © 2017 wfyweb.com | <a href="http://www.beian.miit.gov.cn">豫ICP备16041179号</a> | Powered by Handsome
</div>
</footer>
<!-- 图片自适应 -->
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="./blog/js/fullplay.js"></script>
<script type="text/javascript">
$("#bodyPage").fullImages({
ImgWidth: 1920,
ImgHeight: 980,
autoplay : 2000,
fadeTime : 0
});
</script>
<!-- 时间 -->
<script type="text/javascript">
setInterval(play,1000);
play();
function play(){
var box = document.querySelector('.period');
var wrap = document.querySelector('.time');
var oImg = document.querySelector('#img');
var now = new Date();
var hour = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
wrap.innerHTML = zero( hour )+':'+zero( minutes );
function zero( num ){
return num<10? '0'+num:num;
};
if( hour<12 && hour>5){
box.innerHTML='moring,';
oImg.src = './blog/images/chrome1.jpg';
}else if(hour<18){
box.innerHTML='afternoon,';
oImg.src = './blog/images/chrome2.jpg';
}else {
box.innerHTML='evening,';
oImg.src = './blog/images/chrome3.jpg';
}
}
</script>
</body>
</html>