Team:DTU-Denmark/sysucolortest

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
<script src="https://2013.igem.org/Team:TU-Munich/TUM13_slimbox2.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">
<link href="https://2013.igem.org/Team:TU-Munich/TUM13_slimbox2.css?action=raw&ctype=text/css" type="text/css" rel="stylesheet">
 +
$(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 type="text/javascript">
<script type="text/javascript">

Revision as of 14:00, 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); }); });