/sentjs

Simple plaintext presentation tool

Primary LanguageJavaScriptMIT LicenseMIT

sentjs

Simple plaintext presentation tool. Ported from sent.

Example:

Create an HTML file containing your presentation slides where each slide is separated by a blank line:

<meta charset="utf-8">
<script src="https://unpkg.com/sentjs">
@http://www.nyan.cat/cats/original.gif
this text will not be displayed, since the @ at the start of the first line
makes this paragraph an image slide.

sentjs

Why?

get your point across fast

simple to use

2 slide types
๐Ÿ–น Text
๐ŸŒผ Image

built-in editor
โ‡’press escape

depends on
โ™ฝ HTML5
โ˜ข CSS3
โ˜ƒ JavaScript

usage:
\ 
<meta charset="utf-8">
<script src="http://unpkg.com/sentjs">
slide 1
\ 
slide 2
\ 
etc
<\/script>

one slide per paragraph

lines starting with # are ignored

image slide == paragraph containing @URL

empty slide == just use a \\ as a paragraph

Use \\<space> for a blank line in a slide

# This is a comment and will not be part of the presentation

# multiple empty lines between paragraphs are also ignored



\@this_line_actually_started_with_a_\\.png
\#This line as well
โ‡’ Use backslash to kill behaviour of tags

UTF-8 support:
\ 
๐Ÿ˜€๐Ÿ˜๐Ÿ˜‚๐Ÿ˜ƒ๐Ÿ˜„๐Ÿ˜…๐Ÿ˜†๐Ÿ˜‡๐Ÿ˜ˆ๐Ÿ˜‰๐Ÿ˜Š๐Ÿ˜‹๐Ÿ˜Œ๐Ÿ˜๐Ÿ˜Ž๐Ÿ˜
๐Ÿ˜๐Ÿ˜‘๐Ÿ˜’๐Ÿ˜“๐Ÿ˜”๐Ÿ˜•๐Ÿ˜–๐Ÿ˜—๐Ÿ˜˜๐Ÿ˜™๐Ÿ˜š๐Ÿ˜›๐Ÿ˜œ๐Ÿ˜๐Ÿ˜ž๐Ÿ˜Ÿ
๐Ÿ˜ ๐Ÿ˜ก๐Ÿ˜ข๐Ÿ˜ฃ๐Ÿ˜ฅ๐Ÿ˜ฆ๐Ÿ˜ง๐Ÿ˜จ๐Ÿ˜ฉ๐Ÿ˜ช๐Ÿ˜ซ๐Ÿ˜ญ๐Ÿ˜ฎ๐Ÿ˜ฏ๐Ÿ˜ฐ๐Ÿ˜ฑ
๐Ÿ˜ฒ๐Ÿ˜ณ๐Ÿ˜ด๐Ÿ˜ต๐Ÿ˜ถ๐Ÿ˜ท๐Ÿ˜ธ๐Ÿ˜น๐Ÿ˜บ๐Ÿ˜ป๐Ÿ˜ผ๐Ÿ˜ฝ๐Ÿ˜พ๐Ÿ˜ฟ๐Ÿ™€โ˜ 

Thanks to โ‡’
     โ–ธ Takahashi
     โ–ธ suckless.org

fini

# must have closing script tag
</script>

Then view the file in your browser. Use arrow keys to navigate. F11 for fullscreen. ESC to open editor.