Giter Club home page Giter Club logo

multifiles-revealjs-presentation's Introduction

Multi-files RevealJS presentation

Principles

RevealJS is a really great HTML5 presentation tool. One missing feature is to allow to split the presentation - generally in one .html file - into several files.

Thanks to the usage of HTML Import feature, we allow to split the

Make your own presentation

Simply fork this repository and start writing your presentation.

When adding one file, refer it in the <head> of your index.html like this:

<link rel="import" href="./partials/01-intro.html" role="slide">

The role="slide" is important, so the JavaScript plugin will be able to find the list of files to load. Note that the files loaded will be loaded in the order of their definition in the index.html.

The import feature is not always supported natively by browsers (see here), so the webcomponentsjs polyfill is added in the index.html.

In the HTML file, the script will look for all <section class="partial"> and then will add their content in the <div id="slides"> node of the root index.html.

Live reload

I've added a live server dependency in order to automatically reload the browser when you change files of your presentation.

You need npm to install the required dependencies, then run npm install. Finally, run npm start and your presentation will be visible on http://localhost:8080.

Special Thanks

The original idea comes from my old colleague Sylvain Cau. Thank you mate!

multifiles-revealjs-presentation's People

Contributors

linsolas avatar

Watchers

 avatar  avatar  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.