TIMBOVILL commited on
Commit
5f27d46
·
verified ·
1 Parent(s): 7498d10

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +8 -4
script.js CHANGED
@@ -1,4 +1,4 @@
1
- let showSeconds = true;
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 = "160px";
44
  } else if (showSeconds || showAmPm) {
45
- element.style.fontSize = "200px";
46
  } else {
47
- element.style.fontSize = "240px";
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();