Add: regist minus record for typing exam
This commit is contained in:
@@ -315,16 +315,29 @@ function showNoResultContent() {
|
||||
');
|
||||
}
|
||||
|
||||
function addRecordListItem($date, $time, $name, $subject, $record) {
|
||||
$("#record_table_content").append('\
|
||||
<tr>\
|
||||
<th scope="row" class="text-center">' + $date + '</th>\
|
||||
<td class="text-center">' + $time + '</td>\
|
||||
<td class="text-center">' + $name + '</td>\
|
||||
<td class="text-center">' + $subject + '</td>\
|
||||
<td class="text-right">' + $record + '</td>\
|
||||
</tr>\
|
||||
');
|
||||
function addRecordListItem(date, time, name, subject, record) {
|
||||
if(record >= 0) {
|
||||
$("#record_table_content").append('\
|
||||
<tr>\
|
||||
<th scope="row" class="text-center">' + date + '</th>\
|
||||
<td class="text-center">' + time + '</td>\
|
||||
<td class="text-center">' + name + '</td>\
|
||||
<td class="text-center">' + subject + '</td>\
|
||||
<td class="text-right">' + record + '</td>\
|
||||
</tr>\
|
||||
');
|
||||
} else {
|
||||
var disqualificationRecord = -1 * record;
|
||||
$("#record_table_content").append('\
|
||||
<tr>\
|
||||
<th scope="row" class="text-center">' + date + '</th>\
|
||||
<td class="text-center">' + time + '</td>\
|
||||
<td class="text-center">' + name + '</td>\
|
||||
<td class="text-center">' + subject + '</td>\
|
||||
<td class="text-right text-danger">(실격) ' + disqualificationRecord + '</td>\
|
||||
</tr>\
|
||||
');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user