MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 59: | Line 59: | ||
$(this).text('"'+title+'"'); |
$(this).text('"'+title+'"'); |
||
} |
} |
||
}); |
|||
$(".result-table-row").children().each(function() { |
|||
var classList = $(this).attr('class').split(/\s+/); |
|||
if ((classList[0] === "final-result-1" || classList[1] === "semi-result-1") && classList[1] !== "semi-result-") { |
|||
$(this).css("background-color", "gold"); |
|||
} else if ((classList[0] === "final-result-2" || classList[1] === "semi-result-2") && classList[1] !== "semi-result-") { |
|||
$(this).css("background-color", "silver"); |
|||
} else if ((classList[0] === "final-result-3" || classList[1] === "semi-result-3") && classList[1] !== "semi-result-") { |
|||
$(this).css("background-color", "#cc9966"); |
|||
} else if (classList[0] === "final-result-") { |
|||
$(this).css("background-color", "#FFCDBD"); |
|||
} else if (classList[1] === "semi-result-") { |
|||
$(this).css("background-color", "#99FF99"); |
|||
} |
|||
if (classList[0] === "final-result-" && classList[1] === "final-place-points") { |
|||
$(this).html("<small style='color:grey'>NQ</small>"); |
|||
} else if (classList[1] === "semi-result-" && classList[2] === "semi-place-points") { |
|||
$(this).html("<small style='color:darkgreen'>AQ</small>"); |
|||
} |
|||
}); |
}); |
||