Skip to content

Commit

Permalink
feat(funbox): add backwards funbox
Browse files Browse the repository at this point in the history
closes #4661
  • Loading branch information
Miodec committed Sep 26, 2023
1 parent 12e83c5 commit 89e8fef
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/src/constants/funbox-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,13 @@ const FunboxList: MonkeyTypes.FunboxMetadata[] = [
properties: ["noLigatures"],
name: "crt",
},
{
name: "backwards",
properties: ["noLigatures", "conflictsWithSymmetricChars"],
frontendFunctions: ["applyCSS"],
canGetPb: true,
difficultyLevel: 3,
},
];

export default FunboxList;
6 changes: 6 additions & 0 deletions frontend/src/ts/test/funbox/funbox-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ const list: MonkeyTypes.FunboxMetadata[] = [
info: "Go back to the 1980s",
properties: ["noLigatures"],
},
{
name: "backwards",
info: "...sdrawkcab epyt ot yrt woN",
properties: ["noLigatures", "conflictsWithSymmetricChars"],
hasCSS: true,
},
];

export function getAll(): MonkeyTypes.FunboxMetadata[] {
Expand Down
5 changes: 5 additions & 0 deletions frontend/static/funbox/_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,10 @@
"name": "crt",
"info": "Go back to the 1980s",
"canGetPb": true
},
{
"name": "backwards",
"info": "...sdrawkcab epyt ot yrt woN",
"canGetPb": true
}
]
7 changes: 7 additions & 0 deletions frontend/static/funbox/backwards.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#words {
direction: rtl;
}

#words.rightToLeftTest {
direction: rtl;
}

0 comments on commit 89e8fef

Please sign in to comment.