diff --git a/.vscode/launch.json b/.vscode/launch.json old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/index.html b/index.html old mode 100755 new mode 100644 index c3b9451..138fd53 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ -
+
diff --git a/main.css b/main.css old mode 100755 new mode 100644 index d000e19..5fcd295 --- a/main.css +++ b/main.css @@ -8,7 +8,7 @@ body { color: #fff; font-weight: 100; font-size: 40px; - margin: 40px 0px 20px; + margin: 0; } .countdown { @@ -28,7 +28,7 @@ body { color: #fff; } .countdown-inner { - font-size: 6em; + font-size: 20vw; } .captions{ display: flex; diff --git a/script.js b/script.js old mode 100755 new mode 100644 index 5a3c9a8..a804b91 --- a/script.js +++ b/script.js @@ -101,6 +101,7 @@ function initializeClock(endtime) { else if (t.total > 0) { num1.innerHTML = ('0' + t.seconds).slice(-2); num2.innerHTML = ('0' + t.seconds1_100).slice(-2); + dots.innerHTML = "  .  " textnum1.innerHTML = ''; textnum2.innerHTML = ''; document.title = t.seconds + " сек. до НГ"; @@ -113,7 +114,7 @@ function initializeClock(endtime) { var congrats = document.getElementById("congrats"); congrats.innerHTML = "C новым годом!!!\nСчасливого " + future_year + " года!"; }; - if (t.seconds % 2) { + if ((t.seconds % 2) || (t.total <= 60000)) { dots.style.color = "#fff"; } else { @@ -136,5 +137,6 @@ var d_for_setting = new Date(), future_year; } document.getElementById("future_year").innerHTML = future_year; initializeClock("Jan 01 " + future_year + " 00:00:00"); +// initializeClock("Feb 12 2021 22:03:00"); DateTime(); setInterval(DateTime, 1000 / 60); \ No newline at end of file