-
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy path_initialization.js
More file actions
28 lines (26 loc) · 957 Bytes
/
_initialization.js
File metadata and controls
28 lines (26 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//# This file is prepended with an underscore to ensure it comes alphabetically-first
//# when application.js includes all JS files in the directory with require_tree.
//# Here be dragons.
if (!window.Notebook) { window.Notebook = {}; }
Notebook.init = function() {
// Initialize MaterializeCSS stuff
M.AutoInit();
$('.sidenav').sidenav();
$('.quick-reference-sidenav').sidenav({
closeOnClick: true,
edge: 'right',
draggable: false
});
$('#recent-edits-sidenav').sidenav({
closeOnClick: true,
edge: 'right',
draggable: false
});
$('.slider').slider({ height: 200, indicators: false });
$('.dropdown-trigger').dropdown({ coverTrigger: false });
$('.dropdown-trigger-on-hover').dropdown({ coverTrigger: false, hover: true });
$('.tooltipped').tooltip({ enterDelay: 50 });
$('.with-character-counter').characterCounter();
$('.materialboxed').materialbox();
};
$(() => Notebook.init());