mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-16 18:55:06 +08:00
chore(docs): update template in docs (#565)
The template displayed in the *Customize your RevealJS slides* was out of sync.
This commit is contained in:
@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Update the comparison table in the README.
|
- Update the comparison table in the README.
|
||||||
[#560](https://github.com/jeertmans/manim-slides/pull/560)
|
[#560](https://github.com/jeertmans/manim-slides/pull/560)
|
||||||
|
- Update the template in the *Customize your RevealJS slides* section.
|
||||||
|
[#565](https://github.com/jeertmans/manim-slides/pull/565)
|
||||||
|
|
||||||
(v5.5.2)=
|
(v5.5.2)=
|
||||||
## [v5.5.2](https://github.com/jeertmans/manim-slides/compare/v5.5.1...v5.5.2)
|
## [v5.5.2](https://github.com/jeertmans/manim-slides/compare/v5.5.1...v5.5.2)
|
||||||
|
@ -50,11 +50,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/reveal.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/reveal.min.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js"></script>
|
||||||
|
|
||||||
<!-- To include plugins, see: https://revealjs.com/plugins/ -->
|
<!-- To include plugins, see: https://revealjs.com/plugins/ -->
|
||||||
{% if has_notes %}
|
{% if has_notes %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/markdown/markdown.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/markdown/markdown.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js"></script>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- <script src="index.js"></script> -->
|
<!-- <script src="index.js"></script> -->
|
||||||
@ -262,6 +262,23 @@
|
|||||||
// Time before the cursor is hidden (in ms)
|
// Time before the cursor is hidden (in ms)
|
||||||
hideCursorTime: {{ hide_cursor_time }}
|
hideCursorTime: {{ hide_cursor_time }}
|
||||||
});
|
});
|
||||||
|
// Override SPACE to play / pause the video
|
||||||
|
Reveal.addKeyBinding(
|
||||||
|
{
|
||||||
|
keyCode: 32,
|
||||||
|
key: 'SPACE',
|
||||||
|
description: 'Play / pause video'
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
var currentVideos = Reveal.getCurrentSlide().slideBackgroundContentElement.getElementsByTagName("video");
|
||||||
|
if (currentVideos.length > 0) {
|
||||||
|
if (currentVideos[0].paused == true) currentVideos[0].play();
|
||||||
|
else currentVideos[0].pause();
|
||||||
|
} else {
|
||||||
|
Reveal.next();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
{% if one_file %}
|
{% if one_file %}
|
||||||
// Fix found by @t-fritsch and @Rapsssito on GitHub
|
// Fix found by @t-fritsch and @Rapsssito on GitHub
|
||||||
// see: https://github.com/hakimel/reveal.js/discussions/3362#discussioncomment-11733074.
|
// see: https://github.com/hakimel/reveal.js/discussions/3362#discussioncomment-11733074.
|
||||||
@ -306,6 +323,13 @@
|
|||||||
Reveal.on( 'ready', fixBase64VideoBackground );
|
Reveal.on( 'ready', fixBase64VideoBackground );
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
|
{% if env['READTHEDOCS'] %}
|
||||||
|
<style>
|
||||||
|
readthedocs-flyout, readthedocs-notification {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Add a clock to each section dynamically using JavaScript -->
|
<!-- Add a clock to each section dynamically using JavaScript -->
|
||||||
<script>
|
<script>
|
||||||
|
Reference in New Issue
Block a user