Skip to content

Commit

Permalink
add image and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Allenliu committed Jul 13, 2016
1 parent b2ac9f6 commit fb4a661
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file added Loader/img/img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions Loader/js/loader.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
var loader = (function () {
function createMask() {
var scrollWidth = document.documentElement.scrollWidth || document.body.scrollWidth;
var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight;
var scrollWidth = document.documentElement.clientWidth || document.body.clientWidth;
var scrollHeight = document.documentElement.clientHeight || document.body.clientHeight;
var availHeight = window.screen.availHeight;
if (scrollHeight < availHeight) {
scrollHeight = availHeight;
}
var oMask = document.createElement("div");
oMask.id = "mask";
oMask.style.height = scrollHeight + "px";
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

>这个项目是一个简单的加载中的一个动画,调用很方便,上手很容易,可以很方便的集成到项目中,提供了很多的样式
>关于自己喜欢的样式,可以去CSS里面自己找,相信做前端的肯定是可以找到的,就酱

>关于自己喜欢的样式,可以去CSS里面自己找,相信做前端的肯定是可以找到的,就酱

0 comments on commit fb4a661

Please sign in to comment.