ts-learnings/custom_script.js
Unisko PENG, 341142b8a5 Updated.
2023-01-15 20:30:45 +08:00

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