Team:UNITN-Trento/JS/Gallery

From 2013.igem.org

(Difference between revisions)
(.thumb as link)
(Trying to pass jmpress options through jmslideshow)
Line 1: Line 1:
$(document).ready(function() {
$(document).ready(function() {
-
$('#jms-slideshow').jmslideshow();
+
var jmpressOpts = {
 +
hash : { use : true }
 +
};
 +
$('#jms-slideshow').jmslideshow( $.extend( true , { jmpressOpts : jmpressOpts }, {
 +
autoplay : true;
 +
arrows : false;
 +
}));
$("#jms-slideshow .step").each(function() {
$("#jms-slideshow .step").each(function() {

Revision as of 14:08, 23 September 2013

$(document).ready(function() { var jmpressOpts = { hash : { use : true } }; $('#jms-slideshow').jmslideshow( $.extend( true , { jmpressOpts : jmpressOpts }, { autoplay : true; arrows : false; }));

$("#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>"); }); });