Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Remote control for deck.js

branch: unit-test

This branch is 2 commits ahead and 2 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

deck.js remote

This is a remote control plugin for deck.js

Installation

You can use the service running at http://deckjs-remote.no.de

<link rel="stylesheet" type="text/css" href="http://deckjs-remote.no.de/deckjs-remote.css" />
<script src="http://deckjs-remote.no.de/deckjs-remote.js"></script>
<script>
    $(function(){
        $.deck('.slide');
        $.deck('remote', {
            //server: 'http://deckjs-remote.no.de',
            //port: 80,
            //key: [md5 hash]
        })
    });
</script>

Or host it yourself.

You'll need to include this mark-up as well:

<div class="deck-remote-join-message">
    <p>There is a session available. Would you like to join?</p>
    <p class="deck-remote-links">
        <a href="#" class="deck-remote-ignore-link">Ignore</a>
        |
        <a href="#" class="deck-remote-join-link">Join</a>
    </p>
</div>

<div class="deck-remote-leave-message">
    <p>The session has ended.</p>
    <p class="deck-remote-links">
        <a href="#" class="deck-remote-close-link">Close</a>
    </p>
</div>

<div class="deck-remote-master-message">
    <p>Do you have the key?</p>
    <p class="deck-remote-master-feedback"></p>
    <form class="deck-remote-master-form" action="">
        <p>
            <input class="deck-remote-password" type="password" />
        </p>
        <p class="deck-remote-links">
            <button type="submit">Start Session</button>
        </p>
    </form> 
</div>

Usage

To set up the remote, go to your slide url and add the param master to the url, e.g. http://imakewebthings.github.com/deck.js/?master

You will then be prompted to enter the key. The default key is "master".

Controlling this deck will control all others currently joined to the session.

TODO

  • Refactor UI.
  • Add a way to leave a session.
Something went wrong with that request. Please try again.