UNPKG
@doneproperly/gitbook-plugin-theme-doneproperly-default
Version:
latest (0.0.0)
0.0.0
Default theme for GitBook
@doneproperly/gitbook-plugin-theme-doneproperly-default
/
src
/
js
/
theme
/
loading.js
15 lines
(11 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
gitbook =
window
.
gitbook
;
function
showLoading
(
p
) { gitbook.
state
.
$book
.
addClass
(
'is-loading'
); p.
always
(
function
(
) { gitbook.
state
.
$book
.
removeClass
(
'is-loading'
); });
return
p; }
module
.
exports
= {
show
: showLoading };