Difference between revisions of "HQ:Code Test"

Line 1,126: Line 1,126:
  
 
}
 
}
 +
 
 
 +
}
 +
 +
//if the team wasnt nominated
 +
if(nominations_assigned  == false){
 +
data[x].nominations = '-';
 +
}
 
 
//if the team wasnt nominated
+
//if the didnt win an award
if(nominations_assigned  == false){
+
if(award_assigned  == false){
data[x].nominations = '-';
+
data[x].awards = '-';
}
+
+
//if the didnt win an award
+
if(award_assigned  == false){
+
data[x].awards = '-';
+
}
+
+
+
 
}
 
}
 
 
 
}
 
}
 
 
Line 1,157: Line 1,154:
 
  "'medal':'"+data[x].medal+"',"+
 
  "'medal':'"+data[x].medal+"',"+
 
  "'award':'"+data[x].awards+"',"+
 
  "'award':'"+data[x].awards+"',"+
  "'nomination':'"+data[x].nominations+"',"+
+
  "'nomination':'"+data[x].nominations+"'"+
 
  "},</p>");
 
  "},</p>");
 
}
 
}

Revision as of 20:04, 13 September 2019

Loading...

Code setup page

This page will help you setup the awards and results page

  1. Place the awards and medals into a excel file to create the variable notation
  2. Place the variables indicated on the code on this page
  3. Place the resulting data bases into the results and all teams info pages