@@ -113,18 +113,10 @@ function addCompanyProblems(sortMethod: string) {
113
113
const scoreCell = row . insertCell ( 2 ) ;
114
114
scoreCell . innerText = solution . score . toString ( ) ;
115
115
const score = solution . score ;
116
- const color = getColorForScore ( score ) ;
116
+ const color = 'white' ;
117
117
scoreCell . style . color = color ;
118
118
scoreCell . style . fontWeight = 'bold' ;
119
119
} ) ;
120
-
121
- function getColorForScore ( score : number ) {
122
- const percent = score / 100 ;
123
- const red = Math . floor ( 255 * ( 1 - percent ) ) ;
124
- const green = Math . floor ( 255 * percent ) ;
125
- const blue = 0 ;
126
- return `rgb(${ red } , ${ green } , ${ blue } )` ;
127
- }
128
120
} ) ;
129
121
}
130
122
@@ -200,18 +192,10 @@ function sortBy(column: string) {
200
192
const scoreCell = row . insertCell ( 2 ) ;
201
193
scoreCell . innerText = solution . score . toString ( ) ;
202
194
const score = solution . score ;
203
- const color = getColorForScore ( score ) ;
195
+ const color = 'white' ;
204
196
scoreCell . style . color = color ;
205
197
scoreCell . style . fontWeight = 'bold' ;
206
198
} ) ;
207
-
208
- function getColorForScore ( score : number ) {
209
- const percent = score / 100 ;
210
- const red = Math . floor ( 255 * ( 1 - percent ) ) ;
211
- const green = Math . floor ( 255 * percent ) ;
212
- const blue = 0 ;
213
- return `rgb(${ red } , ${ green } , ${ blue } )` ;
214
- }
215
199
}
216
200
217
201
/* Run the script */
0 commit comments