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