Team:UNITN-Trento/JS/Gallery

From 2013.igem.org

(Difference between revisions)
(Preparing thumbnail)
(.thumb as link)
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];
-
$(".container .sheet").append("<div class='thumb'><img src='"+img+"' /></div>");
+
$(".container .sheet").append("<a href='javascript:alert(1);' class='thumb'><img src='"+img+"' /></a>");
});
});
});
});

Revision as of 14:02, 23 September 2013

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

$("#jms-slideshow .step").each(function() { img = $(this).css('background-image').split("\"")[1]; $(".container .sheet").append("<a href='javascript:alert(1);' class='thumb'><img src='"+img+"' /></a>"); }); });