TIMBOVILL commited on
Commit
22bec27
·
verified ·
1 Parent(s): 09c4e38

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -13
script.js CHANGED
@@ -47,8 +47,9 @@ function adjustFontSize(element) {
47
  } else if (showSeconds || showAmPm) {
48
  element.style.fontSize = "150px";
49
  } else {
50
- element.style.fontSize = "180px
51
  }
 
52
 
53
  function toggleMenu() {
54
  const menu = document.getElementById('menu');
@@ -96,17 +97,6 @@ function adjustSize(value) {
96
  }
97
  }
98
 
99
- function changeBackground(background) {
100
- document.body.style.background = background;
101
- }
102
-
103
- function updateCustomGradient() {
104
- const color1 = document.getElementById('customBgColor1').value;
105
- const color2 = document.getElementById('customBgColor2').value;
106
- const gradient = `linear-gradient(to right, ${color1}, ${color2})`;
107
- changeBackground(gradient);
108
- }
109
-
110
  function resetDefaults() {
111
  showSeconds = false;
112
  showAmPm = true;
@@ -120,7 +110,6 @@ function resetDefaults() {
120
  document.querySelector('.clock').style.fontFamily = 'Stencil';
121
  document.querySelector('.clock').style.letterSpacing = '7px';
122
  document.querySelector('.clock').style.fontSize = '180px';
123
- document.body.style.background = 'black';
124
  showTime();
125
  }
126
 
 
47
  } else if (showSeconds || showAmPm) {
48
  element.style.fontSize = "150px";
49
  } else {
50
+ element.style.fontSize = "180px";
51
  }
52
+ }
53
 
54
  function toggleMenu() {
55
  const menu = document.getElementById('menu');
 
97
  }
98
  }
99
 
 
 
 
 
 
 
 
 
 
 
 
100
  function resetDefaults() {
101
  showSeconds = false;
102
  showAmPm = true;
 
110
  document.querySelector('.clock').style.fontFamily = 'Stencil';
111
  document.querySelector('.clock').style.letterSpacing = '7px';
112
  document.querySelector('.clock').style.fontSize = '180px';
 
113
  showTime();
114
  }
115