vault backup: 2024-12-12 21:37:21

This commit is contained in:
2024-12-12 21:37:21 +01:00
parent a9676272f2
commit 5bfb39a2cd
295 changed files with 246402 additions and 0 deletions

View File

@ -0,0 +1,9 @@
## Contributing
### Bug Reports
When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested.
### Pull Requests
- Should follow the coding style of the file you work in
- Should be made towards the **dev branch**
- Should be submitted from a feature/topic branch (not your master)

View File

@ -0,0 +1,19 @@
Copyright (C) 2020 Greg Denehy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@ -0,0 +1,368 @@
# reveal.js-menu
A slideout menu plugin for [Reveal.js](https://github.com/hakimel/reveal.js) to quickly jump to any slide by title. Also optionally change the theme and set the default transition. [Check out the live demo](https://denehyg.github.io/reveal.js-menu)
## Installation
### Bower
Download and install the package in your project:
`bower install reveal.js-menu`
Add the plugin to your presentation, as below.
```javascript
<script src="bower_components/reveal.js-menu/menu.js"></script>
<script>
Reveal.initialize({
plugins: [ RevealMenu ]
});
</script>
```
### npm
Download and install the package in your project:
`npm install --save reveal.js-menu`
Add the plugin to your presentation, as below.
```javascript
<script src="node_modules/reveal.js-menu/menu.js"></script>
<script>
Reveal.initialize({
plugins: [ RevealMenu ]
});
</script>
```
### Manual
Copy this repository into the plugins folder of your reveal.js presentation, ie `plugins/menu`.
Add the plugin to the dependencies in your presentation, as below.
```javascript
<script src="plugin/menu/menu.js"></script>
<script>
Reveal.initialize({
plugins: [ RevealMenu ]
});
</script>
```
## Configuration
You can configure the menu for your presentation by providing a `menu` option in the reveal.js initialization options. Note that all config values are optional and will default as specified below.
```javascript
Reveal.initialize({
// ...
menu: {
// Specifies which side of the presentation the menu will
// be shown. Use 'left' or 'right'.
side: 'left',
// Specifies the width of the menu.
// Can be one of the following:
// 'normal', 'wide', 'third', 'half', 'full', or
// any valid css length value
width: 'normal',
// Add slide numbers to the titles in the slide list.
// Use 'true' or format string (same as reveal.js slide numbers)
numbers: false,
// Specifies which slide elements will be used for generating
// the slide titles in the menu. The default selects the first
// heading element found in the slide, but you can specify any
// valid css selector and the text from the first matching
// element will be used.
// Note: that a section data-menu-title attribute or an element
// with a menu-title class will take precedence over this option
titleSelector: 'h1, h2, h3, h4, h5, h6',
// If slides do not have a matching title, attempt to use the
// start of the text content as the title instead
useTextContentForMissingTitles: false,
// Hide slides from the menu that do not have a title.
// Set to 'true' to only list slides with titles.
hideMissingTitles: false,
// Adds markers to the slide titles to indicate the
// progress through the presentation. Set to 'false'
// to hide the markers.
markers: true,
// Specify custom panels to be included in the menu, by
// providing an array of objects with 'title', 'icon'
// properties, and either a 'src' or 'content' property.
custom: false,
// Specifies the themes that will be available in the themes
// menu panel. Set to 'true' to show the themes menu panel
// with the default themes list. Alternatively, provide an
// array to specify the themes to make available in the
// themes menu panel, for example...
//
// [
// { name: 'Black', theme: 'dist/theme/black.css' },
// { name: 'White', theme: 'dist/theme/white.css' },
// { name: 'League', theme: 'dist/theme/league.css' },
// {
// name: 'Dark',
// theme: 'lib/reveal.js/dist/theme/black.css',
// highlightTheme: 'lib/reveal.js/plugin/highlight/monokai.css'
// },
// {
// name: 'Code: Zenburn',
// highlightTheme: 'lib/reveal.js/plugin/highlight/zenburn.css'
// }
// ]
//
// Note: specifying highlightTheme without a theme will
// change the code highlight theme while leaving the
// presentation theme unchanged.
themes: false,
// Specifies the path to the default theme files. If your
// presentation uses a different path to the standard reveal
// layout then you need to provide this option, but only
// when 'themes' is set to 'true'. If you provide your own
// list of themes or 'themes' is set to 'false' the
// 'themesPath' option is ignored.
themesPath: 'dist/theme/',
// Specifies if the transitions menu panel will be shown.
// Set to 'true' to show the transitions menu panel with
// the default transitions list. Alternatively, provide an
// array to specify the transitions to make available in
// the transitions panel, for example...
// ['None', 'Fade', 'Slide']
transitions: false,
// Adds a menu button to the slides to open the menu panel.
// Set to 'false' to hide the button.
openButton: true,
// If 'true' allows the slide number in the presentation to
// open the menu panel. The reveal.js slideNumber option must
// be displayed for this to take effect
openSlideNumber: false,
// If true allows the user to open and navigate the menu using
// the keyboard. Standard keyboard interaction with reveal
// will be disabled while the menu is open.
keyboard: true,
// Normally the menu will close on user actions such as
// selecting a menu item, or clicking the presentation area.
// If 'true', the sticky option will leave the menu open
// until it is explicitly closed, that is, using the close
// button or pressing the ESC or m key (when the keyboard
// interaction option is enabled).
sticky: false,
// If 'true' standard menu items will be automatically opened
// when navigating using the keyboard. Note: this only takes
// effect when both the 'keyboard' and 'sticky' options are enabled.
autoOpen: true,
// If 'true' the menu will not be created until it is explicitly
// requested by calling RevealMenu.init(). Note this will delay
// the creation of all menu panels, including custom panels, and
// the menu button.
delayInit: false,
// If 'true' the menu will be shown when the menu is initialised.
openOnInit: false,
// By default the menu will load it's own font-awesome library
// icons. If your presentation needs to load a different
// font-awesome library the 'loadIcons' option can be set to false
// and the menu will not attempt to load the font-awesome library.
loadIcons: true
}
});
```
### Themes Stylesheet
If you are using the themes panel you need to ensure the theme stylesheet in the presentation uses the `id="theme"` attribute. For example...
```html
<link rel="stylesheet" href="css/theme/black.css" id="theme" />
```
If your themes configuration includes code highlight themes you need to ensure the highlights theme stylesheet in the presentation uses the `id="highlight-theme"` attribute. For example...
```html
<link
rel="stylesheet"
href="plugin/highlight/zenburn.css"
id="highlight-theme"
/>
```
## Slide Titles
The slide titles used in the menu can be supplied explicitly or are taken directly from the presentation, using the following rules...
###### 1. The section's `data-menu-title` attribute.
If the slide's section element contains a `data-menu-title` attribute this will be used for the slide title in the menu. For example...
```html
<section data-menu-title="Custom Menu Title">
<h1>Title</h1>
<p>...</p>
</section>
```
###### 2. Any element with the class `menu-title`.
If the slide's section contains an element with the class `menu-title` then the element's text will be used for the title. The first such element found will be used if there are more than one. Note the element need not be displayed to be used. For example...
```html
<section>
<h1>Title</h1>
<span class="menu-title" style="display: none">Custom Menu Title</span>
<p>...</p>
</section>
```
###### 3. The first heading found or a custom element selector
The `titleSelector` option can be used to customise the elements that will be used to generate the slide titles in the menu. The default option selects the first heading element found in the slide. For example...
```html
<section>
<h3>This will be the slide title in the menu</h3>
<h1>Title</h1>
<p>...</p>
</section>
```
Any valid CSS selector should work but note the selector will only be applied to elements contained within the slide section. You could use the `'h1'` selector to only use level 1 headings or `'p'` to use the first paragraph element. For example, `titleSelector: 'p.lead'` would be used like this...
```html
<section>
<h1>Title</h1>
<p class="lead">This will be the slide title in the menu</p>
<p>...</p>
</section>
```
Using `titleSelector: ''` will ignore all elements and no title will be provided, unless the slide section contains a `data-menu-title` attribute or an element with the `menu-title` class.
###### 4. No title is provided
If no title can be found using the above methods, a default title incorporating the slide number will be used. For example, the following would result in a slide title in the format of 'Slide 12'...
```html
<section>
<p>...</p>
</section>
```
If the `hideMissingTitles` option is set to `true`, however, the slide will not be listed in the menu.
## Custom Menu Panels
Additional custom panels can be added the menu using the `custom` option.
```javascript
Reveal.initialize({
// ...
menu: {
// ...
custom: [
{
title: 'Links',
icon: '<i class="fa fa-external-link">',
src: 'links.html'
},
{
title: 'About',
icon: '<i class="fa fa-info">',
content: '<p>This slidedeck is created with reveal.js</p>'
}
]
}
});
```
`title` and `icon` are used for the toolbar buttons at the top of the menu. There are two approaches you can use to provide content for the panels...
- You can provide a URL in `src` to load html from another file.
- Alternatively, you can provide html in `content` and this will be added to the custom panel.
###### Custom slide menu items
You can provide menu items in your custom panels using the following format. This allows you to define your own navigation links for your presentation.
```html
<h1>Links</h1>
<ul class="slide-menu-items">
<li class="slide-menu-item"><a href="#/transitions">Transitions</a></li>
<li class="slide-menu-item"><a href="#/13">Code highlighting</a></li>
</ul>
```
You are not limited to linking to presentation slides. You can provide any link you wish.
```html
<h1>External Links</h1>
<ul class="slide-menu-items">
<li class="slide-menu-item">
<a href="https://github.com/denehyg/reveal.js-menu">Reveal.js-menu</a>
</li>
<li class="slide-menu-item">
<a href="https://github.com/hakimel/reveal.js">Reveal.js</a>
</li>
</ul>
```
Using menu items enables keyboard navigation of your links as with the other panels. However, you don't have to use menu items for your links. You can simply provide standard links and unordered lists in your html. Notice you can provide your custom menu items mixed with other html if you wish.
## Ready Event
A 'menu-ready' event is fired when reveal.js-menu has loaded all non-async dependencies and is ready to start navigating.
```javascript
Reveal.addEventListener('menu-ready', function (event) {
// your code
});
```
## API
The `RevealMenu` object exposes a JavaScript API for controlling the menu:
| Function | Description |
| ----------------------- | ------------------------------------------------------------------------------------------------------------ |
| toggle(event) | Toggles the open state of the menu, ie open if it is closed, and close if it is open |
| openMenu(event) | Opens the menu |
| closeMenu(event, force) | Closes the menu. To force the menu to close (ie when `sticky` option is `true`) call `closeMenu(null, true)` |
| openPanel(event, ref) | Opens the menu to a specific panel, passing the name of the panel or the panel element itself |
| isOpen() | Returns true if the menu is open |
| initialiseMenu() | Initialises the menu if it has not already been initialised. Used in conjunction with the `delayInit` option |
| isMenuInitialised() | Returns true if the menu has been initialised |
## Compatibility
reveal.js-menu v2.0 is built for reveal.js v4. It will not work with reveal.js v3. If you require a menu for reveal.js v3 you will need to install reveal.js-menu v1.2.0.
v2.0 also introduces API changes that are not backwards compatible. `init()` has been renamed to `initMenu()` to deconflict with the reveal.js v4 plugin API. `isInit()` has also been changed to `isMenuInitialised()`.
## License
MIT licensed
Copyright (C) 2020 Greg Denehy

View File

@ -0,0 +1,10 @@
{
"name": "reveal.js-menu",
"version": "2.1.0",
"homepage": "https://denehyg.github.io/reveal.js-menu",
"authors": ["Greg Denehy"],
"description": "A slideout menu for navigating reveal.js presentations",
"keywords": ["reveal", "menu"],
"license": "MIT, Copyright (C) 2020 Greg Denehy",
"ignore": ["**/.*", "node_modules", "bower_components", "test", "tests"]
}

View File

@ -0,0 +1,99 @@
const pkg = require('./package.json');
const { rollup } = require('rollup');
const { terser } = require('rollup-plugin-terser');
const babel = require('@rollup/plugin-babel').default;
const commonjs = require('@rollup/plugin-commonjs');
const resolve = require('@rollup/plugin-node-resolve').default;
const gulp = require('gulp');
const banner = `/*!
* reveal.js-menu ${pkg.version}
* ${pkg.homepage}
* MIT licensed
*
* Copyright (C) 2016 Greg Denehy
*/\n`;
const babelConfig = {
babelHelpers: 'bundled',
ignore: ['node_modules'],
compact: false,
extensions: ['.js', '.html'],
plugins: ['transform-html-import-to-string'],
presets: [
[
'@babel/preset-env',
{
corejs: 3,
useBuiltIns: 'usage',
modules: false
}
]
]
};
// Our ES module bundle only targets newer browsers with
// module support. Browsers are targeted explicitly instead
// of using the "esmodule: true" target since that leads to
// polyfilling older browsers and a larger bundle.
const babelConfigESM = JSON.parse(JSON.stringify(babelConfig));
babelConfigESM.presets[0][1].targets = {
browsers: [
'last 2 Chrome versions',
'not Chrome < 60',
'last 2 Safari versions',
'not Safari < 10.1',
'last 2 iOS versions',
'not iOS < 10.3',
'last 2 Firefox versions',
'not Firefox < 60',
'last 2 Edge versions',
'not Edge < 16'
]
};
let cache = {};
// Creates a UMD and ES module bundle for each plugin
gulp.task('build', () => {
return Promise.all(
[
{
name: 'RevealMenu',
input: './plugin.js',
output: './menu'
}
].map(plugin => {
return rollup({
cache: cache[plugin.input],
input: plugin.input,
plugins: [
resolve(),
commonjs(),
babel({
...babelConfig,
ignore: [/node_modules\/.*/]
}),
terser()
]
}).then(bundle => {
cache[plugin.input] = bundle.cache;
bundle.write({
file: plugin.output + '.esm.js',
name: plugin.name,
format: 'es'
});
bundle.write({
file: plugin.output + '.js',
name: plugin.name,
format: 'umd'
});
});
})
);
});
gulp.task('default', gulp.series('build'));

View File

@ -0,0 +1,346 @@
.slide-menu-wrapper {
font-family: 'Source Sans Pro', Helvetica, sans-serif;
}
.slide-menu-wrapper .slide-menu {
background-color: #333;
z-index: 200;
position: fixed;
top: 0;
width: 300px;
height: 100%;
/*overflow-y: scroll;*/
transition: transform 0.3s;
font-size: 16px;
font-weight: normal;
}
.slide-menu-wrapper .slide-menu.slide-menu--wide {
width: 500px;
}
.slide-menu-wrapper .slide-menu.slide-menu--third {
width: 33%;
}
.slide-menu-wrapper .slide-menu.slide-menu--half {
width: 50%;
}
.slide-menu-wrapper .slide-menu.slide-menu--full {
width: 95%;
}
/*
* Slides menu
*/
.slide-menu-wrapper .slide-menu-items {
margin: 0;
padding: 0;
width: 100%;
border-bottom: solid 1px #555;
}
.slide-menu-wrapper .slide-menu-item,
.slide-menu-wrapper .slide-menu-item-vertical {
display: block;
text-align: left;
padding: 10px 18px;
color: #aaa;
cursor: pointer;
}
.slide-menu-wrapper .slide-menu-item-vertical {
padding-left: 30px;
}
.slide-menu-wrapper .slide-menu--wide .slide-menu-item-vertical,
.slide-menu-wrapper .slide-menu--third .slide-menu-item-vertical,
.slide-menu-wrapper .slide-menu--half .slide-menu-item-vertical,
.slide-menu-wrapper .slide-menu--full .slide-menu-item-vertical,
.slide-menu-wrapper .slide-menu--custom .slide-menu-item-vertical {
padding-left: 50px;
}
.slide-menu-wrapper .slide-menu-item {
border-top: solid 1px #555;
}
.slide-menu-wrapper .active-menu-panel li.selected {
background-color: #222;
color: white;
}
.slide-menu-wrapper .active-menu-panel li.active {
color: #eee;
}
.slide-menu-wrapper .slide-menu-item.no-title .slide-menu-item-title,
.slide-menu-wrapper .slide-menu-item-vertical.no-title .slide-menu-item-title {
font-style: italic;
}
.slide-menu-wrapper .slide-menu-item-number {
color: #999;
padding-right: 6px;
}
.slide-menu-wrapper .slide-menu-item i.far,
.slide-menu-wrapper .slide-menu-item i.fas,
.slide-menu-wrapper .slide-menu-item-vertical i.far,
.slide-menu-wrapper .slide-menu-item-vertical i.fas,
.slide-menu-wrapper .slide-menu-item svg.svg-inline--fa,
.slide-menu-wrapper .slide-menu-item-vertical svg.svg-inline--fa {
padding-right: 12px;
display: none;
}
.slide-menu-wrapper .slide-menu-item.past i.fas.past,
.slide-menu-wrapper .slide-menu-item-vertical.past i.fas.past,
.slide-menu-wrapper .slide-menu-item.active i.fas.active,
.slide-menu-wrapper .slide-menu-item-vertical.active i.fas.active,
.slide-menu-wrapper .slide-menu-item.future i.far.future,
.slide-menu-wrapper .slide-menu-item-vertical.future i.far.future,
.slide-menu-wrapper .slide-menu-item.past svg.svg-inline--fa.past,
.slide-menu-wrapper .slide-menu-item-vertical.past svg.svg-inline--fa.past,
.slide-menu-wrapper .slide-menu-item.active svg.svg-inline--fa.active,
.slide-menu-wrapper .slide-menu-item-vertical.active svg.svg-inline--fa.active,
.slide-menu-wrapper .slide-menu-item.future svg.svg-inline--fa.future,
.slide-menu-wrapper .slide-menu-item-vertical.future svg.svg-inline--fa.future {
display: inline-block;
}
.slide-menu-wrapper .slide-menu-item.past i.fas.past,
.slide-menu-wrapper .slide-menu-item-vertical.past i.fas.past,
.slide-menu-wrapper .slide-menu-item.future i.far.future,
.slide-menu-wrapper .slide-menu-item-vertical.future i.far.future,
.slide-menu-wrapper .slide-menu-item.past svg.svg-inline--fa.past,
.slide-menu-wrapper .slide-menu-item-vertical.past svg.svg-inline--fa.past,
.slide-menu-wrapper .slide-menu-item.future svg.svg-inline--fa.future,
.slide-menu-wrapper .slide-menu-item-vertical.future svg.svg-inline--fa.future {
opacity: 0.4;
}
.slide-menu-wrapper .slide-menu-item.active i.fas.active,
.slide-menu-wrapper .slide-menu-item-vertical.active i.fas.active,
.slide-menu-wrapper .slide-menu-item.active svg.svg-inline--fa.active,
.slide-menu-wrapper .slide-menu-item-vertical.active svg.svg-inline--fa.active {
opacity: 0.8;
}
.slide-menu-wrapper .slide-menu--left {
left: 0;
-webkit-transform: translateX(-100%);
-ms-transform: translateX(-100%);
transform: translateX(-100%);
}
.slide-menu-wrapper .slide-menu--left.active {
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
}
.slide-menu-wrapper .slide-menu--right {
right: 0;
-webkit-transform: translateX(100%);
-ms-transform: translateX(100%);
transform: translateX(100%);
}
.slide-menu-wrapper .slide-menu--right.active {
-webkit-transform: translateX(0);
-ms-transform: translateX(0);
transform: translateX(0);
}
.slide-menu-wrapper {
transition: transform 0.3s;
}
/*
* Toolbar
*/
.slide-menu-wrapper .slide-menu-toolbar {
height: 60px;
width: 100%;
font-size: 12px;
display: table;
table-layout: fixed; /* ensures equal width */
margin: 0;
padding: 0;
border-bottom: solid 2px #666;
}
.slide-menu-wrapper .slide-menu-toolbar > li {
display: table-cell;
line-height: 150%;
text-align: center;
vertical-align: middle;
cursor: pointer;
color: #aaa;
border-radius: 3px;
}
.slide-menu-wrapper .slide-menu-toolbar > li.toolbar-panel-button i,
.slide-menu-wrapper
.slide-menu-toolbar
> li.toolbar-panel-button
svg.svg-inline--fa {
font-size: 1.7em;
}
.slide-menu-wrapper .slide-menu-toolbar > li.active-toolbar-button {
color: white;
text-shadow: 0 1px black;
text-decoration: underline;
}
.slide-menu-toolbar > li.toolbar-panel-button:hover {
color: white;
}
.slide-menu-toolbar
> li.toolbar-panel-button:hover
span.slide-menu-toolbar-label,
.slide-menu-wrapper
.slide-menu-toolbar
> li.active-toolbar-button
span.slide-menu-toolbar-label {
visibility: visible;
}
/*
* Panels
*/
.slide-menu-wrapper .slide-menu-panel {
position: absolute;
width: 100%;
visibility: hidden;
height: calc(100% - 60px);
overflow-x: hidden;
overflow-y: auto;
color: #aaa;
}
.slide-menu-wrapper .slide-menu-panel.active-menu-panel {
visibility: visible;
}
.slide-menu-wrapper .slide-menu-panel h1,
.slide-menu-wrapper .slide-menu-panel h2,
.slide-menu-wrapper .slide-menu-panel h3,
.slide-menu-wrapper .slide-menu-panel h4,
.slide-menu-wrapper .slide-menu-panel h5,
.slide-menu-wrapper .slide-menu-panel h6 {
margin: 20px 0 10px 0;
color: #fff;
line-height: 1.2;
letter-spacing: normal;
text-shadow: none;
}
.slide-menu-wrapper .slide-menu-panel h1 {
font-size: 1.6em;
}
.slide-menu-wrapper .slide-menu-panel h2 {
font-size: 1.4em;
}
.slide-menu-wrapper .slide-menu-panel h3 {
font-size: 1.3em;
}
.slide-menu-wrapper .slide-menu-panel h4 {
font-size: 1.1em;
}
.slide-menu-wrapper .slide-menu-panel h5 {
font-size: 1em;
}
.slide-menu-wrapper .slide-menu-panel h6 {
font-size: 0.9em;
}
.slide-menu-wrapper .slide-menu-panel p {
margin: 10px 0 5px 0;
}
.slide-menu-wrapper .slide-menu-panel a {
color: #ccc;
text-decoration: underline;
}
.slide-menu-wrapper .slide-menu-panel a:hover {
color: white;
}
.slide-menu-wrapper .slide-menu-item a {
text-decoration: none;
}
.slide-menu-wrapper .slide-menu-custom-panel {
width: calc(100% - 20px);
padding-left: 10px;
padding-right: 10px;
}
.slide-menu-wrapper .slide-menu-custom-panel .slide-menu-items {
width: calc(100% + 20px);
margin-left: -10px;
margin-right: 10px;
}
/*
* Theme and Transitions buttons
*/
.slide-menu-wrapper div[data-panel='Themes'] li,
.slide-menu-wrapper div[data-panel='Transitions'] li {
display: block;
text-align: left;
cursor: pointer;
color: #848484;
}
/*
* Menu controls
*/
.reveal .slide-menu-button {
position: fixed;
left: 30px;
bottom: 30px;
z-index: 30;
font-size: 24px;
}
/*
* Menu overlay
*/
.slide-menu-wrapper .slide-menu-overlay {
position: fixed;
z-index: 199;
top: 0;
left: 0;
overflow: hidden;
width: 0;
height: 0;
background-color: #000;
opacity: 0;
transition: opacity 0.3s, width 0s 0.3s, height 0s 0.3s;
}
.slide-menu-wrapper .slide-menu-overlay.active {
width: 100%;
height: 100%;
opacity: 0.7;
transition: opacity 0.3s;
}
/*
* Hide menu for pdf printing
*/
body.print-pdf .slide-menu-wrapper .slide-menu,
body.print-pdf .reveal .slide-menu-button,
body.print-pdf .slide-menu-wrapper .slide-menu-overlay {
display: none;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,35 @@
{
"name": "reveal.js-menu",
"version": "2.1.0",
"description": "A slideout menu for navigating reveal.js presentations",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "gulp"
},
"repository": {
"type": "git",
"url": "git+https://github.com/denehyg/reveal.js-menu.git"
},
"keywords": [
"reveal",
"menu"
],
"author": "Greg Denehy",
"license": "MIT, Copyright (C) 2020 Greg Denehy",
"bugs": {
"url": "https://github.com/denehyg/reveal.js-menu/issues"
},
"homepage": "https://github.com/denehyg/reveal.js-menu#readme",
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@rollup/plugin-babel": "^5.0.4",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-node-resolve": "^8.1.0",
"babel-plugin-transform-html-import-to-string": "0.0.1",
"core-js": "^3.6.5",
"gulp": "^4.0.2",
"rollup": "^2.21.0",
"rollup-plugin-terser": "^6.1.0"
}
}

File diff suppressed because it is too large Load Diff