Skip to content

Commit c70f09a

Browse files
committed
cleanup, new readme
1 parent 717ee8d commit c70f09a

File tree

14 files changed

+81
-772
lines changed

14 files changed

+81
-772
lines changed
219 KB
Loading

README.md

Lines changed: 48 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
Additional features:
1+
# sentjs
2+
3+
Simple plaintext presentation tool. Ported from [sent](https://tools.suckless.org/sent/).
4+
5+
## Additional features:
6+
27
- Font selection
38
- Line height slider
49
- Dark mode switch
510

6-
Usage:
11+
## Usage:
712

813
1. Copy the repository
9-
1. grap the example folder
1014
1. double click on the `index.html`
1115
1. edit your presentation text in the built-in editor (press `Escape` to open it)
1216
1. export your presentation via `save` button (save the `presentation.html` nearby the `index.html`) or copy paste your presentation text right into the `index.html`'s script section
1317
1. done! Rename the example folder as you wish, zip it or whatever and give your presentation!
1418

15-
# sentjs
16-
Simple plaintext presentation tool. Ported from [sent](https://tools.suckless.org/sent/).
17-
1819
## Example:
1920

2021
Create an HTML file containing your presentation slides where each slide is separated by a blank line:
22+
2123
```html
22-
<meta charset="utf-8">
23-
<script src="sent.js">
24-
@http://www.nyan.cat/cats/original.gif
25-
this text will not be displayed, since the @ at the start of the first line
26-
makes this paragraph an image slide.
24+
<meta charset='utf-8'>
25+
<script src='sent.js'>
2726
2827
sentjs
2928
@@ -33,65 +32,77 @@ get your point across fast
3332
3433
simple to use
3534
36-
2 slide types
37-
🖹 Text
38-
🌼 Image
39-
40-
built-in editor
41-
⇒press escape
42-
43-
depends on
44-
HTML5
45-
CSS3
46-
☃ JavaScript
35+
depends on:
36+
- HTML5
37+
- CSS3
38+
- JavaScript
4739
4840
usage:
4941
\
5042
<meta charset="utf-8">
51-
<script src="http://unpkg.com/sentjs">
43+
<script src="sent.js">
5244
slide 1
5345
\
5446
slide 2
5547
\
5648
etc
5749
<\/script>
5850
59-
one slide per paragraph
51+
2 slide types
52+
Text
53+
Image (and GIFs)
6054
61-
lines starting with # are ignored
55+
built-in editor
56+
=> press escape
6257
63-
image slide == paragraph containing @URL
58+
> one slide per paragraph*
59+
> lines starting with # are ignored
60+
> image/gif slide: paragraph containing @FILENAME
61+
> empty slide: just use a \\ as a paragraph
6462
65-
empty slide == just use a \\ as a paragraph
63+
# Image from local folder
64+
@PNG_transparency_demonstration_1.png
6665
67-
Use \\<space> for a blank line in a slide
66+
# GIF from local folder
67+
@cat-space.gif
6868
69-
# This is a comment and will not be part of the presentation
69+
# Image from URL
70+
@https://cataas.com/cat
7071
71-
# multiple empty lines between paragraphs are also ignored
72+
# GIF from URL
73+
@https://www.nyan.cat/cats/original.gif
7274
75+
The next slide is empty
7376
77+
# Empty slide is just \
78+
\
7479
80+
*You can have several paragraphs in one slide
81+
\
82+
Use \\<space> for a blank line in a slide
83+
84+
# Use \ to escape \ or # or @
7585
\@this_line_actually_started_with_a_\\.png
7686
\#This line as well
77-
Use backslash to kill behaviour of tags
87+
=> Use backslash to kill behaviour of tags
7888
7989
UTF-8 support:
8090
\
8191
😀😁😂😃😄😅😆😇😈😉😊😋😌😍😎😏
82-
😐😑😒😓😔😕😖😗😘😙😚😛😜😝😞😟
8392
😠😡😢😣😥😦😧😨😩😪😫😭😮😯😰😱
84-
😲😳😴😵😶😷😸😹😺😻😼😽😾😿🙀☠
8593
8694
Thanks to ⇒
8795
▸ Takahashi
8896
suckless.org
97+
▸ Philip Bohun
98+
github.com/dfadev
99+
89100
90-
fini
101+
thanks.
102+
questions?
91103
92-
# must have closing script tag
93104
</script>
94-
```
95105
96-
Then view the file in your browser. Use arrow keys to navigate. F11 for fullscreen. ESC to open editor.
106+
```
97107
108+
Then view the file in your browser. Use arrow keys to navigate. F11 for fullscreen. ESC to open editor.

cat-space.gif

21.6 KB
Loading
-112 KB
Binary file not shown.
-57.3 MB
Binary file not shown.

example/index.html

Lines changed: 0 additions & 78 deletions
This file was deleted.

example/nyan.png

-901 Bytes
Binary file not shown.

example/nyanreversed.png

-965 Bytes
Binary file not shown.

example/pictures/5divX.jpg

-25.5 KB
Binary file not shown.

example/pictures/LaCiudad.jpg

-553 KB
Binary file not shown.

0 commit comments

Comments
 (0)