Line 155: | Line 155: | ||
− | + | var award_temp=""; | |
Line 164: | Line 164: | ||
if ( (awards_set[x].award).substring(0,9) == "Nominated" ) { | if ( (awards_set[x].award).substring(0,9) == "Nominated" ) { | ||
− | //append to that award's nominations ul | + | //append to that award's nominations ul (trims after "Nominated for Best" to end the end minus "Project" |
$( "#" + (awards_set[x].award).substring(19, ( (awards_set[x].award).length - 8 )) + "_nominations" ).append( "<li>" + awards_set[x].team_name + "</li>" ); | $( "#" + (awards_set[x].award).substring(19, ( (awards_set[x].award).length - 8 )) + "_nominations" ).append( "<li>" + awards_set[x].team_name + "</li>" ); | ||
} | } | ||
Line 171: | Line 171: | ||
if ( (awards_set[x].award).substring(0,4) == "Best" ) { | if ( (awards_set[x].award).substring(0,4) == "Best" ) { | ||
− | + | //what award did they win ? (trims from after Best to the next empty space ) | |
+ | award_temp = ( (awards_set[x].award).substring( 5, ((awards_set[x].award).indexOf(' ', (awards_set[x].award).indexOf(' ') + 1) ) )); | ||
+ | |||
+ | //append to the undergrad or overgrad | ||
+ | $("#"+award_temp+"_"+awards_set[x].section).append( "<li>" + awards_set[x].team_name + "</li>" ); | ||
+ | award_temp =""; | ||
} | } | ||
Revision as of 22:17, 6 November 2017
AWARDS
Best Diagnostics Project
Nominations
Best Energy Project
Nominations
Best Environment Project
Nominations