Difference between revisions of "Team:Cambridge-JIC/Gallery"
Line 1: | Line 1: | ||
{{:Team:Cambridge-JIC/Templates/Menu}} | {{:Team:Cambridge-JIC/Templates/Menu}} | ||
<html> | <html> | ||
+ | |||
<section style="background-color: #ebe5dc"> | <section style="background-color: #ebe5dc"> | ||
<div class="slide" style="background-color: inherit; padding: 20px 30px"> | <div class="slide" style="background-color: inherit; padding: 20px 30px"> | ||
<h2 style="color:#333">Gallery</h2> | <h2 style="color:#333">Gallery</h2> | ||
− | <div id="gall"> | + | <div id="gall"></div> |
− | + | ||
− | + | ||
− | </div> | + | |
</div> | </div> | ||
</section> | </section> | ||
− | <script src="//2015.igem.org/Team:Cambridge-JIC/Assets/Gallery.js?action=raw&ctype=text/javascript"></script> | + | <script src="//2015.igem.org/Team:Cambridge-JIC/Assets/Gallery.js?action=raw&ctype=text/javascript"></script> |
<link rel="stylesheet" href="//2015.igem.org/Team:Cambridge-JIC/Assets/Gallery.css?action=raw&ctype=text/css" type="text/css" media="screen" /> | <link rel="stylesheet" href="//2015.igem.org/Team:Cambridge-JIC/Assets/Gallery.css?action=raw&ctype=text/css" type="text/css" media="screen" /> | ||
− | |||
<script> | <script> | ||
//<![CDATA[ | //<![CDATA[ | ||
+ | function addGal(url, title) { | ||
+ | $("#gall").append($('<a class="fancybox" rel="gallery1" href="'+url+'" title="'+title+'"><img src="'+url+'" style="width: 200px" alt="" /></a>')); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | $(document).ready(function() { | ||
+ | |||
+ | addGal("https://static.igem.org/mediawiki/2015/e/eb/CamJIC-Superfocussed.png", "test") | ||
+ | addGal("https://static.igem.org/mediawiki/2015/e/eb/CamJIC-Superfocussed.png", "test") | ||
+ | addGal("https://static.igem.org/mediawiki/2015/e/eb/CamJIC-Superfocussed.png", "test") | ||
+ | addGal("https://static.igem.org/mediawiki/2015/e/eb/CamJIC-Superfocussed.png", "test") | ||
+ | |||
+ | |||
+ | $(".fancybox").fancybox({ | ||
+ | openEffect : 'none', | ||
+ | closeEffect : 'none' | ||
+ | }); | ||
+ | }); | ||
//]]> | //]]> |
Revision as of 14:28, 10 September 2015