Skip to content

Commit

Permalink
Merge pull request #39 from CodeforcesContestHelper/dev
Browse files Browse the repository at this point in the history
Adjust line color in "Profile" page
  • Loading branch information
tiger2005 authored Dec 2, 2021
2 parents f32d2fd + c82398a commit 9a63b05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function profileDrawGraph(data){
var chart = {
type: 'line',
animation: Highcharts.svg, // don't animate in IE < IE 10.
zoomType: 'x'
zoomType: 'x',
};
var title = {
text: null
Expand Down Expand Up @@ -602,6 +602,9 @@ function profileDrawGraph(data){
}
var json = {};
json.chart = chart;
if(!DarkMode)
json.colors = ['#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066',
'#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
json.title = title;
json.tooltip = tooltip;
json.xAxis = xAxis;
Expand Down
2 changes: 1 addition & 1 deletion js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ function initStyle(){
if(problemNewWinLoaded){
problemNewWinJQ.find(".ThemeTypeIf").attr("href", DarkMode ? "./css/problem/dark.css" : "./css/problem/default.css");
}
profileDrawGraph(profileInfoDatas[4]);
if(contestRankInfo == undefined || contestRankInfo[contestRankChosen].length == 0) return;
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 9a63b05

Please sign in to comment.