mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
1b147d3e30
Conflicts: theme/javascript/app.js
39 lines
794 B
JavaScript
Executable File
39 lines
794 B
JavaScript
Executable File
require([
|
|
"jQuery",
|
|
"utils/storage",
|
|
"utils/analytic",
|
|
"utils/sharing",
|
|
|
|
"core/state",
|
|
"core/keyboard",
|
|
"core/navigation",
|
|
"core/progress",
|
|
"core/sidebar",
|
|
"core/search"
|
|
], function($, storage, analytic, sharing, state, keyboard, navigation, progress, sidebar, search){
|
|
$(document).ready(function() {
|
|
var $book;
|
|
$book = state.$book;
|
|
|
|
if (state.githubId) {
|
|
// Initialize storage
|
|
storage.setBaseKey(state.githubId);
|
|
}
|
|
|
|
// Init sidebar
|
|
sidebar.init();
|
|
|
|
// Load search
|
|
search.init();
|
|
|
|
// Init keyboard
|
|
keyboard.init();
|
|
|
|
// Bind sharing button
|
|
sharing.init();
|
|
|
|
// Init navigation
|
|
navigation.init();
|
|
});
|
|
});
|