Team:UNITN-Trento/JS/Project/Vending Machine

From 2013.igem.org

Revision as of 16:04, 15 September 2013 by Ggirelli (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$(document).ready(function() {

   $('#jms-slideshow').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);
       });
   });
   

});