mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-01 11:07:02 +08:00
flipping the mirror button instead of calling it rorrim
This commit is contained in:
parent
5cfdf09698
commit
597ebaf061
3 changed files with 17 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
|||
"type": "style"
|
||||
},
|
||||
{
|
||||
"name": "rorrim",
|
||||
"name": "mirror",
|
||||
"type": "style"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -49,11 +49,22 @@ function updateSettingsPage() {
|
|||
let funboxEl = $(".pageSettings .section.funbox .buttons").empty();
|
||||
funboxEl.append(`<div class="funbox button" funbox='none'>none</div>`);
|
||||
funboxList.forEach((funbox) => {
|
||||
funboxEl.append(
|
||||
`<div class="funbox button" funbox='${funbox.name}' type="${
|
||||
funbox.type
|
||||
}">${funbox.name.replace(/_/g, " ")}</div>`
|
||||
);
|
||||
if (funbox.name === "mirror") {
|
||||
funboxEl.append(
|
||||
`<div class="funbox button" funbox='${funbox.name}' type="${
|
||||
funbox.type
|
||||
}" style="transform:scaleX(-1);">${funbox.name.replace(
|
||||
/_/g,
|
||||
" "
|
||||
)}</div>`
|
||||
);
|
||||
} else {
|
||||
funboxEl.append(
|
||||
`<div class="funbox button" funbox='${funbox.name}' type="${
|
||||
funbox.type
|
||||
}">${funbox.name.replace(/_/g, " ")}</div>`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
let fontsEl = $(".pageSettings .section.fontFamily .buttons").empty();
|
||||
|
|
Loading…
Add table
Reference in a new issue