Template:Team:HokkaidoU Japan/HumanPractice/script
From 2011.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
$('span.footnote > a').bind('click', function(){ | $('span.footnote > a').bind('click', function(){ | ||
var url = $(this).attr('href'); | var url = $(this).attr('href'); | ||
- | + | $('<div>').load(url + ' div#bodyContent', function(data){ | |
+ | var $box = $('<div>').addClass('footnote-box'); | ||
var $footnote = $(data).find('div#contentSub').nextAll('p'); | var $footnote = $(data).find('div#contentSub').nextAll('p'); | ||
- | $ | + | $box.append($footnote); |
- | + | $('body').append($box); | |
- | $('body').append($ | + | $box.append($('<span>').addClass('close').addClass('close-btn-32')).lightbox_me({ |
- | $ | + | |
destroyOnClose : true | destroyOnClose : true | ||
}); | }); |
Revision as of 13:28, 5 October 2011