JacquesHille (Talk | contribs) |
JacquesHille (Talk | contribs) |
||
Line 70: | Line 70: | ||
}); | }); | ||
}); | }); | ||
+ | |||
+ | document.addEventListener('DOMContentLoaded', function() { | ||
+ | var elems = document.querySelectorAll('.modal'); | ||
+ | var instances = M.Modal.init(elems, options); | ||
+ | }); | ||
+ | |||
+ | // Or with jQuery | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $('.modal').modal(); | ||
+ | }); | ||
</script> | </script> |
Revision as of 09:48, 6 October 2018