-
-
Save acappelli/d0f83ece55ae30b10071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(bean !== undefined && bean.length > 0) { | |
var s = ""; | |
for (var i = 0; i < bean.length; i++) { | |
s += "<br>" + bean[i].nome + "<br>"; | |
if(bean[i].gol_fatto > 0) { | |
s += bean[i].gol_fatto + "<img src='../assets/images/ic_event_goal' height='51' width='51'>"; | |
} | |
if(bean[i].gol_subito > 0){ | |
s += bean[i].gol_subito + "<img src='../assets/images/ic_event_lost_goal' height='51' width='51'>"; | |
} | |
if(bean[i].rigore_segnato > 0){ | |
s += bean[i].rigore_segnato + "<img src='../assets/images/ic_event_penalty_scored' height='51' width='51'>"; | |
} | |
if(bean[i].rigore_parato > 0){ | |
s += bean[i].rigore_parato + "<img src='../assets/images/ic_event_penalty_blocked' height='51' width='51'>"; | |
} | |
if(bean[i].rigore_sbagliato > 0){ | |
s += bean[i].rigore_sbagliato + "<img src='../assets/images/ic_event_penalty_failed' height='51' width='51'>"; | |
} | |
if(bean[i].assist > 0){ | |
s += bean[i].assist + "<img src='../assets/images/ic_event_assist_sationary' height='51' width='51'>"; | |
} | |
if(bean[i].assist_fermo > 0){ | |
s += bean[i].assist_fermo + "<img src='../assets/images/ic_event_assist_sationary' height='51' width='51'>"; | |
} | |
if(bean[i].autorete > 0){ | |
s += bean[i].autorete + "<img src='../assets/images/ic_event_owngoal' height='51' width='51'>"; | |
} | |
if(bean[i].gol_decisivo_pareggio > 0){ | |
s += bean[i].gol_decisivo_pareggio + "<img src='../assets/images/ic_event_goal_tie' height='51' width='51'>"; | |
} | |
if(bean[i].gol_decisivo_vittoria > 0){ | |
s += bean[i].gol_decisivo_vittoria + "<img src='../assets/images/ic_event_goal_victory' height='51' width='51'>"; | |
} | |
/*if(bean[i].migliore == 1){} | |
if(bean[i].ammonizione == 1){} | |
if(bean[i].espulsione == 1){}*/ | |
//E,U,"" | |
//1,2,0 | |
/*var _sostituzione = 0; | |
if(!CodeUtils.isBlankOrNull(sostituzione)) { | |
if(sostituzione.equalsIgnoreCase("E")) { | |
_sostituzione = 1; | |
} else if(sostituzione.equalsIgnoreCase("U")) { | |
_sostituzione = 2; | |
} | |
} | |
if(_sostituzione > 0)voteBeanList.add(new VoteBean(_sostituzione, "sostituzione"));*/ | |
} | |
$("#live-notification").html(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment