|
|
@@ -1,42 +0,0 @@
|
|
|
-import Reveal from 'reveal.js';
|
|
|
-
|
|
|
-Reveal.initialize({
|
|
|
- controls: true,
|
|
|
- progress: true,
|
|
|
- history: true,
|
|
|
- center: true,
|
|
|
- transition: 'slide',
|
|
|
-
|
|
|
- // // This specification method can't be used
|
|
|
- // // sice deleting symlink prevented `src` from being resolved -- 2017.06.15 Yuki Takei
|
|
|
- //
|
|
|
- // Optional libraries used to extend on reveal.js
|
|
|
- // dependencies: [
|
|
|
- // { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
|
|
- // { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
|
|
- // { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
|
|
- // { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
|
|
- // { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
|
|
|
- // { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
|
|
|
- // ]
|
|
|
-});
|
|
|
-
|
|
|
-require.ensure([], () => {
|
|
|
- require('reveal.js/plugin/zoom/zoom');
|
|
|
- require('reveal.js/plugin/notes/notes');
|
|
|
- require('../util/reveal/plugins/growi-renderer');
|
|
|
-
|
|
|
- // fix https://github.com/weseek/crowi-plus/issues/96
|
|
|
- Reveal.slide(0, 0);
|
|
|
- Reveal.sync();
|
|
|
-});
|
|
|
-
|
|
|
-Reveal.addEventListener('ready', () => {
|
|
|
- // event.currentSlide, event.indexh, event.indexv
|
|
|
- $('.reveal section').each(function() {
|
|
|
- const $self = $(this);
|
|
|
- if ($self.children().length !== 1) {
|
|
|
- $self.addClass('only');
|
|
|
- }
|
|
|
- });
|
|
|
-});
|