Commit 4522a247 authored by okhin's avatar okhin 🚴

Simplify the classes

parent f86ea290
Pipeline #807 passed with stage
in 1 second
......@@ -136,15 +136,16 @@
if (call_state[0].startsWith('Down:')) {
// The call as ended
$('#caller').removeClass('green').removeClass('outline_green').addClass('red');
$('#step1').removeClass('green').removeClass('outline_green').addClass('red');
$('#step2').removeClass('green').removeClass('outline_green').addClass('red');
$('#step3').removeClass('green').removeClass('outline_green').addClass('red');
$('#wait').removeClass('green').removeClass('outline_green').addClass('red');
$('#step4').removeClass('green').removeClass('outline_green').addClass('red');
$('#step5').removeClass('green').removeClass('outline_green').addClass('red');
$('#step6').removeClass('green').removeClass('outline_green').addClass('red');
$('#callee').removeClass('green').removeClass('outline_green').addClass('red');
$('#caller').addClass('red');
$('#step1').addClass('red');
$('#step2').addClass('red');
$('#step3').addClass('red');
$('#wait')..addClass('red');
$('#step4').addClass('red');
$('#step5').addClass('red');
$('#step6').addClass('red');
$('#callee').addClass('red');
clearInterval(interval);
}
console.log(call_state[0]);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment