Team:DTU-Denmark/Mark/template
From 2014.igem.org
(Difference between revisions)
Line 137: | Line 137: | ||
}); | }); | ||
</script> | </script> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("div.thumbinner > a img").slimbox({/* Put custom options here */}, function(el) { | ||
+ | url = el.src; | ||
+ | if (url.indexOf('thumb') != -1) { | ||
+ | url = url.substring(0, url.lastIndexOf('/')); | ||
+ | url = url.replace('/thumb/', '/'); | ||
+ | } | ||
+ | description = $(el).parents("div.thumbinner").children("div.thumbcaption").text(); | ||
+ | return [url, description]; | ||
+ | }, function(el) { | ||
+ | return (this == el); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
<!-- HTML CONTENT --> | <!-- HTML CONTENT --> | ||
Line 166: | Line 181: | ||
</html> | </html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Revision as of 12:55, 7 July 2014