Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ringProgress = this.currentProgress;
- this.interval = setInterval(() => {
- if (this.minutesLeft >= 0 && this.secondsLeft > 0 && this.minutesLeft != null) {
- this.secondsLeft--;
- ringProgress++;
- if (this.timeSelected === 25) {
- if (ringProgress === 15) {
- this.currentProgress++;
- ringProgress = 0;
- }
- } else {
- if (ringProgress === 30) {
- this.currentProgress++;
- ringProgress = 0;
- }
- }
- console.log('Time',this.timeSelected,' Progress::> ',this.currentProgress);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement