mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 08:47:36 +08:00
made sure you can disable funbox modes
This commit is contained in:
parent
69353bd306
commit
472a90123f
1 changed files with 5 additions and 0 deletions
|
|
@ -216,6 +216,10 @@ function copyResultToClipboard() {
|
|||
}
|
||||
|
||||
function activateFunbox(funbox, mode) {
|
||||
if (funbox === "none") {
|
||||
$("#funBoxTheme").attr("href", ``);
|
||||
activeFunBox = "none";
|
||||
}
|
||||
if (mode === "style") {
|
||||
if (funbox == undefined) {
|
||||
$("#funBoxTheme").attr("href", ``);
|
||||
|
|
@ -249,6 +253,7 @@ function toggleScriptFunbox(...params) {
|
|||
msg.volume = 1; // From 0 to 1
|
||||
msg.rate = 1; // From 0.1 to 10
|
||||
msg.text = params[0];
|
||||
msg.lang = "en";
|
||||
speechSynthesis.speak(msg);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue