Skip to content

wulab/mithril-slides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mithril-slides

A Keynote-inspired presentation app written with Mithril

screenshots

Features

  • Create slides as a simple JSON file
  • Embed websites, web apps or YouTube videos
  • Present ideas using only a web browser
  • Support mobile or tablet devices
  • A total of 4 themes to choose from

themes

Getting started

  1. Clone mithril-slides repository at the command prompt if you haven't yet:

     $ git clone https://github.com/wulab/mithril-slides.git
    
  2. Change directory to mithril-slides and start a web server:

     $ cd mithril-slides
     $ python -m SimpleHTTPServer 8000       # Python 2
     $ python -m http.server 8000            # Python 3
    
  3. Using a browser, go to http://localhost:8000 and you'll see example slides.

  4. To add or edit slides, make changes to the slides.json file and reload your browser.

Keyboard shortcuts

Shortcuts for navigating slides are listed below.

Action Shortcut
Advance to the next slide Right Arrow, Down Arrow, Space bar or Return
Go to previous slide Left Arrow, Up Arrow or Backspace
Quit presentation mode Esc or Q
Show or hide the pointer C
Change presentation theme T

Offline mode

mithril-slides requires an internet connection to work. If you are to present in a place without one. You can still use mithril-slides by checking out offline branch before starting a web server:

    $ git checkout offline
    $ python -m SimpleHTTPServer 8000       # Python 2
    $ python -m http.server 8000            # Python 3

You also need to change src properties of all image and embed objects in your slides.json file to local files.

Known issues

Some websites can not be embedded because they have secure HTTP headers (either X-Frame-Options or Content-Security-Policy) set in their responses. To remove those headers, you need a browser extension. For Google Chrome, install ModHeader extension and add response headers for above headers with empty values. For Firefox, install Modify Response Headers add-on and add filters for those headers. The following slide can be used to test your setup:

    {
        "embed": {
            "src": "https://github.com/",
            "width": "1024",
            "height": "768",
            "sandbox": "allow-forms allow-same-origin allow-scripts"
        }
    }

Releases

No releases published

Packages

No packages published

Languages