-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Added - Added embedded example to the demo’s ### Changed - Fixed a bug where the plugin would not work if in an embedded presentation
- Loading branch information
1 parent
699d3eb
commit 88f718e
Showing
57 changed files
with
569 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Appearance</title> | ||
<meta name="author" content="Martijn De Jongh (Martino)"> | ||
<link rel="icon" href="data:,"> | ||
<link rel="stylesheet" href="dist/reset.css"> | ||
<link rel="stylesheet" href="dist/reveal.css"> | ||
<link rel="stylesheet" href="dist/theme/black.css"> | ||
<link rel="stylesheet" href="plugin/highlight/monokai.css"> | ||
<link rel="stylesheet" href="assets/css/demo.css"> | ||
</head> | ||
<body> | ||
<div style="width: 768px; height: 400px; margin: 64px auto;"> | ||
<div class="reveal" id="deck1"><a class="github-corner" href="https://github.com/martinomagnifico/reveal.js-appearance" target="blank" title="View source on GitHub"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 55"> | ||
<path fill="currentColor" d="M27.5 11.2a16.3 16.3 0 0 0-5.1 31.7c.8.2 1.1-.3 1.1-.7v-2.8c-4.5 1-5.5-2.2-5.5-2.2-.7-1.9-1.8-2.4-1.8-2.4-1.5-1 .1-1 .1-1 1.6.1 2.5 1.7 2.5 1.7 1.5 2.5 3.8 1.8 4.7 1.4.2-1 .6-1.8 1-2.2-3.5-.4-7.3-1.8-7.3-8 0-1.8.6-3.3 1.6-4.4-.1-.5-.7-2.1.2-4.4 0 0 1.4-.4 4.5 1.7a15.6 15.6 0 0 1 8.1 0c3.1-2 4.5-1.7 4.5-1.7.9 2.3.3 4 .2 4.4 1 1 1.6 2.6 1.6 4.3 0 6.3-3.8 7.7-7.4 8 .6.6 1.1 1.6 1.1 3v4.6c0 .4.3.9 1.1.7a16.3 16.3 0 0 0-5.2-31.7"></path> | ||
</svg></a> | ||
<div class="slides"> | ||
<section> | ||
<h1 class="animate__flipInX slow">Embed test</h1> | ||
<h2 data-delay="2000">Embed test</h2> | ||
</section> | ||
<section> | ||
<ul> | ||
<li class="globalul">This is list item 1</li> | ||
<li class="globalul">This is list item 2</li> | ||
</ul> | ||
</section> | ||
</div> | ||
</div> | ||
</div> | ||
<div style="width: 768px; height: 400px; margin: 64px auto;"> | ||
<div class="reveal" id="deck2"><a class="github-corner bottom" href="https://github.com/martinomagnifico/reveal.js-appearance" target="blank" title="View source on GitHub"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 55"> | ||
<path fill="currentColor" d="M27.5 11.2a16.3 16.3 0 0 0-5.1 31.7c.8.2 1.1-.3 1.1-.7v-2.8c-4.5 1-5.5-2.2-5.5-2.2-.7-1.9-1.8-2.4-1.8-2.4-1.5-1 .1-1 .1-1 1.6.1 2.5 1.7 2.5 1.7 1.5 2.5 3.8 1.8 4.7 1.4.2-1 .6-1.8 1-2.2-3.5-.4-7.3-1.8-7.3-8 0-1.8.6-3.3 1.6-4.4-.1-.5-.7-2.1.2-4.4 0 0 1.4-.4 4.5 1.7a15.6 15.6 0 0 1 8.1 0c3.1-2 4.5-1.7 4.5-1.7.9 2.3.3 4 .2 4.4 1 1 1.6 2.6 1.6 4.3 0 6.3-3.8 7.7-7.4 8 .6.6 1.1 1.6 1.1 3v4.6c0 .4.3.9 1.1.7a16.3 16.3 0 0 0-5.2-31.7"></path> | ||
</svg></a> | ||
<div class="slides"> | ||
<section> | ||
<h1 class="animate__flipInX">Embed test</h1> | ||
<h2>Embed test</h2> | ||
</section> | ||
<section> | ||
<ul> | ||
<li class="globalul">This is list item 1</li> | ||
<li class="globalul">This is list item 2</li> | ||
</ul> | ||
</section> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="dist/reveal.js"></script> | ||
<script src="plugin/highlight/highlight.js"></script> | ||
<script src="plugin/appearance/appearance.js"></script> | ||
<script> | ||
// Get the decks | ||
const deck = document.querySelector("#deck1"); | ||
const decktwo = document.querySelector("#deck2"); | ||
|
||
// Define the plugins (Using strings) | ||
let plugins = ["Appearance", "RevealHighlight"]; | ||
|
||
// Check the plugins | ||
const pluginCheck = (plugs) => plugs.reduce((a, p) => typeof window[p] === "function" ? (a.push(window[p]), a) : (console.warn(`Plugin "${p}" does not exist.`), a), []); | ||
|
||
let deck1 = new Reveal(deck, { | ||
embedded: true, | ||
keyboardCondition: 'focused', | ||
overview: false, | ||
controlsTutorial: false, | ||
appearance: { | ||
appearparents: true, | ||
appearevent: 'auto', | ||
autoappear: true, | ||
autoelements: {'ul li': 'animate__fadeInLeft', 'h2': {"animation":"animate__shrinkIn", "speed":"slow", "delay":"800"}} | ||
}, | ||
plugins: pluginCheck(plugins) | ||
}); | ||
|
||
let deck2 = new Reveal(decktwo, { | ||
embedded: true, | ||
keyboardCondition: 'focused', | ||
overview: false, | ||
controlsTutorial: false, | ||
appearance: { | ||
appearparents: true, | ||
appearevent: 'slidechanged', | ||
autoappear: true, | ||
autoelements: {'ul li': 'animate__fadeInRight', 'h2': {"animation":"animate__fadeInUp", "speed":"slow", "delay":"800"}} | ||
}, | ||
plugins: pluginCheck(plugins) | ||
}); | ||
deck1.initialize(); | ||
deck2.initialize(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.