cloud_bbb/ts/waiting.ts

22 lines
458 B
TypeScript
Raw Normal View History

import './waiting.scss';
$(() => {
let countdown = 30;
const interval = window.setInterval(() => {
2020-09-08 17:22:12 +02:00
$('#bbb-waiting-text').text(
t(
'bbb',
'This room is not open yet. We will try it again in %n second. Please wait.',
'This room is not open yet. We will try it again in %n seconds. Please wait.' as any,
--countdown
)
);
if (countdown === 0) {
window.location.reload();
window.clearInterval(interval);
}
}, 1000);
});