mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
fixed timer appearing when not needed
repalced punctuation icon on the account page
This commit is contained in:
parent
a1c165b407
commit
5a5eb28bbb
4 changed files with 10 additions and 9 deletions
|
@ -1765,7 +1765,7 @@ key {
|
|||
|
||||
.content {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.preloader {
|
||||
|
|
|
@ -1127,8 +1127,8 @@
|
|||
<div class="page pageAccount hidden">
|
||||
<div class="preloader"><i class="fas fa-fw fa-spin fa-circle-notch"></i></div>
|
||||
<div class="content hidden">
|
||||
<div class="button" id="currentConfigFilter">set filters to current settings</div>
|
||||
<div class="group filterButtons">
|
||||
<div class="button" id="currentConfigFilter" style="grid-column:1/3;">set filters to current settings</div>
|
||||
<div class="buttonsAndTitle">
|
||||
<div class="title">filters</div>
|
||||
<div class="buttons globalFilters">
|
||||
|
|
|
@ -682,7 +682,7 @@ function loadMoreLines() {
|
|||
}
|
||||
|
||||
if (result.punctuation) {
|
||||
icons += `<span aria-label="punctuation" data-balloon-pos="up"><i class="fas fa-fw fa-quote-right"></i></span>`;
|
||||
icons += `<span aria-label="punctuation" data-balloon-pos="up" style="font-weight:900">!?</span>`;
|
||||
}
|
||||
|
||||
if (result.blindMode) {
|
||||
|
|
|
@ -624,7 +624,7 @@ function highlightBadWord(index, showError) {
|
|||
}
|
||||
|
||||
function showTimer() {
|
||||
if (!config.showTimerBar) return;
|
||||
let op = config.showTimerBar ? config.timerOpacity : 0;
|
||||
if (config.timerStyle === "bar") {
|
||||
// let op = 0.25;
|
||||
// if (
|
||||
|
@ -636,7 +636,7 @@ function showTimer() {
|
|||
// }
|
||||
$("#timerWrapper").stop(true, true).removeClass("hidden").animate(
|
||||
{
|
||||
opacity: config.timerOpacity,
|
||||
opacity: op,
|
||||
},
|
||||
250
|
||||
);
|
||||
|
@ -651,7 +651,7 @@ function showTimer() {
|
|||
// }
|
||||
$("#timerNumber").stop(true, true).removeClass("hidden").animate(
|
||||
{
|
||||
opacity: config.timerOpacity,
|
||||
opacity: op,
|
||||
},
|
||||
250
|
||||
);
|
||||
|
@ -725,6 +725,7 @@ function restartTimer() {
|
|||
}
|
||||
|
||||
function updateTimer() {
|
||||
if (!config.showTimerBar) return;
|
||||
if (config.mode === "time") {
|
||||
if (config.timerStyle === "bar") {
|
||||
let percent = 100 - ((time + 1) / config.time) * 100;
|
||||
|
@ -1811,9 +1812,9 @@ function showLiveWpm() {
|
|||
if (!config.showLiveWpm) return;
|
||||
if (!testActive) return;
|
||||
$("#liveWpm").css("opacity", config.timerOpacity);
|
||||
if (config.timerStyle === "text") {
|
||||
$("#timerNumber").css("opacity", config.timerOpacity);
|
||||
}
|
||||
// if (config.timerStyle === "text") {
|
||||
// $("#timerNumber").css("opacity", config.timerOpacity);
|
||||
// }
|
||||
}
|
||||
|
||||
function hideLiveWpm() {
|
||||
|
|
Loading…
Reference in a new issue