mirror of https://gitee.com/bigwinds/arangodb
54 lines
1.0 KiB
JavaScript
Executable File
54 lines
1.0 KiB
JavaScript
Executable File
define([
|
|
"jQuery",
|
|
"utils/storage",
|
|
"utils/sharing",
|
|
"utils/dropdown",
|
|
|
|
"core/events",
|
|
"core/font-settings",
|
|
"core/state",
|
|
"core/keyboard",
|
|
"core/navigation",
|
|
"core/progress",
|
|
"core/sidebar",
|
|
"core/search",
|
|
"core/glossary"
|
|
], function($, storage, sharing, dropdown, events, fontSettings, state, keyboard, navigation, progress, sidebar, search, glossary){
|
|
var start = function(config) {
|
|
var $book;
|
|
$book = state.$book;
|
|
|
|
// Init sidebar
|
|
sidebar.init();
|
|
|
|
// Load search
|
|
search.init();
|
|
|
|
// Load glossary
|
|
glossary.init();
|
|
|
|
// Init keyboard
|
|
keyboard.init();
|
|
|
|
// Bind sharing button
|
|
sharing.init();
|
|
|
|
// Bind dropdown
|
|
dropdown.init();
|
|
|
|
// Init navigation
|
|
navigation.init();
|
|
|
|
//Init font settings
|
|
fontSettings.init(config.fontSettings || {});
|
|
|
|
events.trigger("start", config);
|
|
}
|
|
|
|
return {
|
|
start: start,
|
|
events: events,
|
|
state: state
|
|
};
|
|
});
|