kubernetes-handbook/node_modules/gitbook-plugin-hide-element/book/plugin.js

14 lines
320 B
JavaScript

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();
});
});
});