Skip to content

Commit

Permalink
Убрал отображение нулевого времени на сохр. тайм.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdsc authored Apr 18, 2020
1 parent cd0f53a commit 533c5fa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions jsTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,11 +920,14 @@ function drawSavedTimer(timer)
tc.appendChild(tt);
tt.id = 'timer-' + timer.id + "-t";

var tend = document.createElement("span");
tc.appendChild(tend);
tend.id = 'timer-' + timer.id + "-end";
tend.textContent = formatDate(new Date(timer.totalSeconds*1000));
//tend.style.marginLeft = '10%';
if (timer.totalSeconds > 0)
{
var tend = document.createElement("span");
tc.appendChild(tend);
tend.id = 'timer-' + timer.id + "-end";
tend.textContent = formatDate(new Date(timer.totalSeconds*1000));
//tend.style.marginLeft = '10%';
}

var tdel = document.createElement("div");
div.appendChild(tdel);
Expand Down

0 comments on commit 533c5fa

Please sign in to comment.