flipping the mirror button instead of calling it rorrim

This commit is contained in:
Jack 2020-08-01 19:43:47 +01:00
parent 5cfdf09698
commit 597ebaf061
3 changed files with 17 additions and 6 deletions

View file

@ -11,7 +11,7 @@
"type": "style"
},
{
"name": "rorrim",
"name": "mirror",
"type": "style"
},
{

View file

@ -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();