Team:UNITN-Trento/JS/Gallery
From 2013.igem.org
(Difference between revisions)
(Trying to pass jmpress options through jmslideshow) |
m |
||
Line 4: | Line 4: | ||
}; | }; | ||
$('#jms-slideshow').jmslideshow( $.extend( true , { jmpressOpts : jmpressOpts }, { | $('#jms-slideshow').jmslideshow( $.extend( true , { jmpressOpts : jmpressOpts }, { | ||
- | autoplay : true | + | autoplay : true, |
- | arrows : false | + | arrows : false, |
})); | })); | ||
Revision as of 14:09, 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>"); }); });