var footnotes_data = []; jQuery('.article_description sup').each(function(ind,el){ var number = jQuery(el).text().trim(); if(number){ number = number.replace(/[^0-9]/gi,''); } //console.log(number); if(footnotes_data[number]){ jQuery(el).css({cursor:'pointer'}).addClass('ftnt'); jQuery(el).bind('click',{number:number},function(ev){ var html = jQuery('span.footnote_text_'+number).html(); jQuery('.floating_footnote').remove(); var f = jQuery('
jQuery(window).scroll(function(){ jQuery('.floating_footnote').slideUp(1000); });
Share with a colleague: