Difference between revisions of "Dev/Results"

(fixed colspan on table error msgs since I added another column)
(bunch of minor tweaks around currentYear and whether awards are open)
Line 33: Line 33:
 
<script>
 
<script>
 
var t;
 
var t;
var currentYear = 2014;
+
var currentYear = 2015;
 +
var resultsAreOpen = false;
  
 
//Helper function
 
//Helper function
Line 62: Line 63:
 
'<p>'+
 
'<p>'+
 
'View this team\'s &nbsp;&nbsp;' +
 
'View this team\'s &nbsp;&nbsp;' +
'<a target="_blank" href="https://2015.igem.org/Team:' + data.team_name + '">Wiki</a>&nbsp;&nbsp;|&nbsp;&nbsp;' +
+
'<a target="_blank" href="http://' + currentYear + '.igem.org/Team:' + data.team_name + '">Wiki</a>&nbsp;&nbsp;|&nbsp;&nbsp;' +
 
'<a target="_blank" title="Not yet available" style="color: gray; cursor: pointer;">Poster</a>&nbsp;&nbsp;|&nbsp;&nbsp;' +
 
'<a target="_blank" title="Not yet available" style="color: gray; cursor: pointer;">Poster</a>&nbsp;&nbsp;|&nbsp;&nbsp;' +
 
'<a target="_blank" title="Not yet available" style="color: gray; cursor: pointer;">Presentation Slides</a>&nbsp;&nbsp;|&nbsp;&nbsp;' +
 
'<a target="_blank" title="Not yet available" style="color: gray; cursor: pointer;">Presentation Slides</a>&nbsp;&nbsp;|&nbsp;&nbsp;' +
Line 102: Line 103:
  
 
jQuery(document).ready(function() {
 
jQuery(document).ready(function() {
$("#title-year").html(currentYear);
+
//$("#title-year").html(currentYear);
 
// $("#table_team tbody").empty().append("<tr><td colspan='3'>Loading...</td></tr>");
 
// $("#table_team tbody").empty().append("<tr><td colspan='3'>Loading...</td></tr>");
 
showInTable("Loading...");
 
showInTable("Loading...");
Line 134: Line 135:
 
//jQuery.when(teamsRequest, awardsRequest).done(function(teamsReqResult, awardsReqResult) {
 
//jQuery.when(teamsRequest, awardsRequest).done(function(teamsReqResult, awardsReqResult) {
 
awardsRequest.done(function(data, textStatus, jqxhr) {
 
awardsRequest.done(function(data, textStatus, jqxhr) {
 +
//if the awards data isn't in yet, just show a message and quit
 +
if (data.length == 0 || resultsAreOpen == false) {
 +
showInTable(currentYear + " results will be available after the Awards Ceremony. Please be patient!");
 +
return;
 +
}
 
showInTable();
 
showInTable();
 
// var teamsData = teamsReqResult[0];
 
// var teamsData = teamsReqResult[0];
Line 288: Line 294:
 
<!-- start of content ---------------------------------------->  
 
<!-- start of content ---------------------------------------->  
  
 +
<p>Congratulations to all participants in the 2015 International Genetically Engineered Machine competition! Your hard work and achievements are truly worthy of celebration!</p>
  
<h2>Comprehensive Results from iGEM <span id="title-year"></span></h2>
+
<!-- <h2>Comprehensive Results from iGEM <span id="title-year"></span></h2> -->
  
 
<!-- <p>View: <input type="button" id="view-all-teams" value="All Teams"> <input type="button" id="view-award-winners" value="Award Winners"> | [Africa] [Asia] [Europe] [Latin America][other?]</p> -->
 
<!-- <p>View: <input type="button" id="view-all-teams" value="All Teams"> <input type="button" id="view-award-winners" value="Award Winners"> | [Africa] [Asia] [Europe] [Latin America][other?]</p> -->
  
<h4>View:</h4>
+
<h5>View:</h5>
 
<ul style="list-style: none;">
 
<ul style="list-style: none;">
 
<li>
 
<li>
Line 308: Line 315:
 
</li>
 
</li>
 
</ul>
 
</ul>
 +
<br /><br />
  
  

Revision as of 03:48, 28 September 2015

Congratulations to all participants in the 2015 International Genetically Engineered Machine competition! Your hard work and achievements are truly worthy of celebration!

View:
  •    
  •                    


Team Medal Award
Please enable JavaScript in your browser to view results.