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> | ||
+ | |||
+ | <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> | ||
+ | |||
+ | |||
</head> | </head> | ||
<body> | <body> |
Revision as of 09:45, 6 October 2018