Team:DTU-Denmark/sysucolortest
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
{{:Template:Team:DTU-Denmark/cysucolortest}} | {{:Template:Team:DTU-Denmark/cysucolortest}} | ||
<html> | <html> | ||
- | + | $(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); | ||
+ | }); | ||
+ | }); | ||
<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_jquery-1.10.2.js?action=raw&ctype=text/javascript" type="text/javascript"></script> |
Revision as of 14:06, 21 September 2014
MOVED to template_css $(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); }); });
$(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); }); });