ЙажаСценарий / Говнокод #26878 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
updateTimer() {
            requestAnimationFrame(() => {
                this.timeLeft = this.resendTimeDuration - (Date.now() * 0.001 - this.lastTimeLeft);

                if (this.timeLeft <= 0) {
                    this.resetTimer();
                    return;
                } else {
                    this.lastTimeLeft = this.timeLeft;
                    this.updateTimer();
                }
            });
}

А как сделать таймер обратного отсчета?

Запостил: somebodyoncetoldme somebodyoncetoldme, (Updated )

Комментарии (1) RSS

Добавить комментарий

Где здесь C++, guest?!

    А не использовать ли нам bbcode?


    8