Skip to content

Commit

Permalink
Modify custom.js
Browse files Browse the repository at this point in the history
  • Loading branch information
faheemzunjani committed Oct 20, 2018
1 parent 1cc166a commit 869a80c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@ document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('select');
var options = document.querySelectorAll('option');
var instances = M.FormSelect.init(elems, options);
})
})

document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.modal');
var options = document.querySelectorAll('option');
var instances = M.Modal.init(elems, options);
});

document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.sidenav');
var options = document.querySelectorAll('option');
var instances = M.Sidenav.init(elems, options);
});

0 comments on commit 869a80c

Please sign in to comment.