Skip to content

Commit 14a4c2f

Browse files
committed
bump 1.1.1
1 parent e58c17f commit 14a4c2f

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

lib/docsify.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,16 @@ function renderLoading (ref) {
24672467
document.body.appendChild(div);
24682468
CACHE['loading'] = div;
24692469
}
2470-
CACHE['loading'].style.width = num >= 95 ? '0%' : num + '%';
2470+
2471+
CACHE['loading'].style.opacity = 1;
2472+
CACHE['loading'].style.width = num + '%';
2473+
if (num >= 95) {
2474+
clearTimeout(renderLoading.cacheTImeout);
2475+
renderLoading.cacheTImeout = setTimeout(function (_) {
2476+
CACHE['loading'].style.opacity = 0;
2477+
CACHE['loading'].style.width = '0%';
2478+
}, 200);
2479+
}
24712480
}
24722481

24732482
/**

0 commit comments

Comments
 (0)