Difference between revisions of "All Teams Info"

Line 179: Line 179:
 
//generate team list
 
//generate team list
 
setup_team_list(all_teams_info);
 
setup_team_list(all_teams_info);
 +
 +
//generate country list
 +
 +
var countries = [... new Set(all_teams_info.map(x => x.location))];
 +
console.log(countries);
 
 
 
//if a search is requested
 
//if a search is requested
Line 210: Line 215:
 
function search_request(object_property, all_teams_info){
 
function search_request(object_property, all_teams_info){
 
 
 +
//get the value to search
 
var value_to_search = $('#'+object_property).val();
 
var value_to_search = $('#'+object_property).val();
 +
//create a temp object for searching
 
var temp_object ={};
 
var temp_object ={};
+
//clean what object property(category) we are using to search
 
object_property = object_property.replace("_list", "");
 
object_property = object_property.replace("_list", "");
 
 
Line 218: Line 225:
 
for (x=0; x< all_teams_info.length; x++){
 
for (x=0; x< all_teams_info.length; x++){
  
 +
//populate temp object
 
temp_object = all_teams_info[x];
 
temp_object = all_teams_info[x];
 
 
console.log(object_property);
+
//
+
console.log(temp_object[object_property]);
+
+
console.log(value_to_search);
+
+
 
if( temp_object[object_property] == value_to_search ){
 
if( temp_object[object_property] == value_to_search ){
 
console.log("Found instance of: "+value_to_search+" --- "+ temp_object.team_name );
 
console.log("Found instance of: "+value_to_search+" --- "+ temp_object.team_name );

Revision as of 20:55, 4 September 2019

Loading...

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.

Team list

Tracks

Section

All teams