|
27 | 27 | var darkMode = false; |
28 | 28 | var themeCheckbox; |
29 | 29 | // Add line height variables |
30 | | - var lineHeight = 100; // Default to 100% |
| 30 | + var lineHeight = 130; // Default to 130% |
31 | 31 | var lineHeightSlider; |
32 | 32 | var lineHeightValue; |
33 | 33 |
|
|
58 | 58 | lineHeightValue.textContent = lineHeight + '%'; |
59 | 59 | updateLineHeight(); |
60 | 60 | } |
61 | | - |
| 61 | + |
62 | 62 | resize(slideView); |
63 | 63 | }; |
64 | 64 |
|
|
156 | 156 | // Add line height control |
157 | 157 | var lineHeightContainer = createElement('div'); |
158 | 158 | lineHeightContainer.id = 'lineHeightContainer'; |
159 | | - |
| 159 | + |
160 | 160 | var lineHeightLabel = createElement('label'); |
161 | 161 | lineHeightLabel.textContent = 'Line height:'; |
162 | 162 | lineHeightLabel.htmlFor = 'lineHeightSlider'; |
163 | 163 | lineHeightContainer.appendChild(lineHeightLabel); |
164 | | - |
| 164 | + |
165 | 165 | lineHeightSlider = createElement('input'); |
166 | 166 | lineHeightSlider.id = 'lineHeightSlider'; |
167 | 167 | lineHeightSlider.type = 'range'; |
|
170 | 170 | lineHeightSlider.value = lineHeight; |
171 | 171 | lineHeightSlider.step = '5'; |
172 | 172 | lineHeightContainer.appendChild(lineHeightSlider); |
173 | | - |
| 173 | + |
174 | 174 | lineHeightValue = createElement('span'); |
175 | 175 | lineHeightValue.id = 'lineHeightValue'; |
176 | 176 | lineHeightValue.textContent = lineHeight + '%'; |
177 | 177 | lineHeightContainer.appendChild(lineHeightValue); |
178 | | - |
| 178 | + |
179 | 179 | footerView.appendChild(lineHeightContainer); |
180 | 180 |
|
181 | 181 | var themeLabel = createElement('label'); |
|
265 | 265 | window.onresize = throttle(function (e) { show(slides[curSlideIdx]); }); |
266 | 266 |
|
267 | 267 | fontSelect.onchange = applyFont; |
268 | | - |
| 268 | + |
269 | 269 | // Add line height slider event |
270 | 270 | lineHeightSlider.oninput = function() { |
271 | 271 | lineHeight = parseInt(this.value); |
|
0 commit comments