🍵🐫 Checkpoint

./script.js:18108127/473
./style.css:18108127/47
This commit is contained in:
Glitch (hello-webpage) 2020-07-29 22:53:43 +00:00
parent 53b55c4e91
commit 97815634e4
2 changed files with 8 additions and 3 deletions

View file

@ -154,10 +154,11 @@ function scoreBarController(barId) {
setUserTime(username, seconds) {
if (this.hasUser(username)) {
let userContainer = this.getUser(username);
userContainer.lastElementChild.innerHTML = `<i class="fas fa-stopwatch"></i> ${Math.floor(seconds)} seconds`;
userContainer.appendChild.innerHTML = `<i class="fas fa-mouse-pointer"></i> ${tries} tries`;
userContainer.lastElementChild.innerHTML = `<i class="fas fa-stopwatch"></i> ${Math.floor(seconds)} seconds`
+ ` <i class="fas fa-mouse-pointer"></i> ${tries} tries`;
}
}
};
}

View file

@ -235,10 +235,14 @@ strong {
.fa-stopwatch, .fa-mouse-pointer {
font-size: 18px;
margin-right: 3px;
margin-right: 2px;
color: hsla(208, 80%, 50%, 0.3);
}
.fa-mouse-pointer {
margin-left: 6px;
}
@media (max-height: 865px) {
#user-scores {
max-height: 73%;