From eb979e7adacbcf2dc0f0243af9a7246b92c6314e Mon Sep 17 00:00:00 2001 From: dan63047 Date: Sat, 13 Feb 2021 16:48:41 +0300 Subject: [PATCH] no more min-width: 800px; now it's font-size: 20vw --- .vscode/launch.json | 0 README.md | 0 index.html | 6 +++--- main.css | 4 ++-- script.js | 4 +++- 5 files changed, 8 insertions(+), 6 deletions(-) mode change 100755 => 100644 .vscode/launch.json mode change 100755 => 100644 README.md mode change 100755 => 100644 index.html mode change 100755 => 100644 main.css mode change 100755 => 100644 script.js 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