Line 259: | Line 259: | ||
var clean_name; | var clean_name; | ||
+ | //generate the team list | ||
for (x=0; x< all_teams_info.length; x++){ | for (x=0; x< all_teams_info.length; x++){ | ||
Line 267: | Line 268: | ||
} | } | ||
+ | //clean the previous variable | ||
clean_name = ""; | clean_name = ""; | ||
+ | //generate the list of unique countries | ||
var countries = [... new Set(all_teams_info.map(x => x.location))]; | var countries = [... new Set(all_teams_info.map(x => x.location))]; | ||
Line 279: | Line 282: | ||
} | } | ||
+ | //once the team and country list is done loading, enable the search button | ||
console.log("done appending all the teams and countries "); | console.log("done appending all the teams and countries "); | ||
− | |||
enable_search_button(); | enable_search_button(); | ||
} | } | ||
+ | |||
+ | |||
function search_request(all_teams_info){ | function search_request(all_teams_info){ | ||
− | //get the | + | //get the values to search for each category |
− | var | + | var values_to_search = { |
+ | location: $('#country_list').val(), | ||
+ | track: $('#track_list').val(), | ||
+ | section: $('#section_list').val() | ||
+ | }; | ||
+ | |||
+ | |||
+ | console.log(values_tosearch); | ||
+ | |||
//create a temp object for searching | //create a temp object for searching | ||
var temp_object ={}; | var temp_object ={}; | ||
Line 309: | Line 322: | ||
} | } | ||
+ | |||
+ | |||
function enable_search_button(){ | function enable_search_button(){ | ||
Revision as of 15:13, 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.