Skip to content

Commit

Permalink
feat: add problem index in untouched cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed May 29, 2023
1 parent 5529f96 commit a2e4a97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}
.untouched {
background-color: #1f1f1f;
color: transparent;
/* color: transparent; */
}

.selected {
Expand Down
1 change: 1 addition & 0 deletions hiho-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Resolver.prototype.calcOperations = function() {
this.rank[sol.user_id].problem = {};
for(var i = 1; i <= this.problem_count; i++) {
this.rank[sol.user_id].problem[i] = {
'problem_index': i - 1,
'old_penalty':0,
'new_penalty':0,
'old_verdict':'NA',
Expand Down
4 changes: 2 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ function vuejs() {
else if(st == 'failed')
return problem.old_submissions;
else
return 'untouched';
// todo
return String.fromCharCode("A".charCodeAt(0) + problem.problem_index);
// TODO:
});

Vue.config.debug = true;
Expand Down

0 comments on commit a2e4a97

Please sign in to comment.