2018-09-13 03:31:49 +02:00
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
var elems = document.querySelectorAll('.sidenav');
|
|
|
|
var options = {};
|
|
|
|
var instances = M.Sidenav.init(elems, options);
|
|
|
|
});
|
2017-03-12 03:02:54 +01:00
|
|
|
|
2018-09-13 03:31:49 +02:00
|
|
|
// Initialize collapsible (uncomment the lines below if you use the dropdown variation)
|
|
|
|
// var collapsibleElem = document.querySelector('.collapsible');
|
|
|
|
// var collapsibleInstance = M.Collapsible.init(collapsibleElem, options);
|
2017-03-12 03:02:54 +01:00
|
|
|
|
2018-09-13 03:31:49 +02:00
|
|
|
// Or with jQuery
|
2017-03-12 21:38:18 +01:00
|
|
|
|
2018-09-13 03:31:49 +02:00
|
|
|
$(document).ready(function(){
|
|
|
|
$('.sidenav').sidenav();
|
|
|
|
});
|