-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
324 lines (313 loc) · 16.2 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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./Content/Css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="./Content/Css/bootstrap-theme.css" rel="stylesheet" type="text/css"/>
<link href="./Content/Css/Pace/black/pace-theme-minimal.css" rel="stylesheet" type="text/css"/>
<link href="./Content/Css/Animation.css" rel="stylesheet" type="text/css"/>
<link href="./Content/Css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css"/>
<link href="./Content/Css/font-awesome.min.css" rel='stylesheet' type="text/css"/>
<script src="./Content/JavaScript/jquery-2.1.1.min.js"></script>
<script src="./Content/JavaScript/bootstrap.min.js"></script>
<script src="./Content/JavaScript/pace.min.js"></script>
<script src="./Content/JavaScript/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="./Content/JavaScript/ellipsis.JS"></script>
<script src="./Content/JavaScript/uncompressed/history.adapter.jquery.js" type="text/javascript"></script>
<script src="./Content/JavaScript/uncompressed/history.js" type="text/javascript"></script>
<style>
html
{/*整体html*/
height:100%;
margin:0;
}
body
{/*body*/
height: 100%;
margin:0;
padding-left: 0px;
padding-right: 0px;
overflow-x: hidden;
overflow-y: hidden;
color:#777;
font-family: 'SimHei';
}
.with-full-screen{/*在做布局height 100%*/
height:100%;
}
.container-fluid,.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{
/*重写 这些css 因为默认 是有边距的*/
/**padding-left:0px;*/
}
.article-List{/*文章列表 div的 设置*/
/*padding-bottom: 29px;
//padding-top: 29px;
//padding-left: 15px;
//padding-right:15px;
//height: 25%;
//wdith:100%;*/
border-bottom:1px solid #eee;
border-top:1px solid #eee;
}
.article-Title{/*文章列表的 title*/
width: 100%;
/*width:7em; //em表示一个字符的宽度;*/
display: block; /*定义显示形式*/
overflow: hidden; /*截取超出字符*/
text-overflow: ellipsis; /*超出字符以…代替*/
white-space: nowrap; /*确定超出宽度字符不换行*/
font-size:13pt;
}
.article-Introduction{
/*文章 页面*/
font-size:10pt;
height:34px;
width: 100%;
overflow: hidden;
}
#Left{
/*最左边blog信息 页面*/
padding-left: 25px;
padding-right:0px;
}
.mCSB_scrollTools{
/*重写 滚动条*/
margin-right:-5px;
}
.article-thisArticle{
/*文章 父节点*/
padding-top: 20px;
padding-left: 15px;
padding-right: 15px;
}
#left .mCustomScrollBox {
padding-right:10px;
}
#article{
/*文章内容 设置 滚动条*/
overflow-y:scroll;
}
.sidebar-social-list{
/*标志 ul 的样式*/
margin: 0;
padding: 0;
text-align: center;
}
.sidebar-social-list li{
/*标志 ul 下的li 的样式*/
margin: 0 3px 0 0;
display: inline-block;
height: 30px;
width:30px;
border-radius:50%;
-webkit-transition: .3s;
transition: .3s;
}
.sidebar-social-list li a{
/*标志 ul 下的li 下的a 的样式*/
border: none;
line-height: 29px;
font-size: 12px;
color: #777;
display: block;
-webkit-transition: all 100ms linear;
-o-transition: all 100ms linear;
transition: all 100ms linear;
border-radius: 30px;
}
.site-copyright{
/*版权信息 的样式*/
text-align: center;
font-size: .78571428571429em;
margin: 10px 0 0;
}
</style>
</head>
<body >
<div class="container-fluid with-full-screen " style="width:100%; z-index:1" >
<div class="row-fluid with-full-screen" >
<div class="row with-full-screen" >
<div class="col-md-4 col-lg-4 with-full-screen" style="border-right:1px solid #eee;padding-right:0px;padding-left:0px;" >
<!-- 主信息和文章列表 -->
<div id="Left" class="col-md-4 col-lg-4 col-xs-12 col-sm-12 with-full-screen " style="overflow:hidden;border-right:1px solid #eee;padding-left:0px;">
<!-- 主信息 -->
<center>
<div style="margin-top: 35px;">
<h2 style='color:black;'><b>Blog</b></h2>
</div>
<center>
<p style="color: #ABABAB;text-align: center;font-style:oblique;font-size: .875rem;">
This's My Blog By ThinkPHP
</p>
</center>
<div style="width:100%;padding-top: 15px;">
<center>
<div class="row">
<div class="col-md-12 col-lg-12 col-xs-4 col-sm-4" style="text-align:center;padding-right: 0px; padding-left:0px;">
<p><b>首页</b></p>
</div>
<div class="col-md-12 col-lg-12 col-xs-4 col-sm-4" style="text-align:center;padding-right: 0px;padding-left:0px; ">
<p><b>联系</b></p>
</div>
<div class="col-md-12 col-lg-12 col-xs-4 col-sm-4" style="text-align:center; padding-right: 0px;padding-left:0px;">
<p><b>关于</b></p>
</div>
</div>
<hr>
</center>
<ul class="sidebar-social-list">
<li class="">
<a href="#">
<i class="fa icon-facebook icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-twitter icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-dribbble icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-instagram icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-foursquare icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-flickr icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-youtube icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-google-plus-sign icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-tumblr icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-skype icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-google-plus icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-pinterest icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="icon-linkedin icon-large"></i>
</a>
</li>
<li class="">
<a href="#">
<i class="fa icon-rss icon-large"></i>
</a>
</li>
</ul>
<div class="col-md-12 col-lg-12 hidden-xs hidden-sm" style="padding-left:0px;">
<hr>
<p class="site-copyright">© Copyright 2014 - 2015</p>
</div>
</div>
</center>
</div>
<div id="List" class="col-md-8 col-lg-8 col-xs-12 col-sm-12" style="overflow:hidden;border-right:1px solid #eee;padding-right:0px;padding-left:0px;">
<!-- 文章列表 -->
</div>
</div>
<div id='article' class="col-md-8 col-lg-8 col-xs-12 col-sm-12 with-full-screen" style='padding-left:0px;'>
<!-- 文章内容页-->
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
//初始化
//clientWithChenge();
//鼠标进入事件
$(".sidebar-social-list li").on("mouseover",function(){
//#343b4a
$(this).css("background-color",'#343b4a');
});
//鼠标离开事件
$(".sidebar-social-list li").on("mouseout",function(){
//#343b4a
$(this).css("background-color",'');
});
//加载文章列表
$("#List").load("articleList.html");
//加载文章列表
$("#article").load("article.html");
var $root = $('html, body');
function openArtiele(id,e){
window.history.pushState(null,null, "?id="+id);
$(".article-List").css('background-color', '');
$(e).parent().parent().css('background-color', '#FBFBFB');
$("#article").load("<?php Url('Home','Index','article')?>?id="+id,function(){
$($root).animate({scrollTop:$("#article").offset().top},1000);
//clientWithChenge();
});
}
//浏览器大小改变的时候
window.onresize=function(){
clientWithChenge();
}
//初始化方法
function clientWithChenge(){
console.info("执行了");
if(document.documentElement.clientWidth>=992){
$($root).animate({
scrollTop:$("#article").offset().top//这里获取要移动到的对象
},
0
);
$("#List").css("margin-top",'0px');
$("#List").mCustomScrollbar();
$("#Left").mCustomScrollbar();
$(".article-thisArticle").css("height","100%");
$("#article").css("overflow-y","scroll");
$("body").css("overflow-y",'hidden');
$("#Left").addClass('with-full-screen');
$("#Left").parent().addClass('with-full-screen');
$("#article").addClass("with-full-screen");
}else{
$("#Left").removeClass('with-full-screen');
$("#Left").parent().removeClass('with-full-screen');
$("#List").css("margin-top",'20px');
$(".article-thisArticle").css("height","");
$("#article").css("height","");
$("#article").css("overflow-y","hidden");
$("#article").removeClass("with-full-screen");
$("body").css("overflow-y",'scroll');
$("#Left").mCustomScrollbar("destroy");
$("#List").mCustomScrollbar("destroy");
}
}
</script>
</html>