From 597ebaf0614d9bce9a876c6c9dd9af5a9be18e2d Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 1 Aug 2020 19:43:47 +0100 Subject: [PATCH] flipping the mirror button instead of calling it rorrim --- public/funbox/list.json | 2 +- public/funbox/{rorrim.css => mirror.css} | 0 public/js/settings.js | 21 ++++++++++++++++----- 3 files changed, 17 insertions(+), 6 deletions(-) rename public/funbox/{rorrim.css => mirror.css} (100%) diff --git a/public/funbox/list.json b/public/funbox/list.json index 3778c5507..839d45892 100644 --- a/public/funbox/list.json +++ b/public/funbox/list.json @@ -11,7 +11,7 @@ "type": "style" }, { - "name": "rorrim", + "name": "mirror", "type": "style" }, { diff --git a/public/funbox/rorrim.css b/public/funbox/mirror.css similarity index 100% rename from public/funbox/rorrim.css rename to public/funbox/mirror.css diff --git a/public/js/settings.js b/public/js/settings.js index 1133aa93d..888b77271 100644 --- a/public/js/settings.js +++ b/public/js/settings.js @@ -49,11 +49,22 @@ function updateSettingsPage() { let funboxEl = $(".pageSettings .section.funbox .buttons").empty(); funboxEl.append(`
none
`); funboxList.forEach((funbox) => { - funboxEl.append( - `
${funbox.name.replace(/_/g, " ")}
` - ); + if (funbox.name === "mirror") { + funboxEl.append( + `
${funbox.name.replace( + /_/g, + " " + )}
` + ); + } else { + funboxEl.append( + `
${funbox.name.replace(/_/g, " ")}
` + ); + } }); let fontsEl = $(".pageSettings .section.fontFamily .buttons").empty();