Git Product home page Git Product logo

nlpslides's Introduction

Basic usage

DZSlides is a one-file HTML template to build slides in HTML5 and CSS3.

template.html is the only file you need. Edit the file, add your content, change the style, and you're done. To see the slides in action, just load the file in your browser.

Features

  • Slides can include any HTML5 content (text, image, video, iframes, โ€ฆ);
  • Slides transitions are animated with CSS3 (sliding by default);
  • Resolution independent (slides are scaled according to the size of the browser. The virtual dimension is 800x600);
  • Fullscreen presentation (HTML5 FullScreen API supported) - press f to go fullscreen;
  • Incremental content;
  • Mobile Friendly (supports touch events).

Shells

The features of DZSlides are intentionally limited to keep the template light and simple to understand. Shells are extensions that bring new features to your slides. Here, you'll find 2 shells:

  • shells/embedder.html to embed a presentation in a web page
  • shells/onstage.html to show your slides with a control panel

To use them, just load the file in your browser, and follow the instructions.

Specifications

When you press the left and right keys, you go forward and go back in your slides. But the slides can also respond to external messages. Messages can be sent through postMessage. So another web page can control the slides.

Protocol

A cursor is a string of this form: 3.5. The first number represent the current slide index. The second number represent the current sub-item index.

Parameters must be escaped.


Messages a DZSlides page can receive:

  • REGISTER register the source of the message as a target to notify for any events;
  • FORWARD move forward in the slides;
  • BACK move back in the slides;
  • START move to the first slide;
  • END move to the last slide;
  • SET_CURSOR cursor jump to the cursor;
  • GET_CURSOR notify the source of the message of the current cursor;
  • TOGGLE_CONTENT toggle the current slide content;
  • GET_NOTES cursor notify the source of the message of the current notes content.

Messages a DZSlides page can send:

  • CURSOR cursor sent to one target as a response to GET_CURSOR, and sent to all the registered target when updated;
  • REGISTERED slides_title slides_count sent to one target as a response to REGISTER;
  • NOTES html_content sent to one target as a response to GET_NOTES.

Hash parameters

  • url&para1=va1

Parameters a DZSlides page can have:

  • autoplay (integer, values : 0/1, default : 1) sets whether multimedia contents (audio, video) should be played automatically.

License

               Copyright 2012 iLanguage Lab

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

nlpslides's People

Contributors

hsablonniere avatar cesine avatar mstalfoort avatar jwendell avatar soundmonster avatar harobed avatar codeincontext avatar

Stargazers

Emmy Cathcart avatar

Watchers

James Cloos avatar Emmy Cathcart avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.