mirror of
https://github.com/gnu4cn/ts-learnings.git
synced 2024-12-26 12:50:31 +08:00
16 lines
378 B
JavaScript
16 lines
378 B
JavaScript
require(['gitbook', 'jQuery'], function(gitbook, $) {
|
|
var honkit_link = $('a[class=gitbook-link]');
|
|
|
|
var text = honkit_link.text();
|
|
honkit_link.parent().html(`<span style="align: center;">${text}</span>`);
|
|
|
|
//
|
|
gitbook.events.bind('page.change', function() {
|
|
|
|
setTimeout(() => {
|
|
var el = $('div.book-body');
|
|
el.attr('style', '');
|
|
}, 300);
|
|
});
|
|
});
|