Skip to content

A reveal.js 3.x / 4.x plugin to open the help screen by pressing a button.

License

Notifications You must be signed in to change notification settings

McShelby/reveal-helpbutton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelpButton

A reveal.js 3.x / 4.x plugin to open the help screen by pressing a button.

This is handy if someone with no knowledge of reveal.js' keyboard shortcuts wants to view your presentation. The plugin can be configured when to show the button.

Works with all official themes.

Installation

Copy this repository into the plugin folder of your reveal.js presentation, ie plugin/helpbutton.

Add the plugin to the initialization of your presentation, as below.

reveal 4.x

<script src="plugin/helpbutton/helpbutton.js"></script>
// .. 
Reveal.initialize({
	// ...
	plugins: [
		// ..
		HelpButton,
	]
});

reveal 3.x

Reveal.initialize({
	// ...
	dependencies: [
		// ...
		{ src: 'plugin/helpbutton/helpbutton.js', async: true },
	]
});

Usage

After installation the plugin works right out of the box.

Configuration

You can configure some aspects of the plugin by adding the following options to your reveal configuration. Note that all configuration values are optional and will default to the values specified below.

Reveal.initialize({
	// ...

	// Displays a help button in the lower left corner.
	// When pressed it shows the built-in reveal.js help screen.
	// Possible values:
	//   'none'      button will never been shown
	//   'first'     shows button on the very first slide
	//   'intro'     shows button on all slides of the first column of slides
	//   'always'    always shows the button on every slide
	helpButtonDisplay: 'first',
});

API

Javascript

The plugin API is accessible from the global HelpButton object.

// Change a config value at runtime
HelpButton.configure({
	// Takes the same options as for configuration
	helpButtonDisplay: 'none',
});

License

MIT licensed.

Copyright (C) 2020 Sören Weber

About

A reveal.js 3.x / 4.x plugin to open the help screen by pressing a button.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published