@@ -113,18 +113,10 @@ function addCompanyProblems(sortMethod: string) {
113113 const scoreCell = row . insertCell ( 2 ) ;
114114 scoreCell . innerText = solution . score . toString ( ) ;
115115 const score = solution . score ;
116- const color = getColorForScore ( score ) ;
116+ const color = 'white' ;
117117 scoreCell . style . color = color ;
118118 scoreCell . style . fontWeight = 'bold' ;
119119 } ) ;
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- }
128120 } ) ;
129121}
130122
@@ -200,18 +192,10 @@ function sortBy(column: string) {
200192 const scoreCell = row . insertCell ( 2 ) ;
201193 scoreCell . innerText = solution . score . toString ( ) ;
202194 const score = solution . score ;
203- const color = getColorForScore ( score ) ;
195+ const color = 'white' ;
204196 scoreCell . style . color = color ;
205197 scoreCell . style . fontWeight = 'bold' ;
206198 } ) ;
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- }
215199}
216200
217201/* Run the script */
0 commit comments