mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
added out of focus warning button to the settings page
This commit is contained in:
parent
40aee58a75
commit
6eb73a5811
2 changed files with 18 additions and 0 deletions
|
@ -2364,6 +2364,20 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section showOutOfFocusWarning">
|
||||
<h1>out of focus warning</h1>
|
||||
<div class="text">
|
||||
Shows an out of focus reminder after 1 second of being 'out of focus' (not being able to type).
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<div class="button off" tabindex="0" onclick="this.blur();">
|
||||
hide
|
||||
</div>
|
||||
<div class="button on" tabindex="0" onclick="this.blur();">
|
||||
show
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sectionSpacer"></div>
|
||||
</div>
|
||||
<div class="sectionGroupTitle" group="dangerZone">
|
||||
|
|
|
@ -154,6 +154,10 @@ settingsGroups.swapEscAndTab = new SettingsGroup(
|
|||
"swapEscAndTab",
|
||||
setSwapEscAndTab
|
||||
);
|
||||
settingsGroups.showOutOfFocusWarning = new SettingsGroup(
|
||||
"showOutOfFocusWarning",
|
||||
setShowOutOfFocusWarning
|
||||
);
|
||||
settingsGroups.colorfulMode = new SettingsGroup(
|
||||
"colorfulMode",
|
||||
setColorfulMode
|
||||
|
|
Loading…
Reference in a new issue