JacquesHille (Talk | contribs) |
JacquesHille (Talk | contribs) |
||
Line 9: | Line 9: | ||
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> | <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> | ||
<script type="text/javascript" src="https://2018.igem.org/Template:Groningen/Javascript&action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2018.igem.org/Template:Groningen/Javascript&action=raw&ctype=text/javascript"></script> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</head> | </head> | ||
Line 57: | Line 42: | ||
</div> | </div> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
+ | |||
+ | <script> | ||
+ | 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> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 09:50, 6 October 2018