mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-14 07:54:41 +08:00
Add setting frontend
This commit is contained in:
parent
55150031ff
commit
d2f07245a2
2 changed files with 48 additions and 1 deletions
|
@ -287,6 +287,10 @@ async function initGroups() {
|
|||
// "customLayoutfluid",
|
||||
// UpdateConfig.setCustomLayoutfluid
|
||||
// );
|
||||
groups.monkeyPowerLevel = new SettingsGroup(
|
||||
"monkeyPowerLevel",
|
||||
UpdateConfig.setMonkeyPowerLevel
|
||||
);
|
||||
}
|
||||
|
||||
async function fillSettingsPage() {
|
||||
|
|
|
@ -2706,7 +2706,9 @@
|
|||
<div class="section repeatedPace" section="">
|
||||
<h1>repeated pace</h1>
|
||||
<div class="text">
|
||||
When repeating a test, a pace caret will automatically be enabled for one test with the speed of your previous test. It does not override the pace caret if it's already enabled.
|
||||
When repeating a test, a pace caret will automatically be
|
||||
enabled for one test with the speed of your previous test. It
|
||||
does not override the pace caret if it's already enabled.
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<div class="button off" tabindex="0" onclick="this.blur();">
|
||||
|
@ -3208,6 +3210,47 @@
|
|||
<h1>keymap layout</h1>
|
||||
<div class="buttons"></div>
|
||||
</div>
|
||||
<div class="section monkeyPowerLevel hidden" section="">
|
||||
<h1>monkey power level</h1>
|
||||
<div class="text">
|
||||
Is the power to much? You can tone it down.
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<div
|
||||
class="button"
|
||||
monkeyPowerLevel="0"
|
||||
tabindex="0"
|
||||
onclick="this.blur();"
|
||||
>
|
||||
off
|
||||
</div>
|
||||
<div
|
||||
class="button"
|
||||
monkeyPowerLevel="1"
|
||||
tabindex="0"
|
||||
onclick="this.blur();"
|
||||
>
|
||||
lvl 1
|
||||
</div>
|
||||
<div
|
||||
class="button"
|
||||
monkeyPowerLevel="2"
|
||||
tabindex="0"
|
||||
onclick="this.blur();"
|
||||
>
|
||||
lvl 2
|
||||
</div>
|
||||
<div
|
||||
class="button"
|
||||
style="white-space: nowrap"
|
||||
monkeyPowerLevel="9001"
|
||||
tabindex="0"
|
||||
onclick="this.blur();"
|
||||
>
|
||||
lvl 9001
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sectionSpacer"></div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue