Skip to content

Commit

Permalink
Remove days in NY countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm committed Dec 31, 2023
1 parent 7741003 commit a657842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3 style="margin-top: 0px">Добро пожаловать!</h3>
<span style="font-size: 9pt">
<b>ДО НОВОГО ГОДА</b>
</span>
<p class="medium-font" style="font-size: 16pt; margin-top: 4px; margin-bottom: 0px; text-align: center"><span id="days_count" class="accent-color">??</span>:<span id="hours_count" class="accent-color">??</span>:<span id="minutes_count" class="accent-color">??</span>:<span id="seconds_count" class="accent-color">??</span>
<p class="medium-font" style="font-size: 16pt; margin-top: 4px; margin-bottom: 0px; text-align: center"><span id="hours_count" class="accent-color">??</span>:<span id="minutes_count" class="accent-color">??</span>:<span id="seconds_count" class="accent-color">??</span>
</div>
</div>
</div>
Expand Down
6 changes: 2 additions & 4 deletions default/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ function newYearCountdownTimer() {
var timezone = '';
if((today.getTimezoneOffset() / 60) < 0) {
timezone = '+' + (-today.getTimezoneOffset() / 60)
} else {
} else {
timezone = '-' + (today.getTimezoneOffset() / 60)
};
document.getElementById('days_count').innerHTML = countdown;
document.getElementById('hours_count').innerHTML = countdown_h;
document.getElementById('minutes_count').innerHTML = countdown_min;
document.getElementById('seconds_count').innerHTML = countdown_sec;
} else {
document.getElementById('days_count').innerHTML = "0";
document.getElementById('hours_count').innerHTML = "00";
document.getElementById('hours_count').innerHTML = "00";
document.getElementById('minutes_count').innerHTML = "00";
document.getElementById('seconds_count').innerHTML = "00";
}
Expand Down

0 comments on commit a657842

Please sign in to comment.