Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
initial build for submission
Browse files Browse the repository at this point in the history
  • Loading branch information
mawburn committed Jul 31, 2021
1 parent 0b3b300 commit 045bf01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "ping-logger",
"version": "1.0.1",
"version": "1.0.0",
"description": "Display average ping in user list.",
"scripts": {
"clean": "rimraf dist package.zip",
Expand Down Expand Up @@ -34,4 +34,4 @@
"yargs": "^15.3.1"
},
"dependencies": {}
}
}
2 changes: 1 addition & 1 deletion src/module/PlayerList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class PlayerList {
}
}

elm.innerText = `${player.ping}ms`
elm.innerHTML = `${player.ping}<em>ms</em>`
elm.className = 'pingSpan'

const level = player.ping < 100 ? 'Good' : player.ping < 250 ? 'Low' : 'Bad'
Expand Down
5 changes: 5 additions & 0 deletions src/ping-logger.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ span.pingSpan {
padding-right: 0.5rem;
background-color: rgb(0, 0, 0, 0.4);
border-radius: 4px;
font-size: 0.75rem;
}

span.pingSpan em {
font-size: 0.5rem;
}

span.pingGood {
Expand Down

0 comments on commit 045bf01

Please sign in to comment.