Line 1,057: | Line 1,057: | ||
if(data[x].team_name == medal[z].team_name){ | if(data[x].team_name == medal[z].team_name){ | ||
data[x].medal = medal[z].medal_awarded; | data[x].medal = medal[z].medal_awarded; | ||
− | |||
} | } | ||
} | } | ||
− | + | //navigate the awards/nominations array | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | //navigate the awards array | + | |
for(z=0; z < award.length; z++){ | for(z=0; z < award.length; z++){ | ||
Line 1,094: | Line 1,086: | ||
data[x].nominations += ","+trim_text; | data[x].nominations += ","+trim_text; | ||
} | } | ||
− | + | ||
− | + | ||
} | } | ||
Line 1,121: | Line 1,112: | ||
} | } | ||
− | |||
} | } | ||
} | } | ||
Line 1,127: | Line 1,117: | ||
} | } | ||
+ | |||
+ | //if team didn't win a medal | ||
+ | if( data[x].medal == null){ | ||
+ | data[x].medal = '-'; | ||
+ | } | ||
+ | |||
//if the team wasnt nominated | //if the team wasnt nominated | ||
− | if( | + | if( data[x].nominations == null){ |
data[x].nominations = '-'; | data[x].nominations = '-'; | ||
} | } | ||
//if the didnt win an award | //if the didnt win an award | ||
− | if( | + | if( data[x].awards == null){ |
data[x].awards = '-'; | data[x].awards = '-'; | ||
} | } |
Revision as of 15:00, 16 September 2019
Code setup page
This page will help you setup the awards and results page
- Place the awards and medals into a excel file to create the variable notation
- Place the variables indicated on the code on this page
- Place the resulting data bases into the results and all teams info pages