Skip to content

Commit c53f632

Browse files
author
ShiHao
committed
核心库:增加页面加载进度插件
1 parent 445c34b commit c53f632

34 files changed

+400
-66
lines changed

bootstrap.csproj

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<Content Include="css\hover\hover-min.css" />
7373
<Content Include="css\jquery.animo\animate-animo.min.css" />
7474
<Content Include="css\jquery.toastr\toastr.min.css" />
75+
<Content Include="css\pace\dataurl.css" />
7576
<Content Include="css\wow\animate.css" />
7677
<Content Include="css\bootstrap.colorpicker\css\bootstrap-colorpicker.min.css" />
7778
<Content Include="css\bootstrap.colorpicker\img\bootstrap-colorpicker\alpha-horizontal.png" />
@@ -170,16 +171,19 @@
170171
<Content Include="js\jquery.hammer\hammer.min.js" />
171172
<Content Include="js\jquery.hammer\jquery.hammer.js" />
172173
<Content Include="js\jquery.lazyload\jquery.lazyload.min.js" />
174+
<Content Include="js\jquery.min.js" />
173175
<Content Include="js\jquery.scrolltopcontrol\scrolltopcontrol.js" />
174176
<Content Include="js\jquery.toastr\toastr.min.js" />
175177
<Content Include="js\jquery.vide\jquery.vide.js" />
176178
<Content Include="js\jquery.masonry\imagesloaded.pkgd.min.js" />
177179
<Content Include="js\jquery.masonry\masonry.pkgd.min.js" />
180+
<Content Include="js\pace\pace.min.js" />
178181
<Content Include="js\wow\wow.min.js" />
179182
<Content Include="plugs.html" />
180183
<Content Include="sample\carousel.html" />
181184
<Content Include="sample\iframe\child.html" />
182185
<Content Include="sample\iframe\parent.html" />
186+
<Content Include="sample\pace.html" />
183187
<Content Include="sample\scrolltop.html" />
184188
<Content Include="sample\ui\masonrylazyappend.html" />
185189
<Content Include="sample\ui\masonryimg.html" />

css/font-awesome.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/pace/dataurl.css

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.pace {
2+
-webkit-pointer-events: none;
3+
pointer-events: none;
4+
5+
-webkit-user-select: none;
6+
-moz-user-select: none;
7+
user-select: none;
8+
}
9+
10+
.pace-inactive {
11+
display: none;
12+
}
13+
14+
.pace .pace-progress {
15+
background: #31b0d5;
16+
position: fixed;
17+
z-index: 2000;
18+
top: 46px;
19+
right: 100%;
20+
width: 100%;
21+
height: 5px;
22+
}

fonts/FontAwesome.otf

18.3 KB
Binary file not shown.

fonts/fontawesome-webfont.eot

7.46 KB
Binary file not shown.

fonts/fontawesome-webfont.svg

+73-28
Loading

fonts/fontawesome-webfont.ttf

14.3 KB
Binary file not shown.

fonts/fontawesome-webfont.woff

8.91 KB
Binary file not shown.

fonts/fontawesome-webfont.woff2

7.26 KB
Binary file not shown.

index.html

+24-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<link rel="icon" href="favicon.ico" />
88
<!--jquery库-->
9-
<script src="js/jquery-1.9.1.min.js"></script>
9+
<script src="js/jquery.min.js"></script>
1010
<!--bootstrap库-->
1111
<link href="css/bootstrap.min.css" rel="stylesheet" />
1212
<script src="js/bootstrap/bootstrap.min.js"></script>
@@ -16,6 +16,9 @@
1616
<![endif]-->
1717
<!--font-awesome字体库-->
1818
<link href="css/font-awesome.min.css" rel="stylesheet" />
19+
<!--页面加载进度条-->
20+
<link href="css/pace/dataurl.css" rel="stylesheet" />
21+
<script src="js/pace/pace.min.js"></script>
1922
<!--jquery.hammer手势插件-->
2023
<script src="js/jquery.hammer/hammer.min.js"></script>
2124
<script src="js/jquery.hammer/jquery.hammer.js"></script>
@@ -87,37 +90,46 @@
8790
</ul>
8891
<div class="col-sm-12">
8992
<div class="jumbotron">
90-
<h1>这是一套简单的基于bootstrap的简易框架</h1>
91-
<p>适用于bootstrap的插件正在不间断更新中</p>
93+
<h1>这是一套开源的基于bootstrap的简易框架</h1>
94+
<p>所用插件和库几乎都属于开源(个别特殊的会做说明),且功能正在不间断更新中</p>
9295
</div>
9396
<ul class="list-group">
9497
<li class="list-group-item active">
95-
基础库
98+
核心库(现在页面呈现效果必须依赖的库)
9699
</li>
97100
<li class="list-group-item">
98101
<span class="badge">插件库</span>
99-
jquery-1.9.1.js
102+
jquery-1.12.4.js<a href="https://jquery.com/" target="_blank">官网</a>
100103
</li>
101104
<li class="list-group-item">
102105
<span class="badge">UI库</span>
103-
bootstrap3.3.6
106+
bootstrap3.3.6<a href="https://getbootstrap.com/" target="_blank">官网</a>
104107
</li>
105108
<li class="list-group-item">
106109
<span class="badge">UI库</span>
107-
font-awesome4.4.0
110+
font-awesome4.6.3(<a href="http://fontawesome.io/" target="_blank">官网</a>
108111
</li>
109112
<li class="list-group-item">
110113
<span class="badge">插件库</span>
111-
<p>scrolltopcontrol.js<a href="sample/scrolltop.html" target="_blank">让页面返回顶部时平滑滚动</a></p>
112-
<p>使用说明:页面需要引用该js</p>
114+
<p>让页面返回顶部时平滑滚动<a href="sample/scrolltop.html" target="_blank">样例</a></p>
115+
<p>使用说明:页面需要引用scrolltopcontrol.js</p>
113116
</li>
114117
<li class="list-group-item">
115118
<span class="badge">插件库&nbsp;2016.4.28</span>
116-
<p>jquery.hammer<a href="sample/carousel.html" target="_blank">让bootstrap的carousel插件支持手势</a></p>
119+
<p>让bootstrap的carousel插件支持手势<a href="sample/carousel.html" target="_blank">样例</a>)(<a href="https://github.com/hammerjs/jquery.hammer.js" target="_blank">jquery.hammer官网</a>)(<a href="http://hammerjs.github.io/" target="_blank">hammer.js官网</a></p>
117120
<p>
118-
使用说明:页面需要引用hammer.min.js、jquery.hammer.js、default.js
121+
使用说明:页面需要引用hammer.min.js、jquery.hammer.js
122+
</p>
123+
<p>注意:已将carousel的手势绑定事件封装到了default.js中,如果页面已经引用了default.js,就不用再给carousel写手势绑定事件了</p>
124+
</li>
125+
<li class="list-group-item">
126+
<span class="badge">插件库&nbsp;2016.7.1</span>
127+
<p>页面加载进度条(<a href="sample/pace.html" target="_blank">样例</a>)(<a href="http://github.hubspot.com/pace/docs/welcome/" target="_blank">官网</a></p>
128+
<p>
129+
使用说明:1.页面需要引用pace.min.js、dataurl.css <br />
130+
2.官网提供多种样式供选择,只需要下载相应的css文件替换掉原来的css文件就行<br />
131+
3.dataurl.css里面可以调整进度条位置
119132
</p>
120-
<p>注意:已将carousel的手势绑定事件加到了default.js中,页面不用再给carousel写手势绑定事件了</p>
121133
</li>
122134
</ul>
123135
<ul class="list-group">

js/jquery.min.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/pace/pace.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)