Line 20: | Line 20: | ||
<div class="clear extra_space"></div> | <div class="clear extra_space"></div> | ||
− | < | + | <textarea id="results_page" rows="4" cols="50"> |
− | + | ||
<div class="clear extra_space"></div> | <div class="clear extra_space"></div> | ||
Line 1,044: | Line 1,043: | ||
////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////// | ||
− | + | ||
− | + | ||
− | + | ||
var trim_text=""; | var trim_text=""; | ||
Line 1,092: | Line 1,089: | ||
//award | //award | ||
else if ( (award[z].award).substring(0,4) == "Best" ) { | else if ( (award[z].award).substring(0,4) == "Best" ) { | ||
− | + | ||
− | + | ||
− | + | ||
//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'){ | ||
Line 1,122: | Line 1,117: | ||
data[x].medal = '-'; | data[x].medal = '-'; | ||
} | } | ||
− | |||
//if the team wasnt nominated | //if the team wasnt nominated | ||
Line 1,133: | Line 1,127: | ||
data[x].awards = '-'; | data[x].awards = '-'; | ||
} | } | ||
+ | |||
} | } | ||
Line 1,141: | Line 1,136: | ||
for(x=0; x < data.length; x++ ){ | for(x=0; x < data.length; x++ ){ | ||
− | $("#results_page").append("<p>{'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+"', "+ |
− | "'track':'"+data[x].track+"',"+ | + | "'track':'"+data[x].track+"', "+ |
− | "'location':'"+data[x].location+"',"+ | + | "'location':'"+data[x].location+"', "+ |
− | "'medal':'"+data[x].medal+"',"+ | + | "'medal':'"+data[x].medal+"', "+ |
− | "'award':'"+data[x].awards+"',"+ | + | "'award':'"+data[x].awards+"', "+ |
− | "'nomination':'"+data[x].nominations+"'"+ | + | "'nomination':'"+data[x].nominations+"' "+ |
"},</p>"); | "},</p>"); | ||
} | } |
Revision as of 15:09, 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