Skip to content

Commit b45e55d

Browse files
committed
fix
1 parent 3df0283 commit b45e55d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
- JavaScript
1616

1717
usage:
18-
\
18+
\
1919
<meta charset="utf-8">
2020
<script src="sent.js">
2121
slide 1
22-
\
22+
\
2323
slide 2
24-
\
24+
\
2525
etc
2626
<\/script>
2727

@@ -55,7 +55,7 @@
5555
\
5656

5757
*You can have several paragraphs in one slide
58-
\
58+
\
5959
Use \\<space> for a blank line in a slide
6060

6161
# Use \ to escape \ or # or @
@@ -64,7 +64,7 @@
6464
=> Use backslash to kill behaviour of tags
6565

6666
UTF-8 support:
67-
\
67+
\
6868
😀😁😂😃😄😅😆😇😈😉😊😋😌😍😎😏
6969
😠😡😢😣😥😦😧😨😩😪😫😭😮😯😰😱
7070

@@ -91,7 +91,7 @@
9191
font-style: normal;
9292
font-display: swap;
9393
}
94-
\
94+
\
9595
\@font-face {
9696
font-family: 'Iosevka';
9797
src: url('./fonts/SGr-Iosevka-Regular.ttc') format('truetype');

sent.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var darkMode = false;
2828
var themeCheckbox;
2929
// Add line height variables
30-
var lineHeight = 100; // Default to 100%
30+
var lineHeight = 130; // Default to 130%
3131
var lineHeightSlider;
3232
var lineHeightValue;
3333

@@ -58,7 +58,7 @@
5858
lineHeightValue.textContent = lineHeight + '%';
5959
updateLineHeight();
6060
}
61-
61+
6262
resize(slideView);
6363
};
6464

@@ -156,12 +156,12 @@
156156
// Add line height control
157157
var lineHeightContainer = createElement('div');
158158
lineHeightContainer.id = 'lineHeightContainer';
159-
159+
160160
var lineHeightLabel = createElement('label');
161161
lineHeightLabel.textContent = 'Line height:';
162162
lineHeightLabel.htmlFor = 'lineHeightSlider';
163163
lineHeightContainer.appendChild(lineHeightLabel);
164-
164+
165165
lineHeightSlider = createElement('input');
166166
lineHeightSlider.id = 'lineHeightSlider';
167167
lineHeightSlider.type = 'range';
@@ -170,12 +170,12 @@
170170
lineHeightSlider.value = lineHeight;
171171
lineHeightSlider.step = '5';
172172
lineHeightContainer.appendChild(lineHeightSlider);
173-
173+
174174
lineHeightValue = createElement('span');
175175
lineHeightValue.id = 'lineHeightValue';
176176
lineHeightValue.textContent = lineHeight + '%';
177177
lineHeightContainer.appendChild(lineHeightValue);
178-
178+
179179
footerView.appendChild(lineHeightContainer);
180180

181181
var themeLabel = createElement('label');
@@ -265,7 +265,7 @@
265265
window.onresize = throttle(function (e) { show(slides[curSlideIdx]); });
266266

267267
fontSelect.onchange = applyFont;
268-
268+
269269
// Add line height slider event
270270
lineHeightSlider.oninput = function() {
271271
lineHeight = parseInt(this.value);

0 commit comments

Comments
 (0)