Advertisement
f1lam3ntx0

Untitled

Apr 6th, 2024
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.         var ringProgress = this.currentProgress;
  3.         this.interval = setInterval(() => {
  4.             if (this.minutesLeft >= 0 && this.secondsLeft > 0 && this.minutesLeft != null) {
  5.                 this.secondsLeft--;
  6.                 ringProgress++;
  7.                 if (this.timeSelected === 25) {
  8.                     if (ringProgress === 15) {
  9.                         this.currentProgress++;
  10.                         ringProgress = 0;
  11.                     }
  12.                 } else {
  13.                     if (ringProgress === 30) {
  14.                         this.currentProgress++;
  15.                         ringProgress = 0;
  16.                     }
  17.                 }
  18.                 console.log('Time',this.timeSelected,' Progress::> ',this.currentProgress);
Tags: project
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement