Line 1,107: | Line 1,107: | ||
//trim any extra text | //trim any extra text | ||
if(award[z].section == 'high_school' || award[z].section == 'overgrad'){ | if(award[z].section == 'high_school' || award[z].section == 'overgrad'){ | ||
− | trim_text = (award[z].award).substring( | + | trim_text = (award[z].award).substring(0, ((award[z].award).indexOf(","))); |
} | } | ||
else{ | else{ | ||
Line 1,141: | Line 1,141: | ||
} | } | ||
− | + | ||
} | } | ||
Line 1,150: | Line 1,150: | ||
for(x=0; x < data.length; x++ ){ | for(x=0; x < data.length; x++ ){ | ||
− | $("#results_page").append("{'team_name':'"+data[x].team_name+"',"+ | + | $("#results_page").append("<p>{'team_name':'"+data[x].team_name+"',"+ |
"'region':'"+data[x].region+"',"+ | "'region':'"+data[x].region+"',"+ | ||
"'section':'"+data[x].section+"',"+ | "'section':'"+data[x].section+"',"+ | ||
Line 1,158: | Line 1,158: | ||
"'award':'"+data[x].awards+"',"+ | "'award':'"+data[x].awards+"',"+ | ||
"'nomination':'"+data[x].nominations+"',"+ | "'nomination':'"+data[x].nominations+"',"+ | ||
− | "},< | + | "},</p>"); |
} | } | ||
Revision as of 19:59, 13 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