Compare commits

...
3 Commits
Author SHA1 Message Date
qingwei.li aa1d84b513 1.1.1 2016-12-17 09:07:15 +08:00
qingwei.li 14a4c2f77d bump 1.1.1 2016-12-17 09:01:41 +08:00
qingwei.li e58c17fdc6 Optimize progress bar 2016-12-17 09:01:21 +08:00
5 changed files with 27 additions and 5 deletions
+4
View File
@@ -1,3 +1,7 @@
## 1.1.1
### Bug fixes
- Optimize progress bar
## 1.1.0
## Features
- Add progress bar
+10 -1
View File
@@ -2467,7 +2467,16 @@ function renderLoading (ref) {
document.body.appendChild(div);
CACHE['loading'] = div;
}
CACHE['loading'].style.width = num >= 95 ? '0%' : num + '%';
CACHE['loading'].style.opacity = 1;
CACHE['loading'].style.width = num + '%';
if (num >= 95) {
clearTimeout(renderLoading.cacheTImeout);
renderLoading.cacheTImeout = setTimeout(function (_) {
CACHE['loading'].style.opacity = 0;
CACHE['loading'].style.width = '0%';
}, 200);
}
}
/**
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "docsify",
"version": "1.1.0",
"version": "1.1.1",
"description": "A magical documentation generator.",
"main": "lib/docsify.js",
"files": [
+10 -1
View File
@@ -122,7 +122,16 @@ export function renderLoading ({ loaded, total }) {
document.body.appendChild(div)
CACHE['loading'] = div
}
CACHE['loading'].style.width = num >= 95 ? '0%' : num + '%'
CACHE['loading'].style.opacity = 1
CACHE['loading'].style.width = num + '%'
if (num >= 95) {
clearTimeout(renderLoading.cacheTImeout)
renderLoading.cacheTImeout = setTimeout(_ => {
CACHE['loading'].style.opacity = 0
CACHE['loading'].style.width = '0%'
}, 200)
}
}
/**