Skip to content

Commit bccabb0

Browse files
committed
Merge pull request #92 from zhangxinxu/develop
Develop
2 parents ae36c6e + f8622d5 commit bccabb0

File tree

6 files changed

+18
-28
lines changed

6 files changed

+18
-28
lines changed

ReadMe.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ mobilebone.js
1010
</ul>
1111

1212
<ul>
13-
<li>测试页面:<a href="http://rawgit.com/zhangxinxu/mobilebone/develop/test/index.html">test/index.html</a></li>
13+
<li>测试页面:<a href="http://rawgit.com/zhangxinxu/mobilebone/develop/test/index.html">test/index.html</a>
14+
<p><img src="http://image.zhangxinxu.com/image/blog/201410/2014-10-28_174538.png" width="176" height="178"></p>
15+
</li>
1416
</ul>
1517

1618
<ul>
@@ -50,7 +52,7 @@ Mobilebone会自动捕获页面上的a元素,如果其href值存在猫腻,
5052

5153
所有ajax请求默认是缓存的,如果你想根据url地址不缓存,可以设置<code>data-reload</code>或者<code>data-reload="true"</code>;如果你想根据url根地址不缓存,需要设置<code>data-reload="root"</code>。
5254

53-
你可以控制切换的方向,可以被seajs, requiejs模块化加载(<code>require('mobilebone')</code>),可以和Backbone组合使用等。
55+
你可以控制切换的方向,任意扩展动画类型,可以被seajs, requiejs模块化加载(<code>require('mobilebone')</code>),可以和Backbone组合使用等。
5456

5557
当然,上面介绍的,只是强大功能的冰山一角,更多信息请[参考这里](http://www.zhangxinxu.com/wordpress/?p=4381).
5658

@@ -62,15 +64,16 @@ Mobilebone会自动捕获页面上的a元素,如果其href值存在猫腻,
6264

6365
优势?
6466
------------------
65-
mobilebone.js只做了一件事情,切换。所以,JS文件很小,gzip后3~4K, 而且很灵活,几乎没有任何UI的限制,适用于各个项目各个场景。同时,巧妙提供各类缓存管理、事件管理的接口,就像是个完整健全的骨架体系,就等你来加血添肉了!<img src="http://mat1.gtimg.com/www/mb/images/face/4.gif" align="absmiddle">
67+
mobilebone.js只做了一件事情,切换。所以,JS文件很小,gzip后4~5K, 而且很灵活,几乎没有任何UI的限制,适用于各个项目各个场景。同时,巧妙提供各类缓存管理、事件管理的接口,就像是个完整健全的骨架体系,就等你来加血添肉了!<img src="http://mat1.gtimg.com/www/mb/images/face/4.gif" align="absmiddle">
6668

6769
许可
6870
-------------------
6971
MIT许可
7072

7173
捐赠
7274
------------------
73-
<img src="http://www.zhangxinxu.com/alipay.png" width="256" height="256" alt="支付鼓励">
75+
左支付宝,右微信<br>
76+
<img src="http://www.zhangxinxu.com/alipay.png?v=1" width="176" height="176" alt="支付宝"> &nbsp; &nbsp; <img src="http://www.zhangxinxu.com/wxpay.png" width="176" height="176" alt="微信">
7477

7578
mobilebone.js
7679
=============

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobilebone",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "Bone main for mobile web APP with a sigle page mode.",
55
"main": "src/mobilebone.js",
66
"directories": {

src/mobilebone.css

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ html, body, .page {
6565
7px -7px 0 1.5px currentColor, /* right-top, 1.5px expand */
6666
7px 7px currentColor, /* right-bottom */
6767
-7px 7px currentColor; /* left-bottom */
68-
-webkit-animation: loading 1s step-start infinite;
69-
animation: loading 1s step-start infinite;
68+
-webkit-animation: spin 1s steps(8) infinite;
69+
animation: spin 1s steps(8) infinite;
7070
/*center*/
7171
position: absolute;
7272
top: 0; right: 0; bottom: 0; left: 0;
@@ -127,25 +127,11 @@ html, body, .page {
127127
}
128128

129129
/* chrysanthemum loading effect */
130-
@-webkit-keyframes loading {
130+
@-webkit-keyframes spin {
131131
0% { -webkit-transform: rotate(0deg); }
132-
12% { -webkit-transform: rotate(45deg); }
133-
25% { -webkit-transform: rotate(90deg); }
134-
37% { -webkit-transform: rotate(135deg); }
135-
50% { -webkit-transform: rotate(180deg); }
136-
63% { -webkit-transform: rotate(225deg); }
137-
75% { -webkit-transform: rotate(270deg); }
138-
87% { -webkit-transform: rotate(315deg); }
139-
90% { -webkit-transform: rotate(360deg); }
140-
}
141-
@keyframes loading {
132+
100% { -webkit-transform: rotate(360deg); }
133+
}
134+
@keyframes spin {
142135
0% { transform: rotate(0deg); }
143-
12% { transform: rotate(45deg); }
144-
25% { transform: rotate(90deg); }
145-
37% { transform: rotate(135deg); }
146-
50% { transform: rotate(180deg); }
147-
63% { transform: rotate(225deg); }
148-
75% { transform: rotate(270deg); }
149-
87% { transform: rotate(315deg); }
150-
90% { transform: rotate(360deg); }
136+
100% { transform: rotate(360deg); }
151137
}

src/mobilebone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @type string
4040
**/
41-
Mobilebone.VERSION = '2.4.0';
41+
Mobilebone.VERSION = '2.4.1';
4242

4343
/**
4444
* Whether catch attribute of href from element with tag 'a'

test/ajax-html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<li><a href="ajax-page.html" data-container="container">点击加载(缓存,若后2项已请求,则无请求)</a></li>
1616
<li><a href="ajax-page.html#a=1#b=1&c=1#" data-reload>点击加载(每次都请求, 返回含page结构)</a></li>
1717
<li><a href="ajax-page.html?&&" data-formdata="?a=1">点击加载(缓存, url过滤测试)</a></li>
18-
<li><a href="ajax-page.html?a" data-reload data-formdata="?a=1">点击加载(data-formdata测试)-全覆盖loading</a></li>
18+
<li><a href="ajax-page.html?debug=zhangrui.songyi#&/index.php/Home/Mall/index/sid/251 " data-reload data-formdata="?a=1">点击加载(data-formdata测试)-全覆盖loading</a></li>
1919
<li><a href="ajax-page.html?a=1&#tt_fo#nt=m&tt_#daymode=1" data-reload data-formdata="&c=1" data-mask="true">点击加载(data-formdata测试)-内覆盖loading</a></li>
2020
<li><a href="ajax-page.html?a=1&b=" class="follow" data-reload data-formdata="c=1&d=1" data-mask="true">点击加载(data-formdata测试)-跟随loading</a></li>
2121
</ul>

test/base-slide/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<li><a href="#&page1">页面1-#&amp;page1</a></li>
1515
<li><a href="#page2">页面2-#page2</a></li>
1616
<li><a href="#page3">页面3</a></li>
17+
<li><a>测试菊花:<div class="mask"><i class="loading"></i></div></a></li>
1718
</ul>
1819
<ul>
1920
<li><a href="../index.html" data-ajax="false">&laquo; 返回测试引导首页</a></li>

0 commit comments

Comments
 (0)