mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-24 23:04:00 +08:00
using no interaction class
for notices that dont open the command line opening blind mode commands
This commit is contained in:
parent
903e58b6f3
commit
2a5754a4c8
2 changed files with 7 additions and 6 deletions
|
@ -390,6 +390,7 @@ const lists = {
|
|||
oppositeShiftMode: OppositeShiftModeCommands[0].subgroup,
|
||||
tags: TagsCommands[0].subgroup,
|
||||
resultSaving: ResultSavingCommands[0].subgroup,
|
||||
blindMode: BlindModeCommands[0].subgroup,
|
||||
};
|
||||
|
||||
export function getList(
|
||||
|
|
|
@ -35,24 +35,24 @@ export async function update(): Promise<void> {
|
|||
|
||||
if (TestState.isRepeated && Config.mode !== "quote") {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="textButton restart" style="color:var(--error-color);"><i class="fas fa-sync-alt"></i>repeated</div>`
|
||||
`<div class="textButton noInteraction" style="color:var(--error-color);"><i class="fas fa-sync-alt"></i>repeated</div>`
|
||||
);
|
||||
}
|
||||
|
||||
if (!TestState.savingEnabled) {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="textButton resultSaving" commands="resultSaving" style="color:var(--error-color);"><i class="fas fa-save"></i>saving disabled</div>`
|
||||
`<div class="textButton" commands="resultSaving" style="color:var(--error-color);"><i class="fas fa-save"></i>saving disabled</div>`
|
||||
);
|
||||
}
|
||||
|
||||
if (TestWords.hasTab) {
|
||||
if (Config.quickRestart === "esc") {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="textButton"><i class="fas fa-long-arrow-alt-right"></i>shift + tab to open commandline</div>`
|
||||
`<div class="textButton noInteraction"><i class="fas fa-long-arrow-alt-right"></i>shift + tab to open commandline</div>`
|
||||
);
|
||||
} else {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="textButton"><i class="fas fa-long-arrow-alt-right"></i>shift + tab to restart</div>`
|
||||
`<div class="textButton noInteraction"><i class="fas fa-long-arrow-alt-right"></i>shift + tab to restart</div>`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ export async function update(): Promise<void> {
|
|||
|
||||
if (Config.mode === "zen") {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="textButton"><i class="fas fa-poll"></i>shift + enter to finish zen </div>`
|
||||
`<div class="textButton noInteraction"><i class="fas fa-poll"></i>shift + enter to finish zen </div>`
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ export async function update(): Promise<void> {
|
|||
|
||||
if (Config.blindMode) {
|
||||
$(".pageTest #testModesNotice").append(
|
||||
`<div class="textButton blind"><i class="fas fa-eye-slash"></i>blind</div>`
|
||||
`<div class="textButton" commands="blindMode"><i class="fas fa-eye-slash"></i>blind</div>`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue