diff --git a/docs/assets/asciinema-player/asciicast-load.js b/docs/assets/asciinema-player/asciicast-load.js
new file mode 100644
index 0000000..ae4d3ec
--- /dev/null
+++ b/docs/assets/asciinema-player/asciicast-load.js
@@ -0,0 +1,41 @@
+var slideshow = remark.create({
+ highlightStyle: 'monokai',
+ highlightLanguage: 'remark',
+ highlightLines: true,
+ countIncrementalSlides: false,
+ highlightSpans: true,
+ ratio: '16:9'
+});
+
+// Now retrieve all IDs of asciinema casts
+const allcasts = new Map();
+
+slideshow.on('afterShowSlide', function (slide) {
+ // Slide is the slide being navigated
+ var slideNumber = slide.getSlideIndex();
+ var element = document.getElementsByClassName("remark-visible")[0].getElementsByClassName('asciicast')
+ if (element.length == 0 ) {
+ return;
+ }
+
+ if (allcasts.has(slideNumber)) {
+ allcasts.get(slideNumber).play();
+ return;
+ }
+
+ var castid = element[0].attributes["id"].value;
+ var castsrc = element[0].attributes["data-src"].value;
+ allcasts.set(slideNumber, AsciinemaPlayer.create(
+ castsrc,
+ document.getElementById(castid),
+ { autoPlay: true, speed: 2, idle_time_limit: 8, rows: 23 }
+ ));
+});
+
+slideshow.on('beforeHideSlide', function (slide) {
+ // Slide is the slide being navigated
+ var slideNumber = slide.getSlideIndex();
+ if (allcasts.has(slideNumber)) {
+ allcasts.get(slideNumber).pause();
+ }
+});
\ No newline at end of file
diff --git a/docs/assets/fmriprep-bootcamp-geneva2024/day1-01-fmriprep-primer/index.html b/docs/assets/fmriprep-bootcamp-geneva2024/day1-01-fmriprep-primer/index.html
index 4d1b07f..99db485 100644
--- a/docs/assets/fmriprep-bootcamp-geneva2024/day1-01-fmriprep-primer/index.html
+++ b/docs/assets/fmriprep-bootcamp-geneva2024/day1-01-fmriprep-primer/index.html
@@ -989,53 +989,6 @@
-
+