mirror of
https://github.com/artemkorsakov/project-euler-stats.git
synced 2026-07-22 05:42:55 +00:00
Fix review's comments
This commit is contained in:
parent
9fb4cda7be
commit
6f4cd35bbd
3 changed files with 5 additions and 5 deletions
|
|
@ -64,7 +64,7 @@ function createProgressTable(
|
|||
));
|
||||
|
||||
// Location rating
|
||||
const locationPlace = locationRating.place > 100 ? 'You are not in the Top 100' : locationRating.place.toString();
|
||||
const locationPlace = locationRating.place > 100 ? 'You are not in the top 100' : locationRating.place.toString();
|
||||
const locationPlaceToTop = locationRating.place > 100 ? 0 : 100 - locationRating.place;
|
||||
const locationPercentage = createProgressBar(locationPlaceToTop);
|
||||
const locationLink = document.createElement('a');
|
||||
|
|
@ -77,7 +77,7 @@ function createProgressTable(
|
|||
));
|
||||
|
||||
// Language rating
|
||||
const languagePlace = languageRating.place > 100 ? 'You are not in the Top 100' : languageRating.place.toString();
|
||||
const languagePlace = languageRating.place > 100 ? 'You are not in the top 100' : languageRating.place.toString();
|
||||
const languagePlaceToTop = languageRating.place > 100 ? 0 : 100 - languageRating.place;
|
||||
const languagePercentage = createProgressBar(languagePlaceToTop);
|
||||
const languageLink = document.createElement('a');
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ export function generateRatingTableHTML(url: string, title: string, solved: numb
|
|||
ratingContainer.appendChild(header);
|
||||
|
||||
if (!useShortFormat) {
|
||||
const place = rating.place > 100 ? 'You are not in the Top 100' : rating.place.toString();
|
||||
const place = rating.place > 100 ? 'You are not in the top 100' : rating.place.toString();
|
||||
ratingContainer.appendChild(createSectionHeader(`Current place: ${place}`, 'h4'));
|
||||
ratingContainer.appendChild(createSectionHeader(`Solved problems: ${solved}`, 'h5'));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"id": "project-euler-stats",
|
||||
"name": "Project Euler Stats",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Plugin for getting statistics from ProjectEuler.",
|
||||
"description": "Get statistics from Project Euler.",
|
||||
"author": "Artem Korsakov",
|
||||
"authorUrl": "https://github.com/artemkorsakov",
|
||||
"isDesktopOnly": false
|
||||
|
|
|
|||
Loading…
Reference in a new issue