Skip to content

Commit

Permalink
Color bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tiger2005 committed Dec 2, 2021
1 parent cccd3c6 commit 66cbd3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ body{
outline: none;
}
.loadingInterface{
background: rgba(200, 200, 200, 0.95);
background: rgba(200, 200, 200, 0.85);
color: black;
}
.submissionDisplayer > div:first-child > div:first-child{
Expand Down
7 changes: 4 additions & 3 deletions js/profile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var ratingRanges = [
{
color: '#CCCCCC',
color: '#BBBBBB',
from: -9999,
to: 1200
},
Expand Down Expand Up @@ -629,7 +629,8 @@ function infoLoadUsername(un){
delete(profileInfoDatas[1]);
delete(profileInfoDatas[2]);
delete(profileInfoDatas[3]);
profileInfoDatas = [{}, [], [], {}];
delete(profileInfoDatas[4]);
profileInfoDatas = [{}, [], [], {}, []];
profileInfoLoaded = [false, false, false]
$(".infoShowProblems").addClass("disabled");
$(".infoShowSubmissions").addClass("disabled");
Expand Down Expand Up @@ -694,7 +695,7 @@ function infoLoadUsername(un){
for(var i=0; i<d.length; i++)
D.push([d[i].ratingUpdateTimeSeconds * 1000, d[i].newRating]),
profileInfoDatas[3][d[i].ratingUpdateTimeSeconds * 1000] = i;
profileDrawGraph(D);
profileDrawGraph(profileInfoDatas[4] = D);
});
infoLoadData(2, generateAuthorizeURL(settings.codeforcesApiUrl + '/user.status', {handle: un}), function(d){
profileInfoDatas[2] = d;
Expand Down
1 change: 1 addition & 0 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ function initStyle(){
if(contestCalculatingRank[contestRankChosen])
$("#singleRankGraphContainer").html(`<div class="loadingInterface"><div><i class="fas fa-calculator"></i><span class="popTip" info="tipCalculatingRankGraph">${languageOption.tip.tipCalculatingRankGraph}</span></div></div>`);
else generateRankGraph(contestRankInfo[contestRankChosen]);
profileDrawGraph(profileInfoDatas[4]);
}
function reloadSettings(){
settings = JSON.parse(localStorage.getItem("CCH_Settings"));
Expand Down

0 comments on commit 66cbd3f

Please sign in to comment.