if (data.timer == '0:5' && data.check = = true) {
if (sound == 'on') {
$('#timer-tick-last')[0].play();
}
}
if (_$('timer')) {
$('#main_timer1').text(minute);
$('#main_timer2').text(second);
if (sound == 'on') {
$('#timer-tick')[0].play();
}
}
Find more questions by tags JavaScript