-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
199 lines (181 loc) · 5.5 KB
/
main.html
File metadata and controls
199 lines (181 loc) · 5.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--
<script type="text/javascript" src="/js/d3.js"></script>
<script type="text/javascript" src="/js/jquery-2.1.1.js"></script>
-->
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="/css/bootstrap.min.css" rel="stylesheet">
<!-- 可选的Bootstrap主题文件(一般不使用) -->
<!--
<script src="/css/bootstrap-theme.min.css"></script>
-->
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<!--
<script src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui"></script>
<link href="/css/bootstrap-combined.min.css" rel="stylesheet" media="screen">
<script src="/js/angular.min.js"></script>
<script src="/js/angular-sanitize.min.js"></script>
<script src="/js/echarts-all-3.js"></script>
-->
<title>主页</title>
<script type="text/javascript">
//获取滚动条当前的位置
function getScrollTop() {
var scrollTop = 0;
if (document.documentElement && document.documentElement.scrollTop) {
scrollTop = document.documentElement.scrollTop;
} else if (document.body) {
scrollTop = document.body.scrollTop;
}
return scrollTop;
}
//获取当前可视范围的高度
function getClientHeight() {
var clientHeight = 0;
if (document.body.clientHeight && document.documentElement.clientHeight) {
clientHeight = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
} else {
clientHeight = Math.max(document.body.clientHeight, document.documentElement.clientHeight);
}
return clientHeight;
}
//获取文档完整的高度
function getScrollHeight() {
return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
}
//dom onready事件监听
function loadReady(){
resize();
setTimeout(hideMask,1);
}
//窗体大小改变时,调整margin-top;
function resize(){
var domDiv = document.getElementById("idDivContent");
var realHeight = domDiv.offsetHeight;
var clientHeight = getClientHeight();
var marginTop = (clientHeight-realHeight)*0.4;
if(marginTop>0){
domDiv.style.marginTop=marginTop+"px";
}
}
function hideMask(){
document.getElementById("idDivMask").style.display="none";
}
</script>
<style type="text/css">
body{
font-family:'微软雅黑','Helvetica Neue','Helvetica','Arial','sans-serif';
}
a{
position: relative;
outline: none;
text-decoration: none;
font-size: 14px;
}
a:visited{
}
a:hover,.hover_underline:hover{
text-decoration:underline;
}
.div_piece a:hover::before, .div_piece a:hover::after { position: absolute; }
/*
.div_piece a:hover::before { content: "\5B"; left: -15px; }
.div_piece a:hover::after { content: "\5D"; right: -15px; }
*/
.div_piece a:hover::before { content: "\261E"; left: -15px; }
.div_piece a:hover::after { content: "\261C"; right: -15px; }
.div_tb{
display: table;
width: 100%;
margin:0px;
padding-top:5px;
padding-bottom: 10px;
}
.div_tb>div{
display: table-row;
}
.div_tb>div>div{
display: table-cell;
width: 33.3333%;
vertical-align: middle;
padding-left: 10px;
padding-top: 10px;
}
.span_info{
color:green;
width: 100%;
}
.div_piece{
/*一个div块*/
background-color:#FFFFFF;
border: 1px solid rgb(241,241,241);
margin-top:10px;
}
.div_piece:hover{
border: 1px solid #458B74;
}
.left_top_title{
/*div块的左上角的title的样式*/
padding-left: 5px;
padding-top:2px;
color:black;
position: absolute;
opacity: 0.8;
}
.left_top_title:hover::after{
content:"\27B7";
}
body{
/*
background: url(/images/main_page_background.png) no-repeat center;
*/
background: rgba(241,241,241,0.3);
}
</style>
</head>
<body onload="loadReady();" onresize="resize();" >
<!-- 遮罩(防止页面闪烁) ,页面载入并计算完成之后,会隐藏掉 -->
<div id="idDivMask" style="display:block;width:100%;height:100%;position:absolute;top:0px;left:0px;
z-index:999999; background-color: white;" >
</div>
<div style="float:left;width:100%;">
<div style="display:table;width:100%;">
<div style="display:table-cell;width:100%;" align="center">
<!-- 正文,页面宽度,margin都在此处指定 -->
<div id="idDivContent" style="width:800px;margin-top:30px;">
<div class="div_piece">
<div class='left_top_title' align='left'>主页</div>
<div class="div_tb container-fluid">
<div class='row-fluid'>
<div class='span4'>
<div><a href="/dir" target="_blank">文件索引</a></div>
</div>
<div class='span4'>
<div><a href="/documents" target="_blank">文档</a></div>
</div>
<div class='span4'>
<div><a href="/log.txt" target="_blank">日志</a></div>
</div>
</div>
</div>
</div>
<div style="display: table;width: 100%;margin-top: 10px; " >
<div style="display: table-row;width: 100%; " >
<!--server-->
<div align="right" style="display: table-cell;width: 60%;color:black;opacity: 0.7; " >
<i style="padding-left: 5px; " >Powered by <a href="http://nodejs.cn" target='_blank' >Node.js</a> v4.4.4</i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>