mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 17:27:32 +08:00
added sound on click 5 (typewriter)
This commit is contained in:
parent
164ea185d4
commit
ac23609ab2
15 changed files with 62 additions and 1 deletions
|
|
@ -951,6 +951,15 @@ let commandsSoundOnClick = {
|
|||
Sound.playClick(Config.playSoundOnClick);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "setSoundOnClick5",
|
||||
display: "5",
|
||||
configValue: "5",
|
||||
exec: () => {
|
||||
UpdateConfig.setPlaySoundOnClick("5");
|
||||
Sound.playClick(Config.playSoundOnClick);
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,50 @@ export function init() {
|
|||
counter: 0,
|
||||
},
|
||||
],
|
||||
5: [
|
||||
{
|
||||
sounds: [
|
||||
new Howl({ src: "../sound/click5/click5_1.wav" }),
|
||||
new Howl({ src: "../sound/click5/click5_11.wav" }),
|
||||
],
|
||||
counter: 0,
|
||||
},
|
||||
{
|
||||
sounds: [
|
||||
new Howl({ src: "../sound/click5/click5_2.wav" }),
|
||||
new Howl({ src: "../sound/click5/click5_22.wav" }),
|
||||
],
|
||||
counter: 0,
|
||||
},
|
||||
{
|
||||
sounds: [
|
||||
new Howl({ src: "../sound/click5/click5_3.wav" }),
|
||||
new Howl({ src: "../sound/click5/click5_33.wav" }),
|
||||
],
|
||||
counter: 0,
|
||||
},
|
||||
{
|
||||
sounds: [
|
||||
new Howl({ src: "../sound/click5/click5_4.wav" }),
|
||||
new Howl({ src: "../sound/click5/click5_44.wav" }),
|
||||
],
|
||||
counter: 0,
|
||||
},
|
||||
{
|
||||
sounds: [
|
||||
new Howl({ src: "../sound/click5/click5_5.wav" }),
|
||||
new Howl({ src: "../sound/click5/click5_55.wav" }),
|
||||
],
|
||||
counter: 0,
|
||||
},
|
||||
{
|
||||
sounds: [
|
||||
new Howl({ src: "../sound/click5/click5_6.wav" }),
|
||||
new Howl({ src: "../sound/click5/click5_66.wav" }),
|
||||
],
|
||||
counter: 0,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -847,7 +847,7 @@
|
|||
autocomplete="off"
|
||||
autocapitalize="off"
|
||||
autocorrect="off"
|
||||
>
|
||||
/>
|
||||
<div id="timerNumber" class="timerMain">
|
||||
<div>60</div>
|
||||
</div>
|
||||
|
|
@ -2511,6 +2511,14 @@
|
|||
>
|
||||
4
|
||||
</div>
|
||||
<div
|
||||
class="button"
|
||||
playSoundOnClick="5"
|
||||
tabindex="0"
|
||||
onclick="this.blur();"
|
||||
>
|
||||
5
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section playSoundOnError">
|
||||
|
|
|
|||
BIN
static/sound/click5/click5_1.wav
Normal file
BIN
static/sound/click5/click5_1.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_11.wav
Normal file
BIN
static/sound/click5/click5_11.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_2.wav
Normal file
BIN
static/sound/click5/click5_2.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_22.wav
Normal file
BIN
static/sound/click5/click5_22.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_3.wav
Normal file
BIN
static/sound/click5/click5_3.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_33.wav
Normal file
BIN
static/sound/click5/click5_33.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_4.wav
Normal file
BIN
static/sound/click5/click5_4.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_44.wav
Normal file
BIN
static/sound/click5/click5_44.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_5.wav
Normal file
BIN
static/sound/click5/click5_5.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_55.wav
Normal file
BIN
static/sound/click5/click5_55.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_6.wav
Normal file
BIN
static/sound/click5/click5_6.wav
Normal file
Binary file not shown.
BIN
static/sound/click5/click5_66.wav
Normal file
BIN
static/sound/click5/click5_66.wav
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue