File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
16
16
- Update the comparison table in the README.
17
17
[ #560 ] ( https://github.com/jeertmans/manim-slides/pull/560 )
18
+ - Update the template in the * Customize your RevealJS slides* section.
19
+ [ #565 ] ( https://github.com/jeertmans/manim-slides/pull/565 )
18
20
19
21
(v5.5.2)=
20
22
## [ v5.5.2] ( https://github.com/jeertmans/manim-slides/compare/v5.5.1...v5.5.2 )
Original file line number Diff line number Diff line change 50
50
</ div >
51
51
52
52
< script src ="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/reveal.min.js "> </ script >
53
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js "> </ script >
53
54
54
55
<!-- To include plugins, see: https://revealjs.com/plugins/ -->
55
56
{% if has_notes %}
56
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/markdown/markdown.min.js "> </ script >
57
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/notes/notes.min.js "> </ script >
57
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/{{ reveal_version }}/plugin/markdown/markdown.min.js "> </ script >
58
58
{% endif %}
59
59
60
60
<!-- <script src="index.js"></script> -->
262
262
// Time before the cursor is hidden (in ms)
263
263
hideCursorTime : { { hide_cursor_time } }
264
264
} ) ;
265
+ // Override SPACE to play / pause the video
266
+ Reveal . addKeyBinding (
267
+ {
268
+ keyCode : 32 ,
269
+ key : 'SPACE ',
270
+ description : 'Play / pause video '
271
+ } ,
272
+ ( ) => {
273
+ var currentVideos = Reveal . getCurrentSlide ( ) . slideBackgroundContentElement . getElementsByTagName ( "video" ) ;
274
+ if ( currentVideos . length > 0 ) {
275
+ if ( currentVideos [ 0 ] . paused == true ) currentVideos [ 0 ] . play ( ) ;
276
+ else currentVideos [ 0 ] . pause ( ) ;
277
+ } else {
278
+ Reveal . next ( ) ;
279
+ }
280
+ }
281
+ ) ;
265
282
{ % if one_file % }
266
283
// Fix found by @t -fritsch and @Rapsssito on GitHub
267
284
// see: https://github.com/hakimel/reveal.js/discussions/3362#discussioncomment-11733074.
306
323
Reveal . on ( 'ready' , fixBase64VideoBackground ) ;
307
324
{ % endif % }
308
325
</ script >
326
+ {% if env['READTHEDOCS'] %}
327
+ < style >
328
+ readthedocs-flyout , readthedocs-notification {
329
+ display : none;
330
+ }
331
+ </ style >
332
+ {% endif %}
309
333
310
334
<!-- Add a clock to each section dynamically using JavaScript -->
311
335
< script >
You can’t perform that action at this time.
0 commit comments