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 @@ - + diff --git a/docs/assets/fmriprep-bootcamp-geneva2024/day1-02-bids/index.html b/docs/assets/fmriprep-bootcamp-geneva2024/day1-02-bids/index.html index 4012e3a..f0567cc 100644 --- a/docs/assets/fmriprep-bootcamp-geneva2024/day1-02-bids/index.html +++ b/docs/assets/fmriprep-bootcamp-geneva2024/day1-02-bids/index.html @@ -1350,8 +1350,8 @@ }; // Use: ![:doi](10.5129/10234) remark.macros.doi = function () { - var doi = this; - return '' + doi + ''; + var doi = this; + return '' + doi + ''; }; var slideshow = remark.create({ @@ -1362,43 +1362,6 @@ 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; - allcasts.set(slideNumber, AsciinemaPlayer.create( - 'images/fix-typo.cast', - document.getElementById('636539'), - { autoPlay: true, speed: 2, idle_time_limit: 8, rows: 27 } - )); - // allcasts.set(slideNumber, AsciinemaPlayer.create( - // 'https://asciinema.org/a/' + castid + '.cast', - // document.getElementById(castid), - // { autoPlay: true, speed: 2, idle_time_limit: 8, rows: 17 } - // )); - }); - - slideshow.on('beforeHideSlide', function (slide) { - // Slide is the slide being navigated - var slideNumber = slide.getSlideIndex(); - if (allcasts.has(slideNumber)) { - allcasts.get(slideNumber).pause(); - } - }); diff --git a/docs/assets/fmriprep-bootcamp-geneva2024/day1-03-bids-hands-on/index.html b/docs/assets/fmriprep-bootcamp-geneva2024/day1-03-bids-hands-on/index.html index 7e4773f..fe309f3 100644 --- a/docs/assets/fmriprep-bootcamp-geneva2024/day1-03-bids-hands-on/index.html +++ b/docs/assets/fmriprep-bootcamp-geneva2024/day1-03-bids-hands-on/index.html @@ -461,7 +461,7 @@ .perma-sidebar[

Creative Commons License - Day 1 :: Data & HPC + Day 1 :: BIDS Hands-on

] @@ -498,7 +498,17 @@ # Logging in into a cluster and setting up conda .boxed-content.pad-top[ -
+
+] + +--- + +# Exploring the bootcamp's dataset + +.boxed-content[ +.center[[https://openneuro.org/datasets/ds005454/versions/1.0.0](https://openneuro.org/datasets/ds005454/versions/1.0.0)] + +