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: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 public
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 server.js
README.md

deck.js remote

This is a remote control plugin for deck.js

Quickstart with Slide-casting Boilerplate Presentation

  1. Clone boilerplate code::

    git clone git://github.com/groovecoder/deckjs-remote.git <presentation_name>
    cd <presentation_name>
    git clone --recursive git://github.com/groovecoder/deck.js.git public/deck
    
  2. Change deck remote to your own repo::

    cd public/deck
    git remote add <presentation_name> git@github.com:username/<presentation_name>.git
    git push -u <presentation_name> master
    
  3. Edit slides in public/deck/index.html

Run locally

npm install
node server.js

http://localhost/deck/

Deploy to nodejitsu

  1. Edit "name" and "subdomain" in package.json

    sed -i 's/"deckjs-remote/"<presentation_name>/g' package.json
    
  2. Edit deckjs-remote server in public/deck/index.html

    sed -i 's/localhost/<presentation_name>.jit.su/g' public/deck/index.html
    
  3. Deploy to nodejitsu

    jitsu deploy
    

http://<presentation_name>.jit.su/deck

See deckjs-remote Usage for instructions for controlling the presentation

Installation

Run the server:

git clone https://github.com/chrisjaure/deckjs-remote.git && cd deckjs-remote
npm install
[NODE_ENV=production] node server.js [80]

Add the assets to your html:

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

If you wish to support older browsers that don't support CORS, you'll need to include this mark-up as well:

<div id="deck-remote">
    <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>
</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.

MIT License

Copyright (c) 2011 Chris Jaure

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

TODO

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