Update script.js
Browse files
script.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
let showSeconds =
|
2 |
let showAmPm = true;
|
3 |
|
4 |
function showTime() {
|
@@ -40,11 +40,11 @@ function showTime() {
|
|
40 |
|
41 |
function adjustFontSize(element) {
|
42 |
if (showSeconds && showAmPm) {
|
43 |
-
element.style.fontSize = "
|
44 |
} else if (showSeconds || showAmPm) {
|
45 |
-
element.style.fontSize = "
|
46 |
} else {
|
47 |
-
element.style.fontSize = "
|
48 |
}
|
49 |
}
|
50 |
|
@@ -73,4 +73,8 @@ function toggleAmPm() {
|
|
73 |
showAmPm = !showAmPm;
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
76 |
showTime();
|
|
|
1 |
+
let showSeconds = false;
|
2 |
let showAmPm = true;
|
3 |
|
4 |
function showTime() {
|
|
|
40 |
|
41 |
function adjustFontSize(element) {
|
42 |
if (showSeconds && showAmPm) {
|
43 |
+
element.style.fontSize = "120px";
|
44 |
} else if (showSeconds || showAmPm) {
|
45 |
+
element.style.fontSize = "150px";
|
46 |
} else {
|
47 |
+
element.style.fontSize = "180px";
|
48 |
}
|
49 |
}
|
50 |
|
|
|
73 |
showAmPm = !showAmPm;
|
74 |
}
|
75 |
|
76 |
+
function adjustSpacing(value) {
|
77 |
+
document.querySelector('.clock').style.letterSpacing = value + 'px';
|
78 |
+
}
|
79 |
+
|
80 |
showTime();
|