分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
479 B

6 years ago
require(['gitbook', 'jQuery'], function (gitbook, $) {
var url = ''
var src = ''
var insertLogo = function (src, url) {
$('.book-summary').children().eq(0).before('<a class="book-logo" href="' + url + '"><img src="' + src + '"</a>')
}
gitbook.events.bind('start', function (e, config) {
src = config['insert-logo-link']['src']
url = config['insert-logo-link']['url']
})
gitbook.events.bind("page.change", function() {
insertLogo(src, url)
})
})