Team:UNITN-Trento/JS/Project/Fruit ripening
From 2013.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
$('#jms-slideshow-2').jmslideshow(); | $('#jms-slideshow-2').jmslideshow(); | ||
- | $(' | + | $('.jms-slideshow a').each(function() { |
$(this).click(function(e) { | $(this).click(function(e) { | ||
e.preventDefault(); | e.preventDefault(); |
Latest revision as of 21:20, 17 September 2013
$(document).ready(function() {
$('#jms-slideshow-1').jmslideshow(); $('#jms-slideshow-2').jmslideshow();
$('.jms-slideshow a').each(function() { $(this).click(function(e) { e.preventDefault();
div = $('<div/>'); $(div).addClass('tn-hoverTag');
// $(div).append('' + $(_self).html() + '
'); $(div).append('<img src="' + $(this).children("img").attr('src') + '" />'); $(div).append('
Click to exit'); $(div).children().wrapAll('<div/>');
$(div).click(function(e) { e.preventDefault(); $(div).remove(); $('#tn-content .tag').removeClass('active'); }); $('body').append(div); }); });
});