My plugins for Lea Verou's CSSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
c0nsole
js-snippets
README.markdown
license.txt

README.markdown

Some CSSS plugins

JSSnippets

Lets you run JS code from textareas during your talk

For example, do this in a CSSS slide:

<textarea class="js-snippet">
alert("Oh hai!");
</textarea>

And at the end of your slides put e.g. this code:

<script src="plugins/js-snippets.js"></script>
<script>
JSSnippets.applyTo(".js-snippet");
</script>

C0nsole

A brain-dead simple console, sort of useful when you need a nice output for stuff run from JSSnippets.

<textarea class="js-snippet">
c0nsole.write("Oh hai again! Kthxbye!");
</textarea>`

For c0nsole to work, you need to put:

<link rel="stylesheet" src="plugins/c0nsole.css">

in the <head> part of your slides, and:

<script src="plugins/c0nsole.js"></script>

at the bottom of your slides.

DEMO

For a demo of both of these plugins, check out my ECMAScript 5 talk slides.

LICENSE

See license.txt for details.