fix sound test page

pull/7384/head
Thibault Duplessis 2020-09-29 18:42:29 +02:00
parent e3c0ea2b09
commit 8d990a1fb6
1 changed files with 3 additions and 2 deletions

View File

@ -41,14 +41,15 @@
lichess.sound.changeSet(set);
lichess.sound.play(name);
}
var soundSets = ["standard", "piano", "nes", "sfx", "futuristic", "robot"];
const soundSets = ["standard", "piano", "nes", "sfx", "futuristic", "robot"],
basics = ['genericNotify', 'move', 'capture', 'explode', 'lowtime', 'victory', 'defeat', 'draw', 'berserk', 'check', 'newChallenge', 'newPM', 'confirmation', 'error'];
/*
for (var i = 0; i <= 10; i++) soundNames['countDown' + i] = 'CountDown' + i;
$.each(soundSets, function(i, soundSet) {
$('#sets').append($('<th>').text(soundSet));
});
*/
for (const name of lichess.sound.basics) {
for (const name of basics) {
var tr = $('<tr>').appendTo($('#sounds'));
$.each(soundSets, function(i, soundSet) {
var id = "soundSet_" + soundSet;