Line 30: | Line 30: | ||
<h3>Team list</h3> | <h3>Team list</h3> | ||
<select class="search_input" id="team_list"> </select> | <select class="search_input" id="team_list"> </select> | ||
+ | |||
+ | |||
+ | <!-- Dropdown list for all teams --> | ||
+ | <h3>Country list</h3> | ||
+ | <select class="search_input" id="country_list"> </select> | ||
+ | |||
<!-- Dropdown list for tracks --> | <!-- Dropdown list for tracks --> | ||
Line 181: | Line 187: | ||
//generate country list | //generate country list | ||
+ | setup_country_list(all_teams_info); | ||
− | |||
− | |||
//if a search is requested | //if a search is requested | ||
Line 210: | Line 215: | ||
− | + | function setup_country_list(all_teams_info){ | |
+ | |||
+ | var clean_name; | ||
+ | var countries = [... new Set(all_teams_info.map(x => x.location))]; | ||
+ | |||
+ | for (x=0; x< countries.length; x++){ | ||
+ | |||
+ | clean_name = (countries[x]).replace(/ /g, "_"); | ||
+ | |||
+ | $("#country_list").append("<option value='"+clean_name+"'>"+countries[x]+"</option>"); | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
Revision as of 20:57, 4 September 2019
Information on all teams
This page contains information and links to all the 2019 teams. If you would like to search by category or look for a specific team, you can do so by click below.