Difference between revisions of "All Teams Info"

Line 71: Line 71:
 
<!-- Dropdown list for all teams -->
 
<!-- Dropdown list for all teams -->
 
<select class="search_input" id="country_list">  
 
<select class="search_input" id="country_list">  
<option value="all_countries">All countries/territories</option>
+
<option value="all">All countries/territories</option>
 
</select>
 
</select>
 
</div>
 
</div>
Line 79: Line 79:
 
<!-- Dropdown list for tracks -->
 
<!-- Dropdown list for tracks -->
 
<select class="search_input" id="track_list">  
 
<select class="search_input" id="track_list">  
<option value="All tracks">All tracks</option>
+
<option value="all">All tracks</option>
 
<option value="Diagnostics">Diagnostics</option>
 
<option value="Diagnostics">Diagnostics</option>
 
<option value="Energy">Energy</option>
 
<option value="Energy">Energy</option>
Line 99: Line 99:
 
<!-- Dropdown list for sections-->
 
<!-- Dropdown list for sections-->
 
<select class="search_input" id="section_list">  
 
<select class="search_input" id="section_list">  
<option value="Undergrad">All sections</option>
+
<option value="all">All sections</option>
 
<option value="Undergrad">Undergrad</option>
 
<option value="Undergrad">Undergrad</option>
 
<option value="Overgrad">Overgrad</option>
 
<option value="Overgrad">Overgrad</option>
Line 291: Line 291:
 
 
 
function search_request(all_teams_info){
 
function search_request(all_teams_info){
 
//get the values to search for each category
 
// var values_to_search = {
 
// location: $('#country_list').val(),
 
// track: $('#track_list').val(),
 
// section: $('#section_list').val()
 
//};
 
 
 
 
 
Line 304: Line 297:
 
console.log($('#section_list').val());
 
console.log($('#section_list').val());
 
 
//create a temp object for searching
 
var temp_object ={};
 
//clean what object property(category) we are using to search
 
object_property = object_property.replace("_list", "");
 
 
 
 +
//get the values to search for each category
 +
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
 +
var temp_object ={};
 +
 +
 
for (x=0; x< all_teams_info.length; x++){
 
for (x=0; x< all_teams_info.length; x++){
  
Line 316: Line 318:
 
 
 
//
 
//
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 15:24, 5 September 2019

Loading...

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

All teams