Line 295: | Line 295: | ||
function search_request(all_teams_info){ | function search_request(all_teams_info){ | ||
+ | //variable to check if the search can be done | ||
+ | var proper_search = True; | ||
− | + | //create a temp object for searching | |
− | + | var temp_object ={}; | |
− | + | ||
− | + | ||
//get the values to search for each category | //get the values to search for each category | ||
Line 308: | Line 308: | ||
}; | }; | ||
− | console.log(values_to_search); | + | console.log("searching for the following values:"+values_to_search.location+" "+values_to_search.track+" "+values_to_search.section); |
− | + | ||
+ | |||
// if the user hasn't selected any particular category, ask them to narrow down the search | // if the user hasn't selected any particular category, ask them to narrow down the search | ||
if(values_to_search.location == 'all'){ | if(values_to_search.location == 'all'){ | ||
Line 318: | Line 318: | ||
//$("#filtered_results").append("<p>Please narrow down your search.</p>"); | //$("#filtered_results").append("<p>Please narrow down your search.</p>"); | ||
alert("Please narrow down your search"); | alert("Please narrow down your search"); | ||
+ | proper_search = False ; | ||
} | } | ||
} | } | ||
Line 323: | Line 324: | ||
− | + | if(proper_search == True){ | |
− | + | ||
− | + | for (x=0; x< all_teams_info.length; x++){ | |
− | + | //populate temp object with current team | |
− | + | temp_object = all_teams_info[x]; | |
− | + | //check for country | |
− | + | if( temp_object.location == values_to_search.location ){ | |
− | + | console.log("Found instance of: "+values_to_search.location+" -in team- "+ temp_object.team_name ); | |
− | + | } | |
+ | //check for track | ||
+ | if( temp_object.track == values_to_search.track ){ | ||
+ | console.log("Found instance of: "+values_to_search.track+" -in team- "+ temp_object.team_name ); | ||
+ | } | ||
+ | |||
+ | |||
+ | //check for section | ||
+ | if( temp_object.section == values_to_search.section){ | ||
+ | console.log("Found instance of: "+values_to_search.section+" -in team- "+ temp_object.team_name ); | ||
+ | } | ||
+ | |||
+ | |||
+ | } | ||
} | } | ||
+ | |||
} | } |
Revision as of 15:44, 5 September 2019
Information on all teams
This page contains information and links to all the 2019 teams. If you would like to search for a specific team or filter by categories you can do so by using the search tool below.
Search and filter tool
Team list
Country / Territory
Tracks
Section
results will be here: