Line 9: | Line 9: | ||
{{TokyoTech/js/jquery-3.1.0.min}} | {{TokyoTech/js/jquery-3.1.0.min}} | ||
{{TokyoTech/js/jquery.magnific-popup.min}} | {{TokyoTech/js/jquery.magnific-popup.min}} | ||
+ | {{TokyoTech/js/script}} | ||
<html> | <html> | ||
Line 19: | Line 20: | ||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700" rel="stylesheet"> | <link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700" rel="stylesheet"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
− | <script | + | <script type = "text/javascript"> |
+ | $('.open-popup-link').magnificPopup({ | ||
+ | type:'inline', | ||
+ | midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href. | ||
+ | gallery:{ | ||
+ | enabled:true | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
</head> | </head> |
Revision as of 05:38, 7 September 2017