UNPKG
manual-apache
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
Apache HTTP Server 是一个开放源码的网页服务器软件。
github.com/kuriv/manual-apache
kuriv/manual-apache
manual-apache
/
book
/
gitbook
/
gitbook-plugin-hide-element
/
plugin.js
14 lines
(11 loc)
•
320 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require
([
'gitbook'
,
'jquery'
],
function
(
gitbook, $
) {
var
opts; gitbook.
events
.
bind
(
'start'
,
function
(
e, config
) { opts = config[
'hide-element'
].
elements
; }); gitbook.
events
.
bind
(
'page.change'
,
function
(
) { $.
map
(opts,
function
(
ele
) { $(ele).
hide
(); }); }); });