jQuery(document).ready(function(e){
BottomPopup_content() ;
jQuery("#bottom_popup_trigger").on( "click" , function(e){BottomPopup_toggle()} ) ;
jQuery("#bottom_popup_content").on( "mouseleave" , function(){BottomPopup_close()} ) ;
});
function BottomPopup_content()
{
var html = '' ;
html += '
'
+'Berini Chiara D.I. - P.I. 04501450276'
+'
' ;
var data = [] ;
// ROW 0 -> header
data.push( [ "Soggetto Erogante", "Somma Incassata", "Data Incasso", "Motivazione" ] ) ;
data.push( [ "Agenzia delle Entrate", "2299,00 €", "07/07/20", "Contributo a f. perduto" ] ) ;
data.push( [ "Agenzia delle Entrate", "3449,00 €", "10/11/20", "Contributo a f. perduto" ] ) ;
data.push( [ "Agenzia delle Entrate", "1019,00 €", "14/12/20", "Contributo a f. perduto" ] ) ;
// ", "
html += '' ;
html += '' ;
jQuery("#bottom_popup_content").html(html);
}
function BottomPopup_toggle(){
var bp = jQuery("#bottom_popup") ;
var bpc = jQuery("#bottom_popup_content") ;
var pos = jQuery("#bottom_popup_trigger").position() ; ;
var fpos = parseInt( pos.top, 10 )-( parseInt( bpc.css("height"), 10 ) ) ;
bp.css( "top" ,(fpos)+"px" );
if( bp.css("display")=="none" ){ BottomPopup_open(); }
else{ BottomPopup_close() ; }
}
function BottomPopup_open(){ jQuery("#bottom_popup").fadeIn(); }
function BottomPopup_close(){ jQuery("#bottom_popup").fadeOut(); }