added some funbox descriptions

This commit is contained in:
Jack 2020-08-31 19:02:33 +01:00
parent 0dbbf4200c
commit c3fe948282
2 changed files with 36 additions and 17 deletions

View file

@ -1,62 +1,77 @@
[
{
"name": "nausea",
"type": "style"
"type": "style",
"info": "I think I'm gonna be sick."
},
{
"name": "round_round_baby",
"type": "style"
"type": "style",
"info": "...right round, like a record baby. Right, round round round."
},
{
"name": "simon_says",
"type": "style"
"type": "style",
"info": "Type what simon says."
},
{
"name": "mirror",
"type": "style"
"type": "style",
"info": "Everything is mirrored!"
},
{
"name": "tts",
"type": "script"
"type": "script",
"info": "Listen closely."
},
{
"name": "choo_choo",
"type": "style"
"type": "style",
"info": "All the letters are spinning!"
},
{
"name": "rAnDoMcAsE",
"type": "script"
"type": "script",
"info": "I kInDa LiKe HoW iNeFfIcIeNt QwErTy Is."
},
{
"name": "layoutfluid",
"type": "script"
"type": "script",
"info": "Switch between QWERTY, Dvorak and Colemak after a third of the test."
},
{
"name": "earthquake",
"type": "style"
"type": "style",
"info": "Everybody get down! The words are shaking!"
},
{
"name": "space_balls",
"type": "style"
"type": "style",
"info": "In a galaxy far far away."
},
{
"name": "gibberish",
"type": "script"
"type": "script",
"info": "Anvbuefl dizzs eoos alsb?"
},
{
"name": "58008",
"type": "script"
"type": "script",
"info": "A special mode for accountants."
},
{
"name": "ascii",
"type": "script"
"type": "script",
"info": "Where was the ampersand again?. Only ASCII characters."
},
{
"name": "specials",
"type": "script"
"type": "script",
"info": "!@#$%^&*. Only special characters."
},
{
"name": "plus_one",
"type": "script"
"type": "script",
"info": "React quickly! Only one future word is visible."
}
]

View file

@ -243,7 +243,9 @@ async function fillSettingsPage() {
funboxModes.forEach((funbox) => {
if (funbox.name === "mirror") {
funboxEl.append(
`<div class="funbox button" funbox='${funbox.name}' type="${
`<div class="funbox button" funbox='${funbox.name}' aria-label="${
funbox.info
}" data-balloon-pos="up" data-balloon-length="fit" type="${
funbox.type
}" style="transform:scaleX(-1);">${funbox.name.replace(
/_/g,
@ -252,7 +254,9 @@ async function fillSettingsPage() {
);
} else {
funboxEl.append(
`<div class="funbox button" funbox='${funbox.name}' type="${
`<div class="funbox button" funbox='${funbox.name}' aria-label="${
funbox.info
}" data-balloon-pos="up" data-balloon-length="fit" type="${
funbox.type
}">${funbox.name.replace(/_/g, " ")}</div>`
);