From 2014.igem.org
(Difference between revisions)
|
|
Line 3: |
Line 3: |
| | | |
| <head> | | <head> |
- | <script src="https://2013.igem.org/Team:TU-Munich/TUM13_jquery-1.10.2.js?action=raw&ctype=text/javascript" type="text/javascript"></script>
| + | |
- | <script src="https://2013.igem.org/Team:TU-Munich/TUM13_slimbox2.js?action=raw&ctype=text/javascript" type="text/javascript"></script>
| + | |
- | <link href="https://2013.igem.org/Team:TU-Munich/TUM13_slimbox2.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet">
| + | |
- | <script>
| + | |
- | $(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>
| + | |
| | | |
| <!-- | | <!-- |
Revision as of 14:39, 21 September 2014
MOVED to template_css