0.0.3 • Published 8 years ago

shower-speech-control v0.0.3

Weekly downloads
4
License
-
Repository
github
Last release
8 years ago

Shower speech control plugin for Shower

Install

…
<script src='node_modules/shower-core/shower.min.js'></script>
<!-- Add plugin script -->
<script
src='node_modules/shower-speech-control/shower-speech-control.js'></script>

Then you have 2 ways for run plugin: 1. From slide or other place.

shower.modules.require(['shower'], function (sh) {
    var showerInstance = sh.getInited()[0];
    var plugin = sh.plugins.get('shower-speech-control', showerInstance);
    plugin.start();
    // ...
    // plugin.stop();
});
  1. Autoinit.
// Before shower.js
window.showerOptions = {
    'plugin_shower-speech-control': {
        autoInit: true
    }
};

How to example

<section class="slide" data-speech-bookmark="the end">
    <h2>THE END</h2>
</section>

Now when you say the end Shower open this slide.

Browsers

// todo: now works in chrome.