Team:UNITN-Trento/JS/Gallery

From 2013.igem.org

(Difference between revisions)
(Preparing thumbnail)
Line 4: Line 4:
$("#jms-slideshow .step").each(function() {
$("#jms-slideshow .step").each(function() {
img = $(this).css('background-image').split("\"")[1];
img = $(this).css('background-image').split("\"")[1];
-
alert(img);
+
$(".container .sheet").append("<div class='thumb'><img src='"+img+"' /></div>");
});
});
});
});

Revision as of 13:59, 23 September 2013

$(document).ready(function() { $('#jms-slideshow').jmslideshow();

$("#jms-slideshow .step").each(function() { img = $(this).css('background-image').split("\"")[1];

$(".container .sheet").append("
<img src='"+img+"' />
");

}); });