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>
<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">
 +
<script>
$(document).ready(function(){
$(document).ready(function(){
$("div.thumbinner > a img").slimbox({/* Put custom options here */}, function(el) {
$("div.thumbinner > a img").slimbox({/* Put custom options here */}, function(el) {
Line 31: Line 20:
});
});
});
});
 +
</script>
<!--
<!--

Revision as of 14:22, 21 September 2014

MOVED to template_css